public class EvaluateExprCompileContextImpl extends AbstractCompileContext
Modifier and Type | Method and Description |
---|---|
static ExprCompileContext |
buildCompileContext(ExprEval exprEval,
java.lang.Object source) |
boolean |
canTypeCheck()
Returns whether this compile context can be used for type checking.
|
ExprDef |
getExprDef()
Return the definition of the expressio that is compiling.
|
groovy.lang.Script |
getGlobalScript()
Return the global script instance defined by this compile context.
|
java.lang.String |
getNewValueType()
In validator contexts this returns the type of the new attribute
or row.
|
java.lang.String |
getOldValueType()
In validator contexts this returns the type of the new attribute
or row.
|
groovy.lang.Script |
getOperationsScript()
Return the operations script for the current compile context.
|
java.lang.String |
getSourceAttributeType(java.lang.String name)
Return the source attribute type.
|
java.lang.String |
getSourceMethodReturnType(java.lang.String name,
java.lang.String... argtypes)
Return the return type of a source method.
|
java.lang.String |
getSourcePropertyType(java.lang.String name)
Return the source property type.
|
java.lang.String |
getSourceType()
Return the source type of the current compile context.
|
classesFor, classFor, getMethodReturnType, getPropertyType, getReturnType, getReturnType, getVariableType, isAssignableFrom, setNestedContext
getProperty, getVariable, getVariables, hasVariable, setProperty, setVariable
public static ExprCompileContext buildCompileContext(ExprEval exprEval, java.lang.Object source)
public ExprDef getExprDef()
ExprCompileContext
getExprDef
in interface ExprCompileContext
getExprDef
in class AbstractCompileContext
public boolean canTypeCheck()
ExprCompileContext
canTypeCheck
in interface ExprCompileContext
canTypeCheck
in class AbstractCompileContext
public groovy.lang.Script getOperationsScript()
AbstractCompileContext
getOperationsScript
in class AbstractCompileContext
public groovy.lang.Script getGlobalScript()
ExprCompileContext
getGlobalScript
in interface ExprCompileContext
getGlobalScript
in class AbstractCompileContext
public java.lang.String getSourceType()
AbstractCompileContext
getSourceType
in class AbstractCompileContext
public java.lang.String getSourceAttributeType(java.lang.String name)
AbstractCompileContext
getSourceAttributeType
in class AbstractCompileContext
public java.lang.String getSourcePropertyType(java.lang.String name)
AbstractCompileContext
getSourcePropertyType
in class AbstractCompileContext
public java.lang.String getSourceMethodReturnType(java.lang.String name, java.lang.String... argtypes)
AbstractCompileContext
getSourceMethodReturnType
in class AbstractCompileContext
public java.lang.String getNewValueType()
AbstractCompileContext
getNewValueType
in class AbstractCompileContext
public java.lang.String getOldValueType()
AbstractCompileContext
getOldValueType
in class AbstractCompileContext