@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, sourceUnit |
| 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) |
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