Methods Summary |
---|
public void | accept(com.sun.org.apache.bcel.internal.generic.Visitor v)Call corresponding visitor method(s). The order is:
Call visitor methods of implemented interfaces first, then
call methods according to the class hierarchy in descending order,
i.e., the most specific visitXXX() call comes last.
v.visitLoadClass(this);
v.visitAllocationInstruction(this);
v.visitExceptionThrower(this);
v.visitTypedInstruction(this);
v.visitCPInstruction(this);
v.visitMULTIANEWARRAY(this);
|
public int | consumeStack(com.sun.org.apache.bcel.internal.generic.ConstantPoolGen cpg)Also works for instructions whose stack effect depends on the
constant pool entry they reference. return dimensions;
|
public void | dump(java.io.DataOutputStream out)Dump instruction as byte code to stream out.
out.writeByte(opcode);
out.writeShort(index);
out.writeByte(dimensions);
|
public final short | getDimensions() return dimensions;
|
public java.lang.Class[] | getExceptions()
Class[] cs = new Class[2 + ExceptionConstants.EXCS_CLASS_AND_INTERFACE_RESOLUTION.length];
System.arraycopy(ExceptionConstants.EXCS_CLASS_AND_INTERFACE_RESOLUTION, 0,
cs, 0, ExceptionConstants.EXCS_CLASS_AND_INTERFACE_RESOLUTION.length);
cs[ExceptionConstants.EXCS_CLASS_AND_INTERFACE_RESOLUTION.length+1] = ExceptionConstants.NEGATIVE_ARRAY_SIZE_EXCEPTION;
cs[ExceptionConstants.EXCS_CLASS_AND_INTERFACE_RESOLUTION.length] = ExceptionConstants.ILLEGAL_ACCESS_ERROR;
return cs;
|
public com.sun.org.apache.bcel.internal.generic.ObjectType | getLoadClassType(com.sun.org.apache.bcel.internal.generic.ConstantPoolGen cpg)
Type t = getType(cpg);
if (t instanceof ArrayType){
t = ((ArrayType) t).getBasicType();
}
return (t instanceof ObjectType)? (ObjectType) t : null;
|
protected void | initFromFile(com.sun.org.apache.bcel.internal.util.ByteSequence bytes, boolean wide)Read needed data (i.e., no. dimension) from file.
super.initFromFile(bytes, wide);
dimensions = bytes.readByte();
length = 4;
|
public java.lang.String | toString(boolean verbose)
return super.toString(verbose) + " " + index + " " + dimensions;
|
public java.lang.String | toString(com.sun.org.apache.bcel.internal.classfile.ConstantPool cp)
return super.toString(cp) + " " + dimensions;
|