@GroovyASTTransformation(phase = CompilePhase.SEMANTIC_ANALYSIS) public class SealedASTTransformation extends AbstractASTTransformation
Handles generation of code for the
Modifiers | Name | Description |
---|---|---|
static String |
SEALED_ALWAYS_ANNOTATE |
Fields inherited from class | Fields |
---|---|
class AbstractASTTransformation |
RETENTION_CLASSNODE |
Type Params | Return Type | Name and description |
---|---|---|
|
public static boolean |
sealedNative(AnnotatedNode node) Reports true if native sealed class information should be written into the bytecode. |
|
public static boolean |
sealedSkipAnnotation(AnnotatedNode node) Reports true if the Sealed annotation should not be
included in the bytecode for a sealed or emulated-sealed class.
|
|
public void |
visit(ASTNode[] nodes, SourceUnit source) |
Methods inherited from class | Name |
---|---|
class AbstractASTTransformation |
addError, checkPropertyList, checkPropertyList, checkPropertyList, deemedInternalName, getAnnotationName, getMemberClassList, getMemberClassValue, getMemberClassValue, getMemberIntValue, getMemberStringList, getMemberStringValue, getMemberStringValue, getMemberValue, hasAnnotation, memberHasValue, shouldSkip, shouldSkip, shouldSkipOnDescriptorUndefinedAware, shouldSkipUndefinedAware, shouldSkipUndefinedAware, tokenize |
Reports true if native sealed class information should be written into the bytecode. Will only ever return true after the SealedASTTransformation visit method has completed.
Reports true if the Sealed
annotation should not be
included in the bytecode for a sealed or emulated-sealed class.
Will only ever return true after the SealedASTTransformation
transform has been invoked.
Sealed
annotation is not required for this node