public class EvaluateExprCompileContextImpl extends AbstractCompileContext
AbstractCompileContext.UntypedExtendedType
mExtendedType
UNKNOWN_PARAMETER_TYPE_NAME, VOID_RETURN_TYPE
Constructor and Description |
---|
EvaluateExprCompileContextImpl(ExprDef exprDef,
java.lang.Object source,
ExprValueTypeSupplier valSupplier,
ExprTrustSupplier exprTrustSupplier) |
Modifier and Type | Method and Description |
---|---|
ExprDef |
getExprDef()
Return the definition of the expressio that is compiling.
|
ExprTrustSupplier |
getExprTrustSupplier()
Return the security policiy that is associated with this context.
|
java.lang.String |
getGlobalOperationReturnType(java.lang.String name,
java.lang.String... argtypes)
Return the type of the given global operations.
|
java.lang.String |
getMethodReturnType(java.lang.String receiver,
java.lang.String name,
java.lang.String[] argtypes,
java.lang.String[] argvals)
Return the return type of the given method.
|
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.
|
boolean |
isMandatoryAttribute(java.lang.String name)
Returns whether the specified attribute is mandatory.
|
boolean |
isTypeChecked()
Returns whether type checking should be performed in this compile context.
|
classesFor, classFor, getCurrentASTNode, getCurrentNode, getErrorCollector, getExtendedType, getPropertyType, getReturnType, getReturnType, getVariableType, isAssignableFrom, isRowAttribute, setCurrentASTNode, setCurrentNode, setErrorCollector, setTypeCheckerClassLoader
getProperty, getVariable, getVariables, hasVariable, setProperty, setVariable
public EvaluateExprCompileContextImpl(ExprDef exprDef, java.lang.Object source, ExprValueTypeSupplier valSupplier, ExprTrustSupplier exprTrustSupplier)
public ExprDef getExprDef()
ExprCompileContext
getExprDef
in interface ExprCompileContext
getExprDef
in class AbstractCompileContext
public boolean isTypeChecked()
ExprCompileContext
isTypeChecked
in interface ExprCompileContext
isTypeChecked
in class AbstractCompileContext
public boolean isCodeSource()
ExprCompileContext
public java.lang.String getMethodReturnType(java.lang.String receiver, java.lang.String name, java.lang.String[] argtypes, java.lang.String[] argvals)
ExprCompileContext
Invoked by the type checker if it cannot resolve the specified method.
getMethodReturnType
in interface ExprCompileContext
getMethodReturnType
in class AbstractCompileContext
public java.lang.String getGlobalOperationReturnType(java.lang.String name, java.lang.String... argtypes)
ExprCompileContext
getGlobalOperationReturnType
in interface ExprCompileContext
getGlobalOperationReturnType
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 getSourceOperationReturnType(java.lang.String name, java.lang.String... argtypes)
AbstractCompileContext
getSourceOperationReturnType
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
public ExprTrustSupplier getExprTrustSupplier()
ExprCompileContext
getExprTrustSupplier
in interface ExprCompileContext
getExprTrustSupplier
in class AbstractCompileContext
public boolean isMandatoryAttribute(java.lang.String name)
ExprCompileContext
isMandatoryAttribute
in interface ExprCompileContext
isMandatoryAttribute
in class AbstractCompileContext