|
Lombok - v0.10.1 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectlombok.javac.Javac
public class Javac
Container for static utility methods relevant to lombok's operation on javac.
| Method Summary | ||
|---|---|---|
static boolean |
annotationTypeMatches(Class<? extends Annotation> type,
JavacNode node)
Checks if the Annotation AST Node provided is likely to be an instance of the provided annotation type. |
|
static
|
createAnnotation(Class<A> type,
JavacNode node)
Creates an instance of AnnotationValues for the provided AST Node. |
|
static int |
getCtcInt(Class<?> ctcLocation,
String identifier)
Retrieves a compile time constant of type int from the specified class location. |
|
static com.sun.tools.javac.tree.JCTree |
getGeneratedBy(com.sun.tools.javac.tree.JCTree node)
|
|
static boolean |
isGenerated(com.sun.tools.javac.tree.JCTree node)
|
|
static
|
recursiveSetGeneratedBy(T node,
com.sun.tools.javac.tree.JCTree source)
|
|
static
|
setGeneratedBy(T node,
com.sun.tools.javac.tree.JCTree source)
|
|
static boolean |
typeMatches(Class<?> type,
JavacNode node,
com.sun.tools.javac.tree.JCTree typeNode)
Checks if the given TypeReference node is likely to be a reference to the provided class. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static boolean annotationTypeMatches(Class<? extends Annotation> type,
JavacNode node)
type - An actual annotation type, such as lombok.Getter.class.node - A Lombok AST node representing an annotation in source code.
public static boolean typeMatches(Class<?> type,
JavacNode node,
com.sun.tools.javac.tree.JCTree typeNode)
type - An actual type. This method checks if typeNode is likely to be a reference to this type.node - A Lombok AST node. Any node in the appropriate compilation unit will do (used to get access to import statements).typeNode - A type reference to check.
public static <A extends Annotation> AnnotationValues<A> createAnnotation(Class<A> type,
JavacNode node)
AnnotationValues for the provided AST Node.
type - An annotation class type, such as lombok.Getter.class.node - A Lombok AST node representing an annotation in source code.
public static int getCtcInt(Class<?> ctcLocation,
String identifier)
ctcLocation - location of the compile time constantidentifier - the name of the field of the compile time constant.public static com.sun.tools.javac.tree.JCTree getGeneratedBy(com.sun.tools.javac.tree.JCTree node)
public static boolean isGenerated(com.sun.tools.javac.tree.JCTree node)
public static <T extends com.sun.tools.javac.tree.JCTree> T recursiveSetGeneratedBy(T node,
com.sun.tools.javac.tree.JCTree source)
public static <T extends com.sun.tools.javac.tree.JCTree> T setGeneratedBy(T node,
com.sun.tools.javac.tree.JCTree source)
|
Lombok - v0.10.1 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||