Package org.mvel2.compiler
Class CompiledExpression
- java.lang.Object
-
- org.mvel2.compiler.CompiledExpression
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Cloneable
,Accessor
,ExecutableStatement
public class CompiledExpression extends java.lang.Object implements java.io.Serializable, ExecutableStatement
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private boolean
convertableIngressEgress
private ASTNode
firstNode
private java.lang.Class
knownEgressType
private java.lang.Class
knownIngressType
private boolean
literalOnly
private boolean
optimized
private ParserConfiguration
parserConfiguration
private java.lang.String
sourceName
-
Constructor Summary
Constructors Constructor Description CompiledExpression(ASTLinkedList astMap, java.lang.String sourceName, java.lang.Class egressType, ParserConfiguration parserConfiguration, boolean literalOnly)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
computeTypeConversionRule()
java.lang.Object
getDirectValue(java.lang.Object staticContext, VariableResolverFactory factory)
ASTNode
getFirstNode()
java.lang.Class
getKnownEgressType()
java.lang.Class
getKnownIngressType()
ParserConfiguration
getParserConfiguration()
java.lang.Object
getValue(java.lang.Object ctx, java.lang.Object elCtx, VariableResolverFactory variableFactory)
java.lang.Object
getValue(java.lang.Object staticContext, VariableResolverFactory factory)
boolean
intOptimized()
boolean
isConvertableIngressEgress()
boolean
isEmptyStatement()
boolean
isExplicitCast()
boolean
isImportInjectionRequired()
boolean
isLiteralOnly()
boolean
isSingleNode()
void
setKnownEgressType(java.lang.Class knownEgressType)
void
setKnownIngressType(java.lang.Class knownIngressType)
private void
setupOptimizers()
java.lang.Object
setValue(java.lang.Object ctx, java.lang.Object elCtx, VariableResolverFactory variableFactory, java.lang.Object value)
java.lang.String
toString()
-
-
-
Field Detail
-
firstNode
private final ASTNode firstNode
-
knownEgressType
private java.lang.Class knownEgressType
-
knownIngressType
private java.lang.Class knownIngressType
-
convertableIngressEgress
private boolean convertableIngressEgress
-
optimized
private boolean optimized
-
literalOnly
private final boolean literalOnly
-
sourceName
private final java.lang.String sourceName
-
parserConfiguration
private final ParserConfiguration parserConfiguration
-
-
Constructor Detail
-
CompiledExpression
public CompiledExpression(ASTLinkedList astMap, java.lang.String sourceName, java.lang.Class egressType, ParserConfiguration parserConfiguration, boolean literalOnly)
-
-
Method Detail
-
getFirstNode
public ASTNode getFirstNode()
-
isSingleNode
public boolean isSingleNode()
-
getKnownEgressType
public java.lang.Class getKnownEgressType()
- Specified by:
getKnownEgressType
in interfaceAccessor
- Specified by:
getKnownEgressType
in interfaceExecutableStatement
-
setKnownEgressType
public void setKnownEgressType(java.lang.Class knownEgressType)
- Specified by:
setKnownEgressType
in interfaceExecutableStatement
-
getKnownIngressType
public java.lang.Class getKnownIngressType()
- Specified by:
getKnownIngressType
in interfaceExecutableStatement
-
setKnownIngressType
public void setKnownIngressType(java.lang.Class knownIngressType)
- Specified by:
setKnownIngressType
in interfaceExecutableStatement
-
isConvertableIngressEgress
public boolean isConvertableIngressEgress()
- Specified by:
isConvertableIngressEgress
in interfaceExecutableStatement
-
computeTypeConversionRule
public void computeTypeConversionRule()
- Specified by:
computeTypeConversionRule
in interfaceExecutableStatement
-
getValue
public java.lang.Object getValue(java.lang.Object ctx, java.lang.Object elCtx, VariableResolverFactory variableFactory)
-
getValue
public java.lang.Object getValue(java.lang.Object staticContext, VariableResolverFactory factory)
- Specified by:
getValue
in interfaceExecutableStatement
-
getDirectValue
public java.lang.Object getDirectValue(java.lang.Object staticContext, VariableResolverFactory factory)
-
setupOptimizers
private void setupOptimizers()
-
intOptimized
public boolean intOptimized()
- Specified by:
intOptimized
in interfaceExecutableStatement
-
getParserConfiguration
public ParserConfiguration getParserConfiguration()
-
isImportInjectionRequired
public boolean isImportInjectionRequired()
-
setValue
public java.lang.Object setValue(java.lang.Object ctx, java.lang.Object elCtx, VariableResolverFactory variableFactory, java.lang.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
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-