public interface ExprCompileContext
Modifier and Type | Method and Description |
---|---|
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 |
getMethodReturnType(java.lang.String receiverType,
java.lang.String name,
java.lang.String... argtypes)
Return the return type of the given method.
|
java.lang.String |
getPropertyType(java.lang.String objectType,
java.lang.String name)
Return the type of the given property.
|
java.lang.String |
getVariableType(java.lang.String name)
Return the type of the given variable.
|
ExprDef getExprDef()
boolean canTypeCheck()
java.lang.String getPropertyType(java.lang.String objectType, java.lang.String name)
Invoked by the type checker if it cannot resolve the specifid property.
java.lang.String getVariableType(java.lang.String name)
Invoked by the type checker if it cannot resolve the specified variable.
java.lang.String getMethodReturnType(java.lang.String receiverType, java.lang.String name, java.lang.String... argtypes)
Invoked by the type checker if it cannot resolve the specified method.
groovy.lang.Script getGlobalScript()