Methods Summary |
---|
public com.sun.org.apache.bcel.internal.classfile.StackMapType | copy()
try {
return (StackMapType)clone();
} catch(CloneNotSupportedException e) {}
return null;
|
public final void | dump(java.io.DataOutputStream file)Dump type entries to file.
file.writeByte(type);
if(hasIndex())
file.writeShort(getIndex());
|
public final com.sun.org.apache.bcel.internal.classfile.ConstantPool | getConstantPool() return constant_pool;
|
public int | getIndex() return index;
|
public byte | getType() return type;
|
public final boolean | hasIndex()
return ((type == Constants.ITEM_Object) ||
(type == Constants.ITEM_NewObject));
|
private java.lang.String | printIndex()
if(type == Constants.ITEM_Object)
return ", class=" + constant_pool.constantToString(index, Constants.CONSTANT_Class);
else if(type == Constants.ITEM_NewObject)
return ", offset=" + index;
else
return "";
|
public final void | setConstantPool(com.sun.org.apache.bcel.internal.classfile.ConstantPool constant_pool)
this.constant_pool = constant_pool;
|
public void | setIndex(int t) index = t;
|
public void | setType(byte t)
if((t < Constants.ITEM_Bogus) || (t > Constants.ITEM_NewObject))
throw new RuntimeException("Illegal type for StackMapType: " + t);
type = t;
|
public final java.lang.String | toString()
return "(type=" + Constants.ITEM_NAMES[type] + printIndex() + ")";
|