@ProviderFor(value=JavacAnnotationHandler.class) public class HandleToString extends JavacAnnotationHandler<ToString>
ToString
annotation for javac.trees
Constructor and Description |
---|
HandleToString() |
Modifier and Type | Method and Description |
---|---|
void |
checkForBogusFieldNames(JavacNode type,
AnnotationValues<ToString> annotation) |
void |
generateToString(JavacNode typeNode,
JavacNode source,
<any> excludes,
<any> includes,
boolean includeFieldNames,
java.lang.Boolean callSuper,
boolean whineIfExists,
JavacHandlerUtil.FieldAccess fieldAccess) |
void |
generateToStringForType(JavacNode typeNode,
JavacNode errorNode) |
static java.lang.String |
getTypeName(JavacNode typeNode) |
void |
handle(AnnotationValues<ToString> annotation,
JCAnnotation ast,
JavacNode annotationNode)
Called when an annotation is found that is likely to match the annotation you're interested in.
|
getAnnotationHandledByThisHandler, setTrees
public void checkForBogusFieldNames(JavacNode type, AnnotationValues<ToString> annotation)
public void handle(AnnotationValues<ToString> annotation, JCAnnotation ast, JavacNode annotationNode)
JavacAnnotationHandler
handle
in class JavacAnnotationHandler<ToString>
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 void generateToStringForType(JavacNode typeNode, JavacNode errorNode)
public void generateToString(JavacNode typeNode, JavacNode source, <any> excludes, <any> includes, boolean includeFieldNames, java.lang.Boolean callSuper, boolean whineIfExists, JavacHandlerUtil.FieldAccess fieldAccess)
public static java.lang.String getTypeName(JavacNode typeNode)
Copyright © 2009-2015 The Project Lombok Authors, licensed under the MIT licence.