@ProviderFor(value=JavacAnnotationHandler.class) public class HandleSneakyThrows extends JavacAnnotationHandler<SneakyThrows>
lombok.SneakyThrows
annotation for javac.Constructor and Description |
---|
HandleSneakyThrows() |
Modifier and Type | Method and Description |
---|---|
JCStatement |
buildTryCatchBlock(JavacNode node,
<any> contents,
java.lang.String exception,
JCTree source) |
void |
generateEmptyBlockWarning(JavacNode methodNode,
JavacNode annotation,
boolean hasConstructorCall) |
void |
handle(AnnotationValues<SneakyThrows> annotation,
JCAnnotation ast,
JavacNode annotationNode)
Called when an annotation is found that is likely to match the annotation you're interested in.
|
void |
handleMethod(JavacNode annotation,
JCMethodDecl method,
java.util.Collection<java.lang.String> exceptions) |
getAnnotationHandledByThisHandler
public void handle(AnnotationValues<SneakyThrows> annotation, JCAnnotation ast, JavacNode annotationNode)
JavacAnnotationHandler
handle
in class JavacAnnotationHandler<SneakyThrows>
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 handleMethod(JavacNode annotation, JCMethodDecl method, java.util.Collection<java.lang.String> exceptions)
public void generateEmptyBlockWarning(JavacNode methodNode, JavacNode annotation, boolean hasConstructorCall)
public JCStatement buildTryCatchBlock(JavacNode node, <any> contents, java.lang.String exception, JCTree source)
Copyright © 2009-2015 The Project Lombok Authors, licensed under the MIT licence.