Lombok - v0.9.3

lombok.javac
Class Javac

java.lang.Object
  extended by lombok.javac.Javac

public class Javac
extends java.lang.Object

Container for static utility methods relevant to lombok's operation on javac.


Method Summary
static boolean annotationTypeMatches(java.lang.Class<? extends java.lang.annotation.Annotation> type, JavacNode node)
          Checks if the Annotation AST Node provided is likely to be an instance of the provided annotation type.
static
<A extends java.lang.annotation.Annotation>
AnnotationValues<A>
createAnnotation(java.lang.Class<A> type, JavacNode node)
          Creates an instance of AnnotationValues for the provided AST Node.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

annotationTypeMatches

public static boolean annotationTypeMatches(java.lang.Class<? extends java.lang.annotation.Annotation> type,
                                            JavacNode node)
Checks if the Annotation AST Node provided is likely to be an instance of the provided annotation type.

Parameters:
type - An actual annotation type, such as lombok.Getter.class.
node - A Lombok AST node representing an annotation in source code.

createAnnotation

public static <A extends java.lang.annotation.Annotation> AnnotationValues<A> createAnnotation(java.lang.Class<A> type,
                                                                                               JavacNode node)
Creates an instance of AnnotationValues for the provided AST Node.

Parameters:
type - An annotation class type, such as lombok.Getter.class.
node - A Lombok AST node representing an annotation in source code.

Lombok - v0.9.3

Copyright © 2009 Reinier Zwitserloot and Roel Spilker, licensed under the MIT licence.