Class LiteralExpression
java.lang.Object
com.googlecode.aviator.BaseExpression
com.googlecode.aviator.LiteralExpression
- All Implemented Interfaces:
Expression, Serializable
A literal expression with a fixed result
- See Also:
-
Field Summary
FieldsFields inherited from class BaseExpression
FUNC_PARAMS_VAR, instance, lambdaBootstraps, sourceFile, symbolTable, varFullNames, varNames -
Constructor Summary
ConstructorsConstructorDescriptionLiteralExpression(AviatorEvaluatorInstance instance, Object result, List<VariableMeta> vars) -
Method Summary
Modifier and TypeMethodDescriptionexecuteDirectly(Map<String, Object> env) private voidreadObject(ObjectInputStream input) toString()private voidwriteObject(ObjectOutputStream output) Methods inherited from class 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:
-
result
-
-
Constructor Details
-
LiteralExpression
-
-
Method Details
-
executeDirectly
- Specified by:
executeDirectlyin classBaseExpression
-
toString
-
readObject
- Throws:
ClassNotFoundExceptionIOException
-
writeObject
- Throws:
IOException
-