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 a switch's case statements.
| Fields inherited from class | Fields |
|---|---|
class TypeCheckingExtension |
typeCheckingVisitor |
| Constructor and description |
|---|
EnumTypeCheckingExtension(StaticTypeCheckingVisitor staticTypeCheckingVisitor)Creates the enum-specific type-checking extension. |
| Type Params | Return Type | Name and description |
|---|---|---|
|
public boolean |
handleUnresolvedVariableExpression(VariableExpression vexp)Resolves enum constants referenced inside switch case labels. |
Creates the enum-specific type-checking extension.
Resolves enum constants referenced inside switch case labels.
Copyright © 2003-2026 The Apache Software Foundation. All rights reserved.