Class EnumTypeCheckingExtension
java.lang.Object
org.codehaus.groovy.transform.stc.TypeCheckingExtension
org.codehaus.groovy.transform.stc.EnumTypeCheckingExtension
public class EnumTypeCheckingExtension extends TypeCheckingExtension
A type checking extension that will take care of handling errors which are specific to enums. In particular, it will
 handle the enum constants within switch-case statement.
- Since:
- 3.0.0
- 
Field SummaryFields inherited from class org.codehaus.groovy.transform.stc.TypeCheckingExtensiontypeCheckingVisitor
- 
Constructor SummaryConstructors Constructor Description EnumTypeCheckingExtension(StaticTypeCheckingVisitor staticTypeCheckingVisitor)
- 
Method SummaryModifier and Type Method Description booleanhandleUnresolvedVariableExpression(VariableExpression vexp)This method is called by the type checker when a variable expression cannot be resolved.Methods inherited from class org.codehaus.groovy.transform.stc.TypeCheckingExtensionaddStaticTypeError, afterMethodCall, afterVisitClass, afterVisitMethod, beforeMethodCall, beforeVisitClass, beforeVisitMethod, buildListType, buildMapType, classNodeFor, classNodeFor, existsProperty, existsProperty, extractStaticReceiver, finish, getArgumentTypes, getTargetMethod, getType, handleAmbiguousMethods, handleIncompatibleAssignment, handleIncompatibleReturnType, handleMissingMethod, handleUnresolvedAttribute, handleUnresolvedProperty, isStaticMethodCallOnClass, lookupClassNodeFor, onMethodSelection, parameterizedType, setup, storeTypeMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
- 
Constructor Details- 
EnumTypeCheckingExtension
 
- 
- 
Method Details- 
handleUnresolvedVariableExpressionDescription copied from class:TypeCheckingExtensionThis method is called by the type checker when a variable expression cannot be resolved. It gives the extension a chance to resolve it for the type checker.- Overrides:
- handleUnresolvedVariableExpressionin class- TypeCheckingExtension
- Parameters:
- vexp- the unresolved variable extension
- Returns:
- booleanfalse if the extension doesn't handle it, true if the extension handles this variable.
 
 
-