public class Factory extends Object
Modifier and Type | Field and Description |
---|---|
static LLJava.Type |
intType |
public static final LLJava.Type intType
public static LLJava.Class newClass(String name)
public static LLJava.Class newClass(LLJava.QualId thisId, LLJava.QualId superId)
public static LLJava.ClassReference refClass(LLJava.QualId id)
public static LLJava.ClassReference ref(LLJava.ClassType type)
public static LLJava.ArrayType array(LLJava.Type elemType)
public static LLJava.Method newMethod(String name)
public static LLJava.Method newMethod(LLJava.Result result, String name)
public static LLJava.Variable newVariable(LLJava.Type type)
public static LLJava.Variable newVariable(LLJava.Type type, String name)
public static LLJava.Variable newVariable(LLJava.Type type, LLJava.Name name)
public static LLJava.QualId qualId(String first, String... parts)
public static LLJava.Instruction load(LLJava.Variable var)
public static LLJava.Instruction load(int value)
public static LLJava.Instruction load(LLJava.LoadArgument arg)
public static LLJava.Instruction store(LLJava.Variable var)
public static LLJava.Instruction store(LLJava.StoreArgument arg)
public static LLJava.Instruction length()
public static LLJava.VariableRef ref(LLJava.Variable var)
public static LLJava.Name anon()
public static LLJava.Instruction if_(LLJava.Condition cond, LLJava.Name target)
public static LLJava.Instruction goto_(LLJava.Name target)
public static LLJava.Instruction inc(LLJava.VariableRef var, int diff)
public static GotoRef refCode(LLJava.Name name)
public static LLJava.Block invokeStatic(LLJava.MethodReference method, LLJava.Statement... params)
public static LLJava.Block stmts(Object... elems)
public static LLJava.Block block(Object... elems)
public static LLJava.Block block(boolean implicit, Object... elems)
public static LLJava.MethodReference methodRef(LLJava.Result result, LLJava.QualId owner, String name, LLJava.Type... params)
public static LLJava.MethodReference interfaceMethodRef(LLJava.Result result, LLJava.QualId owner, String name, LLJava.Type... params)
public static LLJava.Instruction return_()
public static LLJava.Statement local(LLJava.Variable var, LLJava.Statement... initializer)
see also the complete user documentation .