public class DefaultCompileContext extends AbstractCompileContext
DefaultExprDef for general purpose use of the ADF groovy
compiler/evaluator.AbstractCompileContext.UntypedExtendedTypemExtendedTypeUNKNOWN_PARAMETER_TYPE_NAME, VOID_RETURN_TYPE| Constructor and Description |
|---|
DefaultCompileContext(ExprDef exprDef) |
| Modifier and Type | Method and Description |
|---|---|
ExprDef |
getExprDef()
Return the definition of the expressio that is compiling.
|
java.lang.String |
getGlobalOperationReturnType(java.lang.String name,
java.lang.String... argtypes)
Return the type of the given global operations.
|
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.
|
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 |
getSourceOperationReturnType(java.lang.String name,
java.lang.String... argtypes)
Return the return type of a source operation.
|
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.
|
boolean |
isCodeSource()
Indicates whether the compile source belongs to an ADF/BC code source.
|
classesFor, classFor, getCurrentASTNode, getCurrentNode, getErrorCollector, getExprTrustSupplier, getExtendedType, getMethodReturnType, getPropertyType, getReturnType, getReturnType, getVariableType, isAssignableFrom, isMandatoryAttribute, isRowAttribute, isTypeChecked, setCurrentASTNode, setCurrentNode, setErrorCollector, setTypeCheckerClassLoadergetProperty, getVariable, getVariables, hasVariable, setProperty, setVariablepublic DefaultCompileContext(ExprDef exprDef)
public ExprDef getExprDef()
ExprCompileContextgetExprDef in interface ExprCompileContextgetExprDef in class AbstractCompileContextpublic java.lang.String getSourceType()
AbstractCompileContextgetSourceType in class AbstractCompileContextpublic java.lang.String getSourceAttributeType(java.lang.String name)
AbstractCompileContextgetSourceAttributeType in class AbstractCompileContextpublic java.lang.String getSourcePropertyType(java.lang.String name)
AbstractCompileContextgetSourcePropertyType in class AbstractCompileContextpublic java.lang.String getGlobalOperationReturnType(java.lang.String name,
java.lang.String... argtypes)
ExprCompileContextgetGlobalOperationReturnType in interface ExprCompileContextgetGlobalOperationReturnType in class AbstractCompileContextpublic java.lang.String getSourceOperationReturnType(java.lang.String name,
java.lang.String... argtypes)
AbstractCompileContextgetSourceOperationReturnType in class AbstractCompileContextpublic java.lang.String getSourceMethodReturnType(java.lang.String name,
java.lang.String... argtypes)
AbstractCompileContextgetSourceMethodReturnType in class AbstractCompileContextpublic java.lang.String getNewValueType()
AbstractCompileContextgetNewValueType in class AbstractCompileContextpublic java.lang.String getOldValueType()
AbstractCompileContextgetOldValueType in class AbstractCompileContextpublic boolean isCodeSource()
ExprCompileContext