Lombok - v0.11.2

lombok.eclipse
Class Eclipse

java.lang.Object
  extended by lombok.eclipse.Eclipse

public class Eclipse
extends Object


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 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 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ECLIPSE_DO_NOT_TOUCH_FLAG

public static final 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. Set it on the flag field of any method, field, or initializer you create!

See Also:
Constant Field Values
Method Detail

toQualifiedName

public static String toQualifiedName(char[][] typeName)
For 'speed' reasons, Eclipse works a lot with char arrays. I have my doubts this was a fruitful exercise, but we need to deal with it. This turns [[java][lang][String]] into "java.lang.String".


fromQualifiedName

public static char[][] fromQualifiedName(String typeName)

pos

public static long pos(org.eclipse.jdt.internal.compiler.ast.ASTNode node)

poss

public static long[] poss(org.eclipse.jdt.internal.compiler.ast.ASTNode node,
                          int repeat)

nameEquals

public 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.


hasClinit

public static boolean hasClinit(org.eclipse.jdt.internal.compiler.ast.TypeDeclaration parent)

findAnnotations

public 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. Only the simple name is checked - the package and any containing class are ignored.


isPrimitive

public static boolean isPrimitive(org.eclipse.jdt.internal.compiler.ast.TypeReference ref)
Checks if the given type reference represents a primitive type.


calculateValue

public static Object calculateValue(org.eclipse.jdt.internal.compiler.ast.Expression e)
Returns the actual value of the given Literal or Literal-like node.


Lombok - v0.11.2

Copyright © 2011 The Project Lombok Authors, licensed under the MIT licence.