java.lang.Object
org.apache.bcel.classfile.StackMapType
- All Implemented Interfaces:
- java.lang.Cloneable
- public final class StackMapType
- extends java.lang.Object
- implements java.lang.Cloneable
This class represents the type of a local variable or item on stack
used in the StackMap entries.
- Version:
- $Id: StackMapType.java 386056 2006-03-15 11:31:56Z tcurdt $
type
private byte type
index
private int index
constant_pool
private ConstantPool constant_pool
StackMapType
StackMapType(java.io.DataInputStream file,
ConstantPool constant_pool)
throws java.io.IOException
- Construct object from file stream.
StackMapType
public StackMapType(byte type,
int index,
ConstantPool constant_pool)
setType
public void setType(byte t)
getType
public byte getType()
setIndex
public void setIndex(int t)
getIndex
public int getIndex()
dump
public final void dump(java.io.DataOutputStream file)
throws java.io.IOException
- Dump type entries to file.
hasIndex
public final boolean hasIndex()
printIndex
private java.lang.String printIndex()
toString
public final java.lang.String toString()
- Description copied from class:
java.lang.Object
- Convert this Object to a human-readable String.
There are no limits placed on how long this String
should be or what it should contain. We suggest you
make it as intuitive as possible to be able to place
it into System.out.println() 55
and such.
It is typical, but not required, to ensure that this method
never completes abruptly with a java.lang.RuntimeException.
This method will be called when performing string
concatenation with this object. If the result is
null, string concatenation will instead
use "null".
The default implementation returns
getClass().getName() + "@" +
Integer.toHexString(hashCode()).
copy
public StackMapType copy()
getConstantPool
public final ConstantPool getConstantPool()
setConstantPool
public final void setConstantPool(ConstantPool constant_pool)