public class HandlerLibrary extends Object
Constructor and Description |
---|
HandlerLibrary()
Creates a new HandlerLibrary.
|
Modifier and Type | Method and Description |
---|---|
void |
callASTVisitors(EclipseAST ast,
long priority,
boolean isCompleteParse)
Will call all registered
EclipseASTVisitor instances. |
SortedSet<Long> |
getPriorities() |
void |
handleAnnotation(CompilationUnitDeclaration ast,
EclipseNode annotationNode,
org.eclipse.jdt.internal.compiler.ast.Annotation annotation,
long priority)
Handles the provided annotation node by first finding a qualifying instance of
EclipseAnnotationHandler and if one exists, calling it with a freshly cooked up
instance of AnnotationValues . |
static HandlerLibrary |
load()
Creates a new HandlerLibrary.
|
public HandlerLibrary()
load()
instead.public static HandlerLibrary load()
public void handleAnnotation(CompilationUnitDeclaration ast, EclipseNode annotationNode, org.eclipse.jdt.internal.compiler.ast.Annotation annotation, long priority)
EclipseAnnotationHandler
and if one exists, calling it with a freshly cooked up
instance of AnnotationValues
.
Note that depending on the printASTOnly flag, the PrintAST
annotation
will either be silently skipped, or everything that isn't PrintAST
will be skipped.
The HandlerLibrary will attempt to guess if the given annotation node represents a lombok annotation.
For example, if lombok.*
is in the import list, then this method will guess that
Getter
refers to lombok.Getter
, presuming that HandleGetter
has been loaded.ast
- The Compilation Unit that contains the Annotation AST Node.annotationNode
- The Lombok AST Node representing the Annotation AST Node.annotation
- 'node.get()' - convenience parameter.public void callASTVisitors(EclipseAST ast, long priority, boolean isCompleteParse)
EclipseASTVisitor
instances.Copyright © 2009-2015 The Project Lombok Authors, licensed under the MIT licence.