@ProviderFor(value=JavacAnnotationHandler.class) public class HandleCleanup extends JavacAnnotationHandler<Cleanup>
lombok.Cleanup
annotation for javac.trees
Constructor and Description |
---|
HandleCleanup() |
Modifier and Type | Method and Description |
---|---|
void |
doAssignmentCheck(JavacNode node,
<any> statements,
Name name) |
void |
doAssignmentCheck0(JavacNode node,
JCTree statement,
Name name) |
void |
handle(AnnotationValues<Cleanup> annotation,
JCAnnotation ast,
JavacNode annotationNode)
Called when an annotation is found that is likely to match the annotation you're interested in.
|
JCExpression |
preventNullAnalysis(lombok.javac.JavacTreeMaker maker,
JavacNode node,
JCExpression expression) |
getAnnotationHandledByThisHandler, setTrees
public void handle(AnnotationValues<Cleanup> annotation, JCAnnotation ast, JavacNode annotationNode)
JavacAnnotationHandler
handle
in class JavacAnnotationHandler<Cleanup>
annotation
- The actual annotation - use this object to retrieve the annotation parameters.ast
- The javac AST node representing the annotation.annotationNode
- The Lombok AST wrapper around the 'ast' parameter. You can use this object
to travel back up the chain (something javac AST can't do) to the parent of the annotation, as well
as access useful methods such as generating warnings or errors focused on the annotation.public JCExpression preventNullAnalysis(lombok.javac.JavacTreeMaker maker, JavacNode node, JCExpression expression)
public void doAssignmentCheck(JavacNode node, <any> statements, Name name)
public void doAssignmentCheck0(JavacNode node, JCTree statement, Name name)
Copyright © 2009-2015 The Project Lombok Authors, licensed under the MIT licence.