Package com.googlecode.aviator
Class InterpretExpression
java.lang.Object
com.googlecode.aviator.BaseExpression
com.googlecode.aviator.InterpretExpression
- All Implemented Interfaces:
Expression,Serializable
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Map<Token<?>, AviatorObject> private static final longprivate booleanprivate Map<VariableMeta, AviatorJavaType> Fields inherited from class com.googlecode.aviator.BaseExpression
FUNC_PARAMS_VAR, instance, lambdaBootstraps, sourceFile, symbolTable, varFullNames, varNames -
Constructor Summary
ConstructorsConstructorDescriptionInterpretExpression(AviatorEvaluatorInstance instance, List<VariableMeta> vars, Set<Token<?>> constants, SymbolTable symbolTable, List<IR> instruments, boolean unboxObject) -
Method Summary
Modifier and TypeMethodDescriptionexecuteDirectly(Map<String, Object> env) loadConstant(Token<?> token) private voidloadConstants(Set<Token<?>> constants, List<IR> instruments) private voidloadVars(List<VariableMeta> vars) voidprivate voidreadObject(ObjectInputStream input) private voidtraceInstruments(Map<String, Object> env, String name, boolean traceLambda) private voidwriteObject(ObjectOutputStream output) Methods inherited from class com.googlecode.aviator.BaseExpression
addSymbol, afterPopulateFullNames, customReadObject, customWriteObject, execute, execute, execute, genTopEnv, getCompileEnv, getExpression, getFullNameMetas, getFunctionNames, getLambdaBootstraps, getSourceFile, getStringSegements, getVariableFullNames, getVariableNames, getVars, newEnv, newEnv, newEnv, newLambda, setCompileEnv, setExpression, setFuncsArgs, setFunctionNames, setInstance, setLambdaBootstraps, setSourceFile
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
instruments
-
unboxObject
private boolean unboxObject -
variables
-
constantPool
-
-
Constructor Details
-
InterpretExpression
public InterpretExpression(AviatorEvaluatorInstance instance, List<VariableMeta> vars, Set<Token<?>> constants, SymbolTable symbolTable, List<IR> instruments, boolean unboxObject)
-
-
Method Details
-
loadVars
-
loadConstants
-
loadVar
-
loadConstant
-
printInstruments
public void printInstruments() -
traceInstruments
-
executeDirectly
- Specified by:
executeDirectlyin classBaseExpression
-
readObject
- Throws:
ClassNotFoundExceptionIOException
-
writeObject
- Throws:
IOException
-