|
Lombok - v0.10.1 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectlombok.eclipse.Eclipse
public class Eclipse
| Field Summary | |
|---|---|
static int |
ECLIPSE_DO_NOT_TOUCH_FLAG
Eclipse's Parser class is instrumented to not attempt to fill in the body of any method or initializer or field initialization if this flag is set. |
| Method Summary | ||
|---|---|---|
static boolean |
annotationTypeMatches(Class<? extends Annotation> type,
EclipseNode node)
Checks if the provided annotation type is likely to be the intended type for the given annotation node. |
|
static org.eclipse.jdt.internal.compiler.ast.Annotation |
copyAnnotation(org.eclipse.jdt.internal.compiler.ast.Annotation annotation,
org.eclipse.jdt.internal.compiler.ast.ASTNode source)
|
|
static org.eclipse.jdt.internal.compiler.ast.Annotation[] |
copyAnnotations(org.eclipse.jdt.internal.compiler.ast.ASTNode source,
org.eclipse.jdt.internal.compiler.ast.Annotation[]... allAnnotations)
|
|
static org.eclipse.jdt.internal.compiler.ast.TypeReference |
copyType(org.eclipse.jdt.internal.compiler.ast.TypeReference ref,
org.eclipse.jdt.internal.compiler.ast.ASTNode source)
You can't share TypeReference objects or subtle errors start happening. |
|
static org.eclipse.jdt.internal.compiler.ast.TypeParameter[] |
copyTypeParams(org.eclipse.jdt.internal.compiler.ast.TypeParameter[] params,
org.eclipse.jdt.internal.compiler.ast.ASTNode source)
You can't share TypeParameter objects or bad things happen; for example, one 'T' resolves differently from another 'T', even for the same T in a single class file. |
|
static org.eclipse.jdt.internal.compiler.ast.TypeReference[] |
copyTypes(org.eclipse.jdt.internal.compiler.ast.TypeReference[] refs,
org.eclipse.jdt.internal.compiler.ast.ASTNode source)
Convenience method that creates a new array and copies each TypeReference in the source array via copyType(TypeReference, ASTNode). |
|
static
|
createAnnotation(Class<A> type,
EclipseNode annotationNode)
Provides AnnotationValues with the data it needs to do its thing. |
|
static void |
error(org.eclipse.jdt.internal.compiler.ast.CompilationUnitDeclaration cud,
String message,
String bundleName,
Throwable error)
Generates an error in the Eclipse error log. |
|
static void |
error(org.eclipse.jdt.internal.compiler.ast.CompilationUnitDeclaration cud,
String message,
Throwable error)
Generates an error in the Eclipse error log. |
|
static char[][] |
fromQualifiedName(String typeName)
|
|
static org.eclipse.jdt.internal.compiler.ast.ASTNode |
getGeneratedBy(org.eclipse.jdt.internal.compiler.ast.ASTNode node)
|
|
static boolean |
isGenerated(org.eclipse.jdt.internal.compiler.ast.ASTNode node)
|
|
static org.eclipse.jdt.internal.compiler.ast.TypeReference |
makeType(org.eclipse.jdt.internal.compiler.lookup.TypeBinding binding,
org.eclipse.jdt.internal.compiler.ast.ASTNode pos,
boolean allowCompound)
|
|
static long |
pos(org.eclipse.jdt.internal.compiler.ast.ASTNode node)
|
|
static long[] |
poss(org.eclipse.jdt.internal.compiler.ast.ASTNode node,
int repeat)
|
|
static org.eclipse.jdt.internal.compiler.ast.ASTNode |
setGeneratedBy(org.eclipse.jdt.internal.compiler.ast.ASTNode node,
org.eclipse.jdt.internal.compiler.ast.ASTNode source)
|
|
static String |
toQualifiedName(char[][] typeName)
For 'speed' reasons, Eclipse works a lot with char arrays. |
|
static boolean |
typeMatches(Class<?> type,
EclipseNode node,
org.eclipse.jdt.internal.compiler.ast.TypeReference typeRef)
Checks if the given TypeReference node is likely to be a reference to the provided class. |
|
static void |
warning(String message,
String bundleName,
Throwable error)
Generates a warning in the Eclipse error log. |
|
static void |
warning(String message,
Throwable error)
Generates a warning in the Eclipse error log. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int ECLIPSE_DO_NOT_TOUCH_FLAG
| Method Detail |
|---|
public static void error(org.eclipse.jdt.internal.compiler.ast.CompilationUnitDeclaration cud,
String message,
Throwable error)
cud - The CompilationUnitDeclaration where the error occurred.
An error will be generated on line 0 linking to the error log entry. Can be null.message - Human readable description of the problem.error - The associated exception. Can be null.
public static void error(org.eclipse.jdt.internal.compiler.ast.CompilationUnitDeclaration cud,
String message,
String bundleName,
Throwable error)
cud - The CompilationUnitDeclaration where the error occurred.
An error will be generated on line 0 linking to the error log entry. Can be null.message - Human readable description of the problem.bundleName - Can be null to default to org.eclipse.jdt.core which is usually right.error - The associated exception. Can be null.
public static void warning(String message,
Throwable error)
message - Human readable description of the problem.error - The associated exception. Can be null.
public static void warning(String message,
String bundleName,
Throwable error)
message - Human readable description of the problem.bundleName - Can be null to default to org.eclipse.jdt.core which is usually right.error - The associated exception. Can be null.public static String toQualifiedName(char[][] typeName)
public static char[][] fromQualifiedName(String typeName)
public static org.eclipse.jdt.internal.compiler.ast.TypeParameter[] copyTypeParams(org.eclipse.jdt.internal.compiler.ast.TypeParameter[] params,
org.eclipse.jdt.internal.compiler.ast.ASTNode source)
public static org.eclipse.jdt.internal.compiler.ast.TypeReference[] copyTypes(org.eclipse.jdt.internal.compiler.ast.TypeReference[] refs,
org.eclipse.jdt.internal.compiler.ast.ASTNode source)
copyType(TypeReference, ASTNode).
public static org.eclipse.jdt.internal.compiler.ast.TypeReference copyType(org.eclipse.jdt.internal.compiler.ast.TypeReference ref,
org.eclipse.jdt.internal.compiler.ast.ASTNode source)
public static long pos(org.eclipse.jdt.internal.compiler.ast.ASTNode node)
public static long[] poss(org.eclipse.jdt.internal.compiler.ast.ASTNode node,
int repeat)
public static org.eclipse.jdt.internal.compiler.ast.TypeReference makeType(org.eclipse.jdt.internal.compiler.lookup.TypeBinding binding,
org.eclipse.jdt.internal.compiler.ast.ASTNode pos,
boolean allowCompound)
public static org.eclipse.jdt.internal.compiler.ast.Annotation[] copyAnnotations(org.eclipse.jdt.internal.compiler.ast.ASTNode source,
org.eclipse.jdt.internal.compiler.ast.Annotation[]... allAnnotations)
public static org.eclipse.jdt.internal.compiler.ast.Annotation copyAnnotation(org.eclipse.jdt.internal.compiler.ast.Annotation annotation,
org.eclipse.jdt.internal.compiler.ast.ASTNode source)
public static boolean annotationTypeMatches(Class<? extends Annotation> type,
EclipseNode node)
public static boolean typeMatches(Class<?> type,
EclipseNode node,
org.eclipse.jdt.internal.compiler.ast.TypeReference typeRef)
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).typeRef - A type reference to check.
public static <A extends Annotation> AnnotationValues<A> createAnnotation(Class<A> type,
EclipseNode annotationNode)
public static org.eclipse.jdt.internal.compiler.ast.ASTNode getGeneratedBy(org.eclipse.jdt.internal.compiler.ast.ASTNode node)
public static boolean isGenerated(org.eclipse.jdt.internal.compiler.ast.ASTNode node)
public static org.eclipse.jdt.internal.compiler.ast.ASTNode setGeneratedBy(org.eclipse.jdt.internal.compiler.ast.ASTNode node,
org.eclipse.jdt.internal.compiler.ast.ASTNode source)
|
Lombok - v0.10.1 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||