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 |
static java.lang.String |
dumpZipPrefix
Used to control which .zip file dumps are generated.
|
static int |
EXPORT_SPECIFIED |
static int |
IMMEDIATE |
static int |
interactiveCounter
Numeric identifier for this interactive "command".
|
static int |
LAZY_DECLARATIONS |
static int |
NONSTATIC_SPECIFIED |
static int |
STATIC_RUN_SPECIFIED |
static int |
STATIC_SPECIFIED |
static int |
SUPERTYPE_SPECIFIED |
ATTEMPT_INLINE, body, closureEnvField, defaultArgs, firstChild, inlineHome, keywords, max_args, min_args, nameDecl, NEXT_AVAIL_FLAG, nextSibling, NO_FIELD, OVERLOADABLE_FIELD, returnContinuation, returnType, SEQUENCE_RESULT, staticLinkField
flags, noExpressions, VALIDATED
compilerKey, validateApplyKey
nameKey
Constructor and Description |
---|
ModuleExp() |
Modifier and Type | Method and Description |
---|---|
void |
allocChildClasses(Compilation comp) |
ClassType |
classFor(Compilation comp)
Return the class this module.
|
static boolean |
evalModule(Environment env,
CallContext ctx,
Compilation comp,
java.net.URL url,
OutPort msg) |
static java.lang.Object |
evalModule1(Environment env,
Compilation comp,
java.net.URL url,
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(OutPort out) |
void |
readExternal(java.io.ObjectInput in) |
void |
setInterfaces(ClassType[] s) |
void |
setSuperType(ClassType s) |
boolean |
staticInitRun()
True if module body (i.e.
|
protected <R,D> R |
visit(ExpVisitor<R,D> visitor,
D d) |
void |
writeExternal(java.io.ObjectOutput out) |
allocFrame, apply, capture, compile, compileBody, compileEnd, compileSetField, declareClosureEnv, declareThis, generateApplyMethods, getCallConvention, getCaller, getCanCall, getCanRead, getClassType, getCompiledClassType, getExpClassName, getHeapFrameType, getImportsLexVars, getInlineOnly, getMainMethod, getMethod, getNeedsClosureEnv, getNeedsStaticLink, getOwningLambda, getProperty, getReturnType, getType, incomingArgs, isAbstract, isClassGenerated, isClassMethod, isHandlingTailCalls, isModuleBody, loadHeapFrame, mustCompile, outerLambda, outerLambdaNotInline, restArgType, setCanCall, setCanRead, setClassMethod, setCoercedReturnType, setCoercedReturnValue, setExceptions, setImportsLexVars, setImportsLexVars, setInlineOnly, setNeedsStaticLink, setNeedsStaticLink, setProperty, setReturnType, setType, side_effects, toString, validateApply, variable_args, visitChildren, visitChildrenOnly, visitProperties
add, add, addDeclaration, addDeclaration, addDeclaration, countDecls, countNonDynamicDecls, currentLambda, currentModule, duplicateDeclarationError, getDefine, getNoDefine, getVarScope, lookup, lookup, nestedIn, nesting, popScope, remove, remove, replaceFollowing, setIndexes, topLevel
apply0, compile, compile, compileButFirst, compileNotePosition, compileWithPosition, compileWithPosition, deepCopy, deepCopy, deepCopy, deepCopy, eval, eval, getColumnNumber, getFileName, getFlag, getFlags, getLineNumber, getPublicId, getSystemId, isSingleValue, isStableSourceLocation, makeWhile, match0, print, printLineColumn, setFile, setFlag, setFlag, setLine, setLine, setLine, setLine, setLocation, valueIfConstant
apply, check0, check1, check2, check3, check4, checkArgCount, checkN, getReturnType, getSetter, getSourceLocation, isSideEffectFree, match1, match2, match3, match4, matchN, maxArgs, maxArgs, minArgs, minArgs, set0, set1, setN, setSetter, setSourceLocation
getName, getSymbol, removeProperty, setName, setProperty, setSymbol
public 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 java.lang.String dumpZipPrefix
public static int interactiveCounter
public static boolean compilerAvailable
public static boolean alwaysCompile
public static java.lang.Class evalToClass(Compilation comp, java.net.URL url) throws SyntaxException
SyntaxException
public static final boolean evalModule(Environment env, CallContext ctx, Compilation comp, java.net.URL url, OutPort msg) throws java.lang.Throwable
java.lang.Throwable
public static final java.lang.Object evalModule1(Environment env, Compilation comp, java.net.URL url, OutPort msg) throws SyntaxException
SyntaxException
public static final void evalModule2(Environment env, CallContext ctx, Language language, ModuleExp mexp, java.lang.Object inst) throws java.lang.Throwable
java.lang.Throwable
public 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 LambdaExp
protected <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.Externalizable
java.io.IOException
public void readExternal(java.io.ObjectInput in) throws java.io.IOException, java.lang.ClassNotFoundException
readExternal
in interface java.io.Externalizable
java.io.IOException
java.lang.ClassNotFoundException