@ProviderFor(value=EclipseAnnotationHandler.class) public class HandleToString extends EclipseAnnotationHandler<ToString>
ToString
annotation for eclipse.Constructor and Description |
---|
HandleToString() |
Modifier and Type | Method and Description |
---|---|
void |
checkForBogusFieldNames(EclipseNode type,
AnnotationValues<ToString> annotation) |
static MethodDeclaration |
createToString(EclipseNode type,
Collection<EclipseNode> fields,
boolean includeFieldNames,
boolean callSuper,
ASTNode source,
EclipseHandlerUtil.FieldAccess fieldAccess) |
static NameReference |
generateQualifiedNameRef(ASTNode source,
char[]... varNames) |
void |
generateToString(EclipseNode typeNode,
EclipseNode errorNode,
List<String> excludes,
List<String> includes,
boolean includeFieldNames,
Boolean callSuper,
boolean whineIfExists,
EclipseHandlerUtil.FieldAccess fieldAccess) |
void |
generateToStringForType(EclipseNode typeNode,
EclipseNode errorNode) |
static String |
getSingleTypeName(EclipseNode type) |
static String |
getTypeName(EclipseNode type) |
void |
handle(AnnotationValues<ToString> annotation,
Annotation ast,
EclipseNode annotationNode)
Called when an annotation is found that is likely to match the annotation you're interested in.
|
getAnnotationHandledByThisHandler, preHandle
public void checkForBogusFieldNames(EclipseNode type, AnnotationValues<ToString> annotation)
public void generateToStringForType(EclipseNode typeNode, EclipseNode errorNode)
public void handle(AnnotationValues<ToString> annotation, Annotation ast, EclipseNode annotationNode)
EclipseAnnotationHandler
handle
in class EclipseAnnotationHandler<ToString>
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 void generateToString(EclipseNode typeNode, EclipseNode errorNode, List<String> excludes, List<String> includes, boolean includeFieldNames, Boolean callSuper, boolean whineIfExists, EclipseHandlerUtil.FieldAccess fieldAccess)
public static MethodDeclaration createToString(EclipseNode type, Collection<EclipseNode> fields, boolean includeFieldNames, boolean callSuper, ASTNode source, EclipseHandlerUtil.FieldAccess fieldAccess)
public static String getTypeName(EclipseNode type)
public static String getSingleTypeName(EclipseNode type)
public static NameReference generateQualifiedNameRef(ASTNode source, char[]... varNames)
Copyright © 2009-2015 The Project Lombok Authors, licensed under the MIT licence.