@ProviderFor(value=JavacAnnotationHandler.class) public class HandleExtensionMethod extends JavacAnnotationHandler<ExtensionMethod>
ExtensionMethod
annotation for javac.trees
Constructor and Description |
---|
HandleExtensionMethod() |
Modifier and Type | Method and Description |
---|---|
lombok.javac.handlers.HandleExtensionMethod.Extension |
getExtension(JavacNode typeNode,
ClassType extensionMethodProviderType) |
java.util.List<lombok.javac.handlers.HandleExtensionMethod.Extension> |
getExtensions(JavacNode typeNode,
java.util.List<java.lang.Object> extensionProviders) |
void |
handle(AnnotationValues<ExtensionMethod> annotation,
JCAnnotation source,
JavacNode annotationNode)
Called when an annotation is found that is likely to match the annotation you're interested in.
|
getAnnotationHandledByThisHandler, setTrees
public void handle(AnnotationValues<ExtensionMethod> annotation, JCAnnotation source, JavacNode annotationNode)
JavacAnnotationHandler
handle
in class JavacAnnotationHandler<ExtensionMethod>
annotation
- The actual annotation - use this object to retrieve the annotation parameters.source
- 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 java.util.List<lombok.javac.handlers.HandleExtensionMethod.Extension> getExtensions(JavacNode typeNode, java.util.List<java.lang.Object> extensionProviders)
public lombok.javac.handlers.HandleExtensionMethod.Extension getExtension(JavacNode typeNode, ClassType extensionMethodProviderType)
Copyright © 2009-2015 The Project Lombok Authors, licensed under the MIT licence.