|
Lombok - v0.9.3 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectlombok.javac.handlers.HandleToString
@ProviderFor(value=JavacAnnotationHandler.class) public class HandleToString
Handles the ToString annotation for javac.
| Constructor Summary | |
|---|---|
HandleToString()
|
|
| Method Summary | |
|---|---|
void |
generateToStringForType(JavacNode typeNode,
JavacNode errorNode)
|
boolean |
handle(AnnotationValues<ToString> 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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HandleToString()
| Method Detail |
|---|
public boolean handle(AnnotationValues<ToString> annotation,
com.sun.tools.javac.tree.JCTree.JCAnnotation ast,
JavacNode annotationNode)
JavacAnnotationHandler
handle in interface 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.
true if you don't want to be called again about this annotation during this
compile session (you've handled it), or false to indicate you aren't done yet.
public void generateToStringForType(JavacNode typeNode,
JavacNode errorNode)
|
Lombok - v0.9.3 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||