public Instruction createInstructionGetfield(Element inst) throws IllegalXMLVMException { String classType = inst.getAttributeValue("class-type"); String field = inst.getAttributeValue("field"); String type = inst.getAttributeValue("type"); Type t = parseTypeString(type); return _factory.createGetField(classType, field, t); }
private Instruction createInvokeInstruction(Element inst, short kind) throws IllegalXMLVMException { String classType = inst.getAttributeValue("class-type"); String methodName = inst.getAttributeValue("method"); Element signature = inst.getChild("signature", nsXMLVM); Type retType = collectReturnType(signature); Type[] argTypes = collectArgumentTypes(signature); return _factory.createInvoke(classType, methodName, retType, argTypes, kind); }
public Instruction createInstructionNew(Element inst) { String t = inst.getAttributeValue("type"); return _factory.createNew(t); }
public Instruction createInstructionGetstatic(Element inst) throws IllegalXMLVMException { String classType = inst.getAttributeValue("class-type"); String field = inst.getAttributeValue("field"); Type type = parseTypeString(inst.getAttributeValue("type")); return _factory.createFieldAccess(classType, field, type, Constants.GETSTATIC); }
public Instruction createInstructionLreturn(Element inst) { return _factory.createReturn(Type.LONG); }
public Instruction createInstructionFreturn(Element inst) { return _factory.createReturn(Type.FLOAT); }
public Instruction createInstructionDreturn(Element inst) { return _factory.createReturn(Type.DOUBLE); }
public Instruction createInstructionIreturn(Element inst) { return _factory.createReturn(Type.INT); }
public Instruction createInstructionReturn(Element inst) { return _factory.createReturn(Type.VOID); }
public Instruction createInstructionAload(Element inst) throws IllegalXMLVMException { String t = inst.getAttributeValue("type"); Type type = parseTypeString(t); int idx = Integer.parseInt(inst.getAttributeValue("index")); return _factory.createLoad(type, idx); }