EnumTypeCheckingExtension (Groovy 4.0.10)

Package: org.codehaus.groovy.transform.stc

## [Java] Class EnumTypeCheckingExtension

- 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

- - Inherited fields
    Fields inherited from class | Fields
    --- | ---
    `class TypeCheckingExtension` | `typeCheckingVisitor`

  - ### Constructor Summary

    Constructors
    Constructor and description
    `EnumTypeCheckingExtension(StaticTypeCheckingVisitor staticTypeCheckingVisitor)`

  - ### Methods Summary

    Methods
    Type Params | Return Type | Name and description
    --- | --- | ---
    `` | `public boolean` | `handleUnresolvedVariableExpression(VariableExpression vexp)`

  - ### Inherited Methods Summary

    Inherited Methods
    Methods inherited from class | Name
    --- | ---
    `class TypeCheckingExtension` | `addStaticTypeError, afterMethodCall, afterVisitClass, afterVisitMethod, beforeMethodCall, beforeVisitClass, beforeVisitMethod, buildListType, buildMapType, classNodeFor, classNodeFor, existsProperty, existsProperty, extractStaticReceiver, finish, getArgumentTypes, getTargetMethod, getType, handleAmbiguousMethods, handleIncompatibleAssignment, handleIncompatibleReturnType, handleMissingMethod, handleUnresolvedAttribute, handleUnresolvedProperty, handleUnresolvedVariableExpression, isStaticMethodCallOnClass, lookupClassNodeFor, onMethodSelection, parameterizedType, setup, storeType`

- - ### Constructor Detail

    - #### public EnumTypeCheckingExtension(StaticTypeCheckingVisitor staticTypeCheckingVisitor)

  - ### Method Detail

    - #### @Override
      public boolean handleUnresolvedVariableExpression(VariableExpression vexp)