Package com.googlecode.aviator
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 com.googlecode.aviator.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 void
readObject
(ObjectInputStream input) toString()
private void
writeObject
(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:
-
result
-
-
Constructor Details
-
LiteralExpression
-
-
Method Details
-
executeDirectly
- Specified by:
executeDirectly
in classBaseExpression
-
toString
-
readObject
- Throws:
ClassNotFoundException
IOException
-
writeObject
- Throws:
IOException
-