org.mvel2.compiler
Class CompiledExpression

java.lang.Object
  extended by org.mvel2.compiler.CompiledExpression
All Implemented Interfaces:
Serializable, Cloneable, Accessor, ExecutableStatement

public class CompiledExpression
extends Object
implements Serializable, ExecutableStatement

See Also:
Serialized Form

Constructor Summary
CompiledExpression(ASTLinkedList astMap, String sourceName, Class egressType, ParserConfiguration parserConfiguration, boolean literalOnly)
           
 
Method Summary
 void computeTypeConversionRule()
           
 Class<? extends AccessorOptimizer> getAccessorOptimizer()
           
 Object getDirectValue(Object staticContext, VariableResolverFactory factory)
           
 ASTNode getFirstNode()
           
 Class getKnownEgressType()
           
 Class getKnownIngressType()
           
 ParserConfiguration getParserConfiguration()
           
 String getSourceName()
           
 Object getValue(Object ctx, Object elCtx, VariableResolverFactory variableFactory)
           
 Object getValue(Object staticContext, VariableResolverFactory factory)
           
 boolean intOptimized()
           
 boolean isConvertableIngressEgress()
           
 boolean isEmptyStatement()
           
 boolean isExplicitCast()
           
 boolean isImportInjectionRequired()
           
 boolean isLiteralOnly()
           
 boolean isOptimized()
           
 boolean isSingleNode()
           
 void setKnownEgressType(Class knownEgressType)
           
 void setKnownIngressType(Class knownIngressType)
           
 Object setValue(Object ctx, Object elCtx, VariableResolverFactory variableFactory, Object value)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CompiledExpression

public CompiledExpression(ASTLinkedList astMap,
                          String sourceName,
                          Class egressType,
                          ParserConfiguration parserConfiguration,
                          boolean literalOnly)
Method Detail

getFirstNode

public ASTNode getFirstNode()

isSingleNode

public boolean isSingleNode()

getKnownEgressType

public Class getKnownEgressType()
Specified by:
getKnownEgressType in interface Accessor
Specified by:
getKnownEgressType in interface ExecutableStatement

setKnownEgressType

public void setKnownEgressType(Class knownEgressType)
Specified by:
setKnownEgressType in interface ExecutableStatement

getKnownIngressType

public Class getKnownIngressType()
Specified by:
getKnownIngressType in interface ExecutableStatement

setKnownIngressType

public void setKnownIngressType(Class knownIngressType)
Specified by:
setKnownIngressType in interface ExecutableStatement

isConvertableIngressEgress

public boolean isConvertableIngressEgress()
Specified by:
isConvertableIngressEgress in interface ExecutableStatement

computeTypeConversionRule

public void computeTypeConversionRule()
Specified by:
computeTypeConversionRule in interface ExecutableStatement

getValue

public Object getValue(Object ctx,
                       Object elCtx,
                       VariableResolverFactory variableFactory)
Specified by:
getValue in interface Accessor

getValue

public Object getValue(Object staticContext,
                       VariableResolverFactory factory)
Specified by:
getValue in interface ExecutableStatement

getDirectValue

public Object getDirectValue(Object staticContext,
                             VariableResolverFactory factory)

isOptimized

public boolean isOptimized()

getAccessorOptimizer

public Class<? extends AccessorOptimizer> getAccessorOptimizer()

getSourceName

public String getSourceName()

intOptimized

public boolean intOptimized()
Specified by:
intOptimized in interface ExecutableStatement

getParserConfiguration

public ParserConfiguration getParserConfiguration()

isImportInjectionRequired

public boolean isImportInjectionRequired()

setValue

public Object setValue(Object ctx,
                       Object elCtx,
                       VariableResolverFactory variableFactory,
                       Object value)
Specified by:
setValue in interface Accessor

isLiteralOnly

public boolean isLiteralOnly()
Specified by:
isLiteralOnly in interface ExecutableStatement

isEmptyStatement

public boolean isEmptyStatement()
Specified by:
isEmptyStatement in interface ExecutableStatement

isExplicitCast

public boolean isExplicitCast()
Specified by:
isExplicitCast in interface ExecutableStatement

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2001–2020 JBoss by Red Hat. All rights reserved.