public void invokeConstructor(TypeDesc classDesc, TypeDesc[] params) { mAssembler.invokeConstructor(classDesc, params); }
public void invokeConstructor(String className, TypeDesc[] params) { mAssembler.invokeConstructor(className, params); }
public void invokeConstructor(TypeDesc[] params) { mAssembler.invokeConstructor(params); }
public void invokeConstructor(String className, TypeDesc[] params) { mAssembler.invokeConstructor(className, params); }
public void invokeConstructor(TypeDesc[] params) { mAssembler.invokeConstructor(params); }
public void invokeConstructor(TypeDesc classDesc, TypeDesc[] params) { mAssembler.invokeConstructor(classDesc, params); }
if ("<init>".equals(methodName)) { if (className == null) { assembler.invokeConstructor(paramTypes); } else { if ("<init>".equals(mMethod.getName()) assembler.invokeSuperConstructor(paramTypes); } else { assembler.invokeConstructor(className, paramTypes);
/** * @param partialStartVar must not be null */ private Label[] jumpToPartialEntryPoints(CodeAssembler a, LocalVariable partialStartVar, int propertyCount) { // Create all the entry points for offset var, whose locations will be // set later. int[] cases = new int[propertyCount]; Label[] entryPoints = new Label[propertyCount]; for (int i=0; i<propertyCount; i++) { cases[i] = i; entryPoints[i] = a.createLabel(); } // Now jump in! Label errorLoc = a.createLabel(); a.loadLocal(partialStartVar); a.switchBranch(cases, entryPoints, errorLoc); errorLoc.setLocation(); TypeDesc errorType = TypeDesc.forClass(IllegalArgumentException.class); a.newObject(errorType); a.dup(); a.loadConstant("Illegal partial start offset"); a.invokeConstructor(errorType, new TypeDesc[] {TypeDesc.STRING}); a.throwObject(); return entryPoints; }
/** * @param partialStartVar must not be null */ private Label[] jumpToPartialEntryPoints(CodeAssembler a, LocalVariable partialStartVar, int propertyCount) { // Create all the entry points for offset var, whose locations will be // set later. int[] cases = new int[propertyCount]; Label[] entryPoints = new Label[propertyCount]; for (int i=0; i<propertyCount; i++) { cases[i] = i; entryPoints[i] = a.createLabel(); } // Now jump in! Label errorLoc = a.createLabel(); a.loadLocal(partialStartVar); a.switchBranch(cases, entryPoints, errorLoc); errorLoc.setLocation(); TypeDesc errorType = TypeDesc.forClass(IllegalArgumentException.class); a.newObject(errorType); a.dup(); a.loadConstant("Illegal partial start offset"); a.invokeConstructor(errorType, new TypeDesc[] {TypeDesc.STRING}); a.throwObject(); return entryPoints; }
a.invokeConstructor(corruptEncodingEx, new TypeDesc[] {TypeDesc.INT, TypeDesc.INT}); a.throwObject();
a.invokeConstructor(corruptEncodingEx, new TypeDesc[] {TypeDesc.INT, TypeDesc.INT}); a.throwObject();
a.loadConstant("Value for property \"" + property.getName() + "\" cannot be null"); a.invokeConstructor(errorType, new TypeDesc[] {TypeDesc.STRING}); a.throwObject();
a.loadConstant("Value for property \"" + property.getName() + "\" cannot be null"); a.invokeConstructor(errorType, new TypeDesc[] {TypeDesc.STRING}); a.throwObject();
if ("<init>".equals(methodName)) { if (className == null) { assembler.invokeConstructor(paramTypes); } else { if ("<init>".equals(mMethod.getName()) assembler.invokeSuperConstructor(paramTypes); } else { assembler.invokeConstructor(className, paramTypes);