Method Summary |
|
public static JInvocation | _new(JClass c) |
public static JInvocation | _new(JType t) |
public static JExpression | _null() |
public static JExpression | _super() Returns a reference to "super", an implicit reference
to the super class. |
public static JExpression | _this() Returns a reference to "this", an implicit reference
to the current object. |
public static JExpression | assign(JAssignmentTarget lhs, JExpression rhs) |
public static JExpression | assignPlus(JAssignmentTarget lhs, JExpression rhs) |
public static JCast | cast(JType type, JExpression expr) |
public static JArrayCompRef | component(JExpression lhs, JExpression index) |
public static JExpression | direct(String source) Creates an expression directly from a source code fragment. |
public static JExpression | dotclass(JClass cl) |
public static JInvocation | invoke(String method) |
public static JInvocation | invoke(JMethod method) |
public static JInvocation | invoke(JExpression lhs, JMethod method) |
public static JInvocation | invoke(JExpression lhs, String method) |
public static JExpression | lit(boolean b) |
public static JExpression | lit(int n) |
public static JExpression | lit(long n) |
public static JExpression | lit(float f) |
public static JExpression | lit(double d) |
public static JExpression | lit(char c) |
public static JExpression | lit(String s) |
public static JArray | newArray(JType type) |
public static JArray | newArray(JType type, JExpression size) Generates
new T[size] .
Parameters: type - The type of the array component. |
public static JArray | newArray(JType type, int size) Generates
new T[size] .
Parameters: type - The type of the array component. |
public static String | quotify(char quote, String s) Escapes the given string, then surrounds it by the specified
quotation mark. |
public static JFieldRef | ref(String field) |
public static JFieldRef | ref(JExpression lhs, JVar field) |
public static JFieldRef | ref(JExpression lhs, String field) |
public static JFieldRef | refthis(String field) |