public class Javac extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
CTC_BITXOR |
static int |
CTC_BOOLEAN |
static int |
CTC_BOT |
static int |
CTC_BYTE |
static int |
CTC_CHAR |
static int |
CTC_DOUBLE |
static int |
CTC_EQUAL |
static int |
CTC_FLOAT |
static int |
CTC_INT |
static int |
CTC_LONG |
static int |
CTC_MUL |
static int |
CTC_NONE |
static int |
CTC_NOT |
static int |
CTC_NOT_EQUAL |
static int |
CTC_PLUS |
static int |
CTC_SHORT |
static int |
CTC_UNSIGNED_SHIFT_RIGHT |
static int |
CTC_VOID |
| Modifier and Type | Method and Description |
|---|---|
static Object |
calculateGuess(com.sun.tools.javac.tree.JCTree.JCExpression expr)
Turns an expression into a guessed intended literal.
|
static int |
getCtcInt(Class<?> ctcLocation,
String identifier)
Retrieves a compile time constant of type int from the specified class location.
|
static boolean |
isPrimitive(com.sun.tools.javac.tree.JCTree.JCExpression ref)
Checks if the given expression (that really ought to refer to a type expression) represents a primitive type.
|
public static final int CTC_BOOLEAN
public static final int CTC_INT
public static final int CTC_DOUBLE
public static final int CTC_FLOAT
public static final int CTC_SHORT
public static final int CTC_BYTE
public static final int CTC_LONG
public static final int CTC_CHAR
public static final int CTC_VOID
public static final int CTC_NONE
public static final int CTC_NOT_EQUAL
public static final int CTC_NOT
public static final int CTC_BITXOR
public static final int CTC_UNSIGNED_SHIFT_RIGHT
public static final int CTC_MUL
public static final int CTC_PLUS
public static final int CTC_BOT
public static final int CTC_EQUAL
public static boolean isPrimitive(com.sun.tools.javac.tree.JCTree.JCExpression ref)
public static Object calculateGuess(com.sun.tools.javac.tree.JCTree.JCExpression expr)
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.Copyright © 2011 The Project Lombok Authors, licensed under the MIT licence.