@ProviderFor(value=JavacAnnotationHandler.class) public class HandleBuilder extends JavacAnnotationHandler<Builder>
| Constructor and Description |
|---|
HandleBuilder() |
| Modifier and Type | Method and Description |
|---|---|
List<JavacNode> |
addFieldsToBuilder(JavacNode builderType,
List<com.sun.tools.javac.util.Name> namesOfParameters,
List<com.sun.tools.javac.tree.JCTree.JCExpression> typesOfParameters,
com.sun.tools.javac.tree.JCTree source) |
JavacNode |
findInnerClass(JavacNode parent,
String name) |
com.sun.tools.javac.tree.JCTree.JCMethodDecl |
generateBuilderMethod(String builderMethodName,
String builderClassName,
JavacNode type,
com.sun.tools.javac.util.List<com.sun.tools.javac.tree.JCTree.JCTypeParameter> typeParams) |
com.sun.tools.javac.tree.JCTree.JCMethodDecl |
generateBuildMethod(String name,
com.sun.tools.javac.util.Name staticName,
com.sun.tools.javac.tree.JCTree.JCExpression returnType,
List<com.sun.tools.javac.util.Name> fieldNames,
JavacNode type,
com.sun.tools.javac.util.List<com.sun.tools.javac.tree.JCTree.JCExpression> thrownExceptions) |
void |
handle(AnnotationValues<Builder> 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.
|
JavacNode |
makeBuilderClass(JavacNode tdParent,
String builderClassName,
com.sun.tools.javac.util.List<com.sun.tools.javac.tree.JCTree.JCTypeParameter> typeParams,
com.sun.tools.javac.tree.JCTree.JCAnnotation ast) |
com.sun.tools.javac.tree.JCTree.JCMethodDecl |
makeSetterMethodForBuilder(JavacNode builderType,
JavacNode fieldNode,
JavacNode source,
boolean fluent,
boolean chain) |
getAnnotationHandledByThisHandlerpublic void handle(AnnotationValues<Builder> annotation, com.sun.tools.javac.tree.JCTree.JCAnnotation ast, JavacNode annotationNode)
JavacAnnotationHandlerhandle in class JavacAnnotationHandler<Builder>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.public com.sun.tools.javac.tree.JCTree.JCMethodDecl generateBuildMethod(String name, com.sun.tools.javac.util.Name staticName, com.sun.tools.javac.tree.JCTree.JCExpression returnType, List<com.sun.tools.javac.util.Name> fieldNames, JavacNode type, com.sun.tools.javac.util.List<com.sun.tools.javac.tree.JCTree.JCExpression> thrownExceptions)
public com.sun.tools.javac.tree.JCTree.JCMethodDecl generateBuilderMethod(String builderMethodName, String builderClassName, JavacNode type, com.sun.tools.javac.util.List<com.sun.tools.javac.tree.JCTree.JCTypeParameter> typeParams)
public List<JavacNode> addFieldsToBuilder(JavacNode builderType, List<com.sun.tools.javac.util.Name> namesOfParameters, List<com.sun.tools.javac.tree.JCTree.JCExpression> typesOfParameters, com.sun.tools.javac.tree.JCTree source)
public com.sun.tools.javac.tree.JCTree.JCMethodDecl makeSetterMethodForBuilder(JavacNode builderType, JavacNode fieldNode, JavacNode source, boolean fluent, boolean chain)
Copyright © 2009-2014 The Project Lombok Authors, licensed under the MIT licence.