public void addExceptionClass(String exception) { exceptionClasses.add(exception); exceptionClassIndexes.add(constPool.addClassEntry(exception)); }
public void addExceptionClass(String exception) { exceptionClasses.add(exception); exceptionClassIndexes.add(constPool.addClassEntry(exception)); }
/** * Begin writing an exception handler block. The handler is not actually persisted until exceptionHandler is called. */ public ExceptionHandler exceptionBlockStart(String exceptionType) { ExceptionHandler handler = new ExceptionHandler(currentOffset, constPool.addClassEntry(exceptionType), exceptionType, currentFrame); return handler; }
/** * Begin writing an exception handler block. The handler is not actually persisted until exceptionHandler is called. */ public ExceptionHandler exceptionBlockStart(String exceptionType) { return new ExceptionHandler(currentOffset, constPool.addClassEntry(exceptionType), exceptionType, currentFrame); }
/** * Begin writing an exception handler block. The handler is not actually persisted until exceptionHandler is called. */ public ExceptionHandler exceptionBlockStart(String exceptionType) { return new ExceptionHandler(currentOffset, constPool.addClassEntry(exceptionType), exceptionType, currentFrame); }
public void loadClass(String className) { int index = constPool.addClassEntry(className); ldcInternal(index); advanceFrame(currentFrame.push("Ljava/lang/Class;")); }
public void loadClass(String className) { int index = constPool.addClassEntry(className); ldcInternal(index); advanceFrame(currentFrame.push("Ljava/lang/Class;")); }
public void loadClass(String className) { int index = constPool.addClassEntry(className); ldcInternal(index); advanceFrame(currentFrame.push("Ljava/lang/Class;")); }
/** * Do not use Descriptor format (e.g. Ljava/lang/Object;), the correct form is just java/lang/Object or java.lang.Object */ public void checkcast(String className) { assertTypeOnStack(StackEntryType.OBJECT, "checkcast requires reference type on stack"); int classIndex = constPool.addClassEntry(className); writeByte(Opcode.CHECKCAST); writeShort(classIndex); currentOffset += 3; advanceFrame(currentFrame.replace(className)); }
public void anewarray(String arrayType) { assertTypeOnStack(StackEntryType.INT, "anewarray requires int on stack"); int index = constPool.addClassEntry(arrayType); writeByte(Opcode.ANEWARRAY); writeShort(index); currentOffset += 3; if (arrayType.startsWith("[")) { advanceFrame(currentFrame.replace("[" + arrayType)); } else { advanceFrame(currentFrame.replace("[L" + arrayType + ";")); } }
public void instanceofInstruction(String className) { assertTypeOnStack(StackEntryType.OBJECT, "instanceof requires an object reference on the stack"); int classIndex = constPool.addClassEntry(className); writeByte(Opcode.INSTANCEOF); writeShort(classIndex); currentOffset += 3; advanceFrame(currentFrame.replace("I")); }
public void anewarray(String arrayType) { assertTypeOnStack(StackEntryType.INT, "anewarray requires int on stack"); int index = constPool.addClassEntry(arrayType); writeByte(Opcode.ANEWARRAY); writeShort(index); currentOffset += 3; if (arrayType.startsWith("[")) { advanceFrame(currentFrame.replace("[" + arrayType)); } else { advanceFrame(currentFrame.replace("[L" + arrayType + ";")); } }
public void instanceofInstruction(String className) { assertTypeOnStack(StackEntryType.OBJECT, "instanceof requires an object reference on the stack"); int classIndex = constPool.addClassEntry(className); writeByte(Opcode.INSTANCEOF); writeShort(classIndex); currentOffset += 3; advanceFrame(currentFrame.replace("I")); }
public void instanceofInstruction(String className) { assertTypeOnStack(StackEntryType.OBJECT, "instanceof requires an object reference on the stack"); int classIndex = constPool.addClassEntry(className); writeByte(Opcode.INSTANCEOF); writeShort(classIndex); currentOffset += 3; advanceFrame(currentFrame.replace("I")); }
public void anewarray(String arrayType) { assertTypeOnStack(StackEntryType.INT, "anewarray requires int on stack"); int index = constPool.addClassEntry(arrayType); writeByte(Opcode.ANEWARRAY); writeShort(index); currentOffset += 3; if (arrayType.startsWith("[")) { advanceFrame(currentFrame.replace("[" + arrayType)); } else { advanceFrame(currentFrame.replace("[L" + arrayType + ";")); } }
public void instanceofInstruction(String className) { assertTypeOnStack(StackEntryType.OBJECT, "instanceof requires an object reference on the stack"); int classIndex = constPool.addClassEntry(className); writeByte(Opcode.INSTANCEOF); writeShort(classIndex); currentOffset += 3; advanceFrame(currentFrame.replace("I")); }
public void newInstruction(String classname) { int classIndex = constPool.addClassEntry(classname); writeByte(Opcode.NEW); writeShort(classIndex); StackEntry entry = new StackEntry(StackEntryType.UNITITIALIZED_OBJECT, classname, currentOffset); currentOffset += 3; advanceFrame(currentFrame.push(entry)); }
public void newInstruction(String classname) { int classIndex = constPool.addClassEntry(classname); writeByte(Opcode.NEW); writeShort(classIndex); StackEntry entry = new StackEntry(StackEntryType.UNITITIALIZED_OBJECT, DescriptorUtils.makeDescriptor(classname), currentOffset); currentOffset += 3; advanceFrame(currentFrame.push(entry)); }
public void newInstruction(String classname) { int classIndex = constPool.addClassEntry(classname); writeByte(Opcode.NEW); writeShort(classIndex); StackEntry entry = new StackEntry(StackEntryType.UNITITIALIZED_OBJECT, DescriptorUtils.makeDescriptor(classname), currentOffset); currentOffset += 3; advanceFrame(currentFrame.push(entry)); }
public void newInstruction(String classname) { int classIndex = constPool.addClassEntry(classname); writeByte(Opcode.NEW); writeShort(classIndex); StackEntry entry = new StackEntry(StackEntryType.UNITITIALIZED_OBJECT, DescriptorUtils.makeDescriptor(classname), currentOffset); currentOffset += 3; advanceFrame(currentFrame.push(entry)); }