lombok.javac.handlers
Class HandleDelegate
java.lang.Object
lombok.javac.JavacAnnotationHandler<Delegate>
lombok.javac.handlers.HandleDelegate
@ProviderFor(value=JavacAnnotationHandler.class)
public class HandleDelegate
- extends JavacAnnotationHandler<Delegate>
Method Summary |
void |
handle(AnnotationValues<Delegate> annotation,
com.sun.tools.javac.tree.JCTree.JCAnnotation ast,
JavacNode annotationNode)
Called when an annotation is found that is likely to match the annotation you're interested in. |
boolean |
isResolutionBased()
Return true if this handler requires resolution. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HandleDelegate
public HandleDelegate()
isResolutionBased
public boolean isResolutionBased()
- Description copied from class:
JavacAnnotationHandler
- Return true if this handler requires resolution.
- Overrides:
isResolutionBased
in class JavacAnnotationHandler<Delegate>
handle
public void handle(AnnotationValues<Delegate> annotation,
com.sun.tools.javac.tree.JCTree.JCAnnotation ast,
JavacNode annotationNode)
- Description copied from class:
JavacAnnotationHandler
- Called when an annotation is found that is likely to match the annotation you're interested in.
Be aware that you'll be called for ANY annotation node in the source that looks like a match. There is,
for example, no guarantee that the annotation node belongs to a method, even if you set your
TargetType in the annotation to methods only.
- Specified by:
handle
in class JavacAnnotationHandler<Delegate>
- Parameters:
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.
Copyright © 2009-2011 The Project Lombok Authors, licensed under the MIT licence.