[Java] Class NullCheckASTTransformation
- org.codehaus.groovy.transform.NullCheckASTTransformation
@GroovyASTTransformation(phase = CompilePhase.INSTRUCTION_SELECTION) public class NullCheckASTTransformation extends AbstractASTTransformation
Handles generation of code for the
- NullCheck:
- annotation.
Field Summary
Modifiers | Name | Description |
---|---|---|
static ClassNode | NULL_CHECK_TYPE |
Fields inherited from class | Fields |
---|---|
class AbstractASTTransformation | RETENTION_CLASSNODE, sourceUnit |
Methods Summary
Type Params | Return Type | Name and description |
---|---|---|
public static boolean |
hasIncludeGenerated(ClassNode cNode) | |
public static ThrowStatement |
makeThrowStmt(String name) | |
public static void |
markAsProcessed(MethodNode mn) Mark a method as already processed. | |
public void |
visit(ASTNode[] nodes, SourceUnit source) |
Inherited Methods Summary
Field Detail
public static final ClassNode NULL_CHECK_TYPE
Method Detail
public static boolean hasIncludeGenerated(ClassNode cNode)
public static ThrowStatement makeThrowStmt(String name)
public static void markAsProcessed(MethodNode mn)
Mark a method as already processed.
- Parameters:
-
mn
- the method node to be considered already processed
@Override public void visit(ASTNode[] nodes, SourceUnit source)
© 2003-2020 The Apache Software Foundation
Licensed under the Apache license.
https://docs.groovy-lang.org/3.0.7/html/gapi/org/codehaus/groovy/transform/NullCheckASTTransformation.html