public class ModuleExp extends LambdaExp implements java.io.Externalizable
| Modifier and Type | Field and Description |
|---|---|
static boolean |
alwaysCompile
Flag to force compilation, even when not required.
|
static boolean |
compilerAvailable
Deprecated.
|
static java.lang.String |
dumpZipPrefix
Used to control which .zip file dumps are generated.
|
static int |
EXPORT_SPECIFIED |
static int |
HAS_SUB_MODULE |
static int |
IMMEDIATE
True if the module is immediately evaluated.
|
static int |
INTERACTIVE
True of a read-eval-print interface where each module is only partial.
|
static int |
LAZY_DECLARATIONS |
static int |
NONSTATIC_SPECIFIED |
static int |
STATIC_RUN_SPECIFIED |
static int |
STATIC_SPECIFIED |
static int |
SUPERTYPE_SPECIFIED |
static int |
USE_DEFINED_CLASS
Using explicit class (e.g.
|
ATTEMPT_INLINE, body, CLOSURE_ENV_NAME, closureEnvField, firstChild, IN_EXPWALKER, inlineHome, keywords, max_args, min_args, nameDecl, NEXT_AVAIL_FLAG, nextSibling, NO_FIELD, opt_args, OVERLOADABLE_FIELD, PASSES_TAILCALLS, PUBLIC_METHOD, returnContinuation, returnType, SEQUENCE_RESULT, staticLinkFieldflags, noExpressions, type, VALIDATEDcompilerKey, compilerXKey, validateApplyKey, validateXApplyKeynameKey| Constructor and Description |
|---|
ModuleExp() |
| Modifier and Type | Method and Description |
|---|---|
void |
allocChildClasses(Compilation comp) |
ClassType |
classFor(Compilation comp)
Return the class for this module.
|
static boolean |
compilerAvailable() |
static boolean |
evalModule(Environment env,
CallContext ctx,
Compilation comp,
java.net.URL url,
gnu.kawa.io.OutPort msg) |
static java.lang.Object |
evalModule1(Environment env,
Compilation comp,
java.net.URL url,
gnu.kawa.io.OutPort msg)
Parse and compile a module.
|
static void |
evalModule2(Environment env,
CallContext ctx,
Language language,
ModuleExp mexp,
java.lang.Object inst) |
static java.lang.Class |
evalToClass(Compilation comp,
java.net.URL url)
Compile to a class for immediate evaluation.
|
Declaration |
firstDecl() |
ClassType[] |
getInterfaces() |
java.lang.String |
getNamespaceUri() |
ClassType |
getSuperType() |
boolean |
isStatic() |
void |
print(gnu.kawa.io.OutPort out) |
void |
readExternal(java.io.ObjectInput in) |
void |
setInterfaces(ClassType[] s) |
void |
setSuperType(ClassType s) |
boolean |
staticInitRun()
True if module body (i.e.
|
boolean |
subModulesOnly() |
static ModuleExp |
valueOf(ClassType type) |
protected <R,D> R |
visit(ExpVisitor<R,D> visitor,
D d) |
void |
writeExternal(java.io.ObjectOutput out) |
addParameter, allocFrame, apply, calculateType, capture, checkForInitCall, compile, compileBody, compileEnd, compileSetField, declareClosureEnv, declareThis, generateApplyMethods, getBodyFirstExpression, getCallConvention, getCaller, getCanRead, getClassType, getCompiledClassType, getExpClassName, getHeapFrameType, getImportsLexVars, getInlineOnly, getMainMethod, getMethod, getNeedsClosureEnv, getNeedsStaticLink, getOwningLambda, getProperty, getReturnType, incomingArgs, isAbstract, isClassMethod, isHandlingTailCalls, isModuleBody, isNative, loadHeapFrame, maybeSetReturnType, mustCompile, outerLambda, outerLambdaNotInline, outerLambdaOrCaller, pushChild, restArgType, reverseChildList, setCallConvention, setCanRead, setClassMethod, setCoercedReturnType, setCoercedReturnValue, setExceptions, setImportsLexVars, setImportsLexVars, setInlineOnly, setInlineOnly, setNeedsStaticLink, setNeedsStaticLink, setProperty, setReturnType, setType, side_effects, toString, usingCallContext, validateApply, variable_args, visitChildren, visitChildrenOnly, visitPropertiesadd, add, addDeclaration, addDeclaration, addDeclaration, clearCallList, countDecls, currentLambda, currentModule, duplicateDeclarationError, getDefine, getNoDefine, getOuter, getVarScope, isClassGenerated, lookup, lookup, nestedIn, nesting, popScope, remove, remove, replaceFollowing, setIndexes, setOuter, topLevelapply0, checkLiteralKeyword, compile, compile, compileButFirst, compileWithPosition, compileWithPosition, deepCopy, deepCopy, deepCopy, deepCopy, eval, eval, getColumnNumber, getFileName, getFlag, getFlags, getLineNumber, getPublicId, getSystemId, getType, getTypeRaw, isSingleValue, isStableSourceLocation, makeWhile, match0, maybeSetLine, neverReturns, print, printLineColumn, setFile, setFlag, setFlag, setLine, setLine, setLine, setLine, setLocation, setType, valueIfConstantapply, check0, check1, check2, check3, check4, checkArgCount, checkN, getReturnType, getSetter, getSourceLocation, isSideEffectFree, match1, match2, match3, match4, matchN, maxArgs, maxArgs, minArgs, minArgs, set0, set1, setN, setSetter, setSourceLocationgetName, getSymbol, removeProperty, setName, setProperty, setSymbolpublic static final int EXPORT_SPECIFIED
public static final int STATIC_SPECIFIED
public static final int NONSTATIC_SPECIFIED
public static final int SUPERTYPE_SPECIFIED
public static final int STATIC_RUN_SPECIFIED
public static final int LAZY_DECLARATIONS
public static final int IMMEDIATE
public static final int INTERACTIVE
public static final int USE_DEFINED_CLASS
public static final int HAS_SUB_MODULE
public static java.lang.String dumpZipPrefix
public static boolean compilerAvailable
public static boolean alwaysCompile
public boolean subModulesOnly()
public static java.lang.Class evalToClass(Compilation comp, java.net.URL url) throws SyntaxException
SyntaxExceptionpublic static boolean compilerAvailable()
public static final boolean evalModule(Environment env, CallContext ctx, Compilation comp, java.net.URL url, gnu.kawa.io.OutPort msg) throws java.lang.Throwable
java.lang.Throwablepublic static final java.lang.Object evalModule1(Environment env, Compilation comp, java.net.URL url, gnu.kawa.io.OutPort msg) throws SyntaxException
SyntaxExceptionpublic static final void evalModule2(Environment env, CallContext ctx, Language language, ModuleExp mexp, java.lang.Object inst) throws java.lang.Throwable
java.lang.Throwablepublic java.lang.String getNamespaceUri()
public final ClassType getSuperType()
public final void setSuperType(ClassType s)
public final ClassType[] getInterfaces()
public final void setInterfaces(ClassType[] s)
public final boolean isStatic()
public boolean staticInitRun()
public void allocChildClasses(Compilation comp)
allocChildClasses in class LambdaExpprotected <R,D> R visit(ExpVisitor<R,D> visitor, D d)
public Declaration firstDecl()
public ClassType classFor(Compilation comp)
public void writeExternal(java.io.ObjectOutput out)
throws java.io.IOException
writeExternal in interface java.io.Externalizablejava.io.IOExceptionpublic void readExternal(java.io.ObjectInput in)
throws java.io.IOException,
java.lang.ClassNotFoundException
readExternal in interface java.io.Externalizablejava.io.IOExceptionjava.lang.ClassNotFoundException