Package org.mvel2.compiler
Class CompiledExpression
java.lang.Object
org.mvel2.compiler.CompiledExpression
- All Implemented Interfaces:
Serializable
,Cloneable
,Accessor
,ExecutableStatement
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate boolean
private final ASTNode
private Class
private Class
private final boolean
private boolean
private final ParserConfiguration
private final String
-
Constructor Summary
ConstructorsConstructorDescriptionCompiledExpression
(ASTLinkedList astMap, String sourceName, Class egressType, ParserConfiguration parserConfiguration, boolean literalOnly) -
Method Summary
Modifier and TypeMethodDescriptionvoid
getDirectValue
(Object staticContext, VariableResolverFactory factory) getValue
(Object ctx, Object elCtx, VariableResolverFactory variableFactory) getValue
(Object staticContext, VariableResolverFactory factory) boolean
boolean
boolean
boolean
boolean
boolean
boolean
void
setKnownEgressType
(Class knownEgressType) void
setKnownIngressType
(Class knownIngressType) private void
setValue
(Object ctx, Object elCtx, VariableResolverFactory variableFactory, Object value) toString()
-
Field Details
-
firstNode
-
knownEgressType
-
knownIngressType
-
convertableIngressEgress
private boolean convertableIngressEgress -
optimized
private boolean optimized -
literalOnly
private final boolean literalOnly -
sourceName
-
parserConfiguration
-
-
Constructor Details
-
CompiledExpression
public CompiledExpression(ASTLinkedList astMap, String sourceName, Class egressType, ParserConfiguration parserConfiguration, boolean literalOnly)
-
-
Method Details
-
getFirstNode
-
isSingleNode
public boolean isSingleNode() -
getKnownEgressType
- Specified by:
getKnownEgressType
in interfaceAccessor
- Specified by:
getKnownEgressType
in interfaceExecutableStatement
-
setKnownEgressType
- Specified by:
setKnownEgressType
in interfaceExecutableStatement
-
getKnownIngressType
- Specified by:
getKnownIngressType
in interfaceExecutableStatement
-
setKnownIngressType
- Specified by:
setKnownIngressType
in interfaceExecutableStatement
-
isConvertableIngressEgress
public boolean isConvertableIngressEgress()- Specified by:
isConvertableIngressEgress
in interfaceExecutableStatement
-
computeTypeConversionRule
public void computeTypeConversionRule()- Specified by:
computeTypeConversionRule
in interfaceExecutableStatement
-
getValue
-
getValue
- Specified by:
getValue
in interfaceExecutableStatement
-
getDirectValue
-
setupOptimizers
private void setupOptimizers() -
intOptimized
public boolean intOptimized()- Specified by:
intOptimized
in interfaceExecutableStatement
-
getParserConfiguration
-
isImportInjectionRequired
public boolean isImportInjectionRequired() -
setValue
public Object setValue(Object ctx, Object elCtx, VariableResolverFactory variableFactory, Object value) -
isLiteralOnly
public boolean isLiteralOnly()- Specified by:
isLiteralOnly
in interfaceExecutableStatement
-
isEmptyStatement
public boolean isEmptyStatement()- Specified by:
isEmptyStatement
in interfaceExecutableStatement
-
isExplicitCast
public boolean isExplicitCast()- Specified by:
isExplicitCast
in interfaceExecutableStatement
-
toString
-