|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.codehaus.groovy.transform.stc.TypeCheckingExtension
org.codehaus.groovy.transform.stc.DefaultTypeCheckingExtension
public class DefaultTypeCheckingExtension extends TypeCheckingExtension
The default type checking handler is used by the standard type checker and doesn't handle any of the type checking errors by default. This just means that whenever a type checking error is detected, there's no additional information available to the type checker that could help it. The default handler is also capable of handling a collection of delegate handlers. If a list of delegates is set, then the type checker will try all the delegates until one is capable of handling an error.
Field Summary | |
---|---|
protected java.util.List |
handlers
|
Fields inherited from class TypeCheckingExtension | |
---|---|
typeCheckingVisitor |
Constructor Summary | |
DefaultTypeCheckingExtension(StaticTypeCheckingVisitor typeCheckingVisitor)
|
Method Summary | |
---|---|
void
|
addHandler(TypeCheckingExtension handler)
|
void
|
afterMethodCall(MethodCall call)
|
void
|
afterVisitClass(ClassNode node)
|
void
|
afterVisitMethod(MethodNode node)
|
boolean
|
beforeMethodCall(MethodCall call)
|
boolean
|
beforeVisitClass(ClassNode node)
|
boolean
|
beforeVisitMethod(MethodNode node)
|
void
|
finish()
|
boolean
|
handleIncompatibleAssignment(ClassNode lhsType, ClassNode rhsType, Expression assignmentExpression)
|
java.util.List
|
handleMissingMethod(ClassNode receiver, java.lang.String name, ArgumentListExpression argumentList, ClassNode[] argumentTypes, MethodCall call)
|
boolean
|
handleUnresolvedAttribute(AttributeExpression aexp)
|
boolean
|
handleUnresolvedProperty(PropertyExpression pexp)
|
boolean
|
handleUnresolvedVariableExpression(VariableExpression vexp)
|
void
|
onMethodSelection(Expression expression, MethodNode target)
|
void
|
removeHandler(TypeCheckingExtension handler)
|
void
|
setup()
|
Methods inherited from class java.lang.Object | |
---|---|
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Field Detail |
---|
protected final java.util.List handlers
Constructor Detail |
---|
public DefaultTypeCheckingExtension(StaticTypeCheckingVisitor typeCheckingVisitor)
Method Detail |
---|
public void addHandler(TypeCheckingExtension handler)
@java.lang.Override public void afterMethodCall(MethodCall call)
@java.lang.Override public void afterVisitClass(ClassNode node)
@java.lang.Override public void afterVisitMethod(MethodNode node)
@java.lang.Override public boolean beforeMethodCall(MethodCall call)
@java.lang.Override public boolean beforeVisitClass(ClassNode node)
@java.lang.Override public boolean beforeVisitMethod(MethodNode node)
@java.lang.Override public void finish()
@java.lang.Override public boolean handleIncompatibleAssignment(ClassNode lhsType, ClassNode rhsType, Expression assignmentExpression)
public java.util.List handleMissingMethod(ClassNode receiver, java.lang.String name, ArgumentListExpression argumentList, ClassNode[] argumentTypes, MethodCall call)
public boolean handleUnresolvedAttribute(AttributeExpression aexp)
public boolean handleUnresolvedProperty(PropertyExpression pexp)
public boolean handleUnresolvedVariableExpression(VariableExpression vexp)
@java.lang.Override public void onMethodSelection(Expression expression, MethodNode target)
public void removeHandler(TypeCheckingExtension handler)
@java.lang.Override public void setup()
Groovy Documentation