@ProviderFor(value=EclipseAnnotationHandler.class) public class HandleBuilder extends EclipseAnnotationHandler<Builder>
Constructor and Description |
---|
HandleBuilder() |
Modifier and Type | Method and Description |
---|---|
EclipseNode |
findInnerClass(EclipseNode parent,
String name) |
void |
generateBuilderFields(EclipseNode builderType,
List<lombok.eclipse.handlers.HandleBuilder.BuilderFieldData> builderFields,
ASTNode source) |
MethodDeclaration |
generateBuilderMethod(String builderMethodName,
String builderClassName,
EclipseNode type,
TypeParameter[] typeParams,
ASTNode source) |
MethodDeclaration |
generateBuildMethod(String name,
char[] staticName,
TypeReference returnType,
List<lombok.eclipse.handlers.HandleBuilder.BuilderFieldData> builderFields,
EclipseNode type,
TypeReference[] thrownExceptions,
boolean addCleaning,
ASTNode source) |
void |
handle(AnnotationValues<Builder> annotation,
Annotation ast,
EclipseNode annotationNode)
Called when an annotation is found that is likely to match the annotation you're interested in.
|
EclipseNode |
makeBuilderClass(EclipseNode tdParent,
String builderClassName,
TypeParameter[] typeParams,
ASTNode source) |
void |
makeSetterMethodsForBuilder(EclipseNode builderType,
lombok.eclipse.handlers.HandleBuilder.BuilderFieldData bfd,
EclipseNode sourceNode,
boolean fluent,
boolean chain) |
getAnnotationHandledByThisHandler, preHandle
public void handle(AnnotationValues<Builder> annotation, Annotation ast, EclipseNode annotationNode)
EclipseAnnotationHandler
handle
in class EclipseAnnotationHandler<Builder>
annotation
- The actual annotation - use this object to retrieve the annotation parameters.ast
- The Eclipse 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 MethodDeclaration generateBuildMethod(String name, char[] staticName, TypeReference returnType, List<lombok.eclipse.handlers.HandleBuilder.BuilderFieldData> builderFields, EclipseNode type, TypeReference[] thrownExceptions, boolean addCleaning, ASTNode source)
public MethodDeclaration generateBuilderMethod(String builderMethodName, String builderClassName, EclipseNode type, TypeParameter[] typeParams, ASTNode source)
public void generateBuilderFields(EclipseNode builderType, List<lombok.eclipse.handlers.HandleBuilder.BuilderFieldData> builderFields, ASTNode source)
public void makeSetterMethodsForBuilder(EclipseNode builderType, lombok.eclipse.handlers.HandleBuilder.BuilderFieldData bfd, EclipseNode sourceNode, boolean fluent, boolean chain)
public EclipseNode findInnerClass(EclipseNode parent, String name)
public EclipseNode makeBuilderClass(EclipseNode tdParent, String builderClassName, TypeParameter[] typeParams, ASTNode source)
Copyright © 2009-2015 The Project Lombok Authors, licensed under the MIT licence.