@ProviderFor(value=EclipseAnnotationHandler.class) public class HandleBuilder extends EclipseAnnotationHandler<Builder>
| Constructor and Description |
|---|
HandleBuilder() |
| Modifier and Type | Method and Description |
|---|---|
List<EclipseNode> |
addFieldsToBuilder(EclipseNode builderType,
List<char[]> namesOfParameters,
List<org.eclipse.jdt.internal.compiler.ast.TypeReference> typesOfParameters,
org.eclipse.jdt.internal.compiler.ast.ASTNode source) |
EclipseNode |
findInnerClass(EclipseNode parent,
String name) |
org.eclipse.jdt.internal.compiler.ast.MethodDeclaration |
generateBuilderMethod(String builderMethodName,
String builderClassName,
EclipseNode type,
org.eclipse.jdt.internal.compiler.ast.TypeParameter[] typeParams,
org.eclipse.jdt.internal.compiler.ast.ASTNode source) |
org.eclipse.jdt.internal.compiler.ast.MethodDeclaration |
generateBuildMethod(String name,
char[] staticName,
org.eclipse.jdt.internal.compiler.ast.TypeReference returnType,
List<char[]> fieldNames,
EclipseNode type,
org.eclipse.jdt.internal.compiler.ast.ASTNode source,
org.eclipse.jdt.internal.compiler.ast.TypeReference[] thrownExceptions) |
void |
handle(AnnotationValues<Builder> annotation,
org.eclipse.jdt.internal.compiler.ast.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,
org.eclipse.jdt.internal.compiler.ast.TypeParameter[] typeParams,
org.eclipse.jdt.internal.compiler.ast.ASTNode source) |
org.eclipse.jdt.internal.compiler.ast.MethodDeclaration |
makeSetterMethodForBuilder(EclipseNode builderType,
EclipseNode fieldNode,
EclipseNode sourceNode,
boolean fluent,
boolean chain) |
getAnnotationHandledByThisHandler, preHandlepublic void handle(AnnotationValues<Builder> annotation, org.eclipse.jdt.internal.compiler.ast.Annotation ast, EclipseNode annotationNode)
EclipseAnnotationHandlerhandle 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 org.eclipse.jdt.internal.compiler.ast.MethodDeclaration generateBuilderMethod(String builderMethodName, String builderClassName, EclipseNode type, org.eclipse.jdt.internal.compiler.ast.TypeParameter[] typeParams, org.eclipse.jdt.internal.compiler.ast.ASTNode source)
public org.eclipse.jdt.internal.compiler.ast.MethodDeclaration generateBuildMethod(String name, char[] staticName, org.eclipse.jdt.internal.compiler.ast.TypeReference returnType, List<char[]> fieldNames, EclipseNode type, org.eclipse.jdt.internal.compiler.ast.ASTNode source, org.eclipse.jdt.internal.compiler.ast.TypeReference[] thrownExceptions)
public List<EclipseNode> addFieldsToBuilder(EclipseNode builderType, List<char[]> namesOfParameters, List<org.eclipse.jdt.internal.compiler.ast.TypeReference> typesOfParameters, org.eclipse.jdt.internal.compiler.ast.ASTNode source)
public org.eclipse.jdt.internal.compiler.ast.MethodDeclaration makeSetterMethodForBuilder(EclipseNode builderType, EclipseNode fieldNode, EclipseNode sourceNode, boolean fluent, boolean chain)
public EclipseNode findInnerClass(EclipseNode parent, String name)
public EclipseNode makeBuilderClass(EclipseNode tdParent, String builderClassName, org.eclipse.jdt.internal.compiler.ast.TypeParameter[] typeParams, org.eclipse.jdt.internal.compiler.ast.ASTNode source)
Copyright © 2009-2014 The Project Lombok Authors, licensed under the MIT licence.