public class Eclipse extends Object
| Modifier and Type | Field and Description |
|---|---|
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.
|
| Modifier and Type | Method and Description |
|---|---|
static Object |
calculateValue(org.eclipse.jdt.internal.compiler.ast.Expression e)
Returns the actual value of the given Literal or Literal-like node.
|
static org.eclipse.jdt.internal.compiler.ast.Annotation[] |
findAnnotations(org.eclipse.jdt.internal.compiler.ast.FieldDeclaration field,
Pattern namePattern)
Searches the given field node for annotations and returns each one that matches the provided regular expression pattern.
|
static char[][] |
fromQualifiedName(String typeName) |
static int |
getEcjCompilerVersion() |
static long |
getLatestEcjCompilerVersionConstant() |
static boolean |
hasClinit(org.eclipse.jdt.internal.compiler.ast.TypeDeclaration parent) |
static boolean |
isPrimitive(org.eclipse.jdt.internal.compiler.ast.TypeReference ref)
Checks if the given type reference represents a primitive type.
|
static boolean |
nameEquals(char[][] typeName,
String string)
Checks if an eclipse-style array-of-array-of-characters to represent a fully qualified name ('foo.bar.baz'), matches a plain
string containing the same fully qualified name with dots in the string.
|
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 String |
toQualifiedName(char[][] typeName)
For 'speed' reasons, Eclipse works a lot with char arrays.
|
public static final int ECLIPSE_DO_NOT_TOUCH_FLAG
public static String toQualifiedName(char[][] typeName)
public static char[][] fromQualifiedName(String typeName)
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 boolean nameEquals(char[][] typeName,
String string)
public static boolean hasClinit(org.eclipse.jdt.internal.compiler.ast.TypeDeclaration parent)
public static org.eclipse.jdt.internal.compiler.ast.Annotation[] findAnnotations(org.eclipse.jdt.internal.compiler.ast.FieldDeclaration field,
Pattern namePattern)
public static boolean isPrimitive(org.eclipse.jdt.internal.compiler.ast.TypeReference ref)
public static Object calculateValue(org.eclipse.jdt.internal.compiler.ast.Expression e)
public static long getLatestEcjCompilerVersionConstant()
public static int getEcjCompilerVersion()
Copyright © 2011-2015 The Project Lombok Authors, licensed under the MIT licence.