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 java.lang.Class<? extends AccessorOptimizer>
accessorOptimizer
private boolean
convertableIngressEgress
private ASTNode
firstNode
private boolean
importInjectionRequired
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.Class<? extends AccessorOptimizer>
getAccessorOptimizer()
java.lang.Object
getDirectValue(java.lang.Object staticContext, VariableResolverFactory factory)
ASTNode
getFirstNode()
java.lang.Class
getKnownEgressType()
java.lang.Class
getKnownIngressType()
ParserConfiguration
getParserConfiguration()
java.lang.String
getSourceName()
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
isOptimized()
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 ASTNode firstNode
-
knownEgressType
private java.lang.Class knownEgressType
-
knownIngressType
private java.lang.Class knownIngressType
-
convertableIngressEgress
private boolean convertableIngressEgress
-
optimized
private boolean optimized
-
importInjectionRequired
private boolean importInjectionRequired
-
literalOnly
private boolean literalOnly
-
accessorOptimizer
private java.lang.Class<? extends AccessorOptimizer> accessorOptimizer
-
sourceName
private java.lang.String sourceName
-
parserConfiguration
private 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()
-
isOptimized
public boolean isOptimized()
-
getAccessorOptimizer
public java.lang.Class<? extends AccessorOptimizer> getAccessorOptimizer()
-
getSourceName
public java.lang.String getSourceName()
-
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
-
-