| java.lang.Object nice.tools.code.Gen
Gen | public class Gen (Code) | | Code generation functions.
|
Method Summary | |
public static Expression | boolNotExp(Expression value) | public static LambdaExp | createMemberMethod(String bytecodeName, Type receiver, Type[] argTypes, Type retType, Expression[] params) Create a lambda expression to generate code for the method. | public static LambdaExp | dereference(Expression ref) | public static Expression | instanceOfExp(Expression value, Type ct) | public static Expression | integerComparison(String kind, Expression value1, long value2) | public static Expression | isNullExp(Expression value) | public static Expression | isOfClass(Expression value, Type ct, boolean possiblyNull) | public static Expression | referenceEqualsExp(Expression value1, Expression value2) | public static Expression | returnValue(Expression value) | public static Expression | returnVoid() | public static void | setMethodBody(LambdaExp method, Expression body) | public static Expression | shortCircuitAnd(Expression value1, Expression value2) | public static void | store(Compilation comp, Expression destination, Target target) | public static Expression | stringEquals(String value1, Expression value2) | public static Expression | superCall(Expression method, Expression[] args) | public static Expression | superCaller(Method method) | public static LambdaExp | wrapInLambda(gnu.mapping.Procedure proc) Creates a LambdaExp that applies a Procedure
to the appropriate number of arguments. |
createMemberMethod | public static LambdaExp createMemberMethod(String bytecodeName, Type receiver, Type[] argTypes, Type retType, Expression[] params)(Code) | | Create a lambda expression to generate code for the method.
Parameters: args - can be null if there are no arguments Parameters: member - true iff this method is a non-static member ofthe class in argTypes[0] Parameters: toplevel - If the method can be called from foreign code.This forces its generation even if it is apparently never called. |
wrapInLambda | public static LambdaExp wrapInLambda(gnu.mapping.Procedure proc)(Code) | | Creates a LambdaExp that applies a Procedure
to the appropriate number of arguments.
This is usefull to generate an Expression from a given Procedure.
|
|
|