Klasse StackMapType

java.lang.Object
org.aspectj.apache.bcel.classfile.StackMapType
Alle implementierten Schnittstellen:
Cloneable

public final class StackMapType extends Object implements Cloneable
This class represents the type of a local variable or item on stack used in the StackMap entries.
Version:
$Id: StackMapType.java,v 1.3 2008/05/28 23:53:02 aclement Exp $
Autor:
M. Dahm
Siehe auch:
  • Konstruktordetails

    • StackMapType

      public StackMapType(byte type, int index, ConstantPool constant_pool)
      Parameter:
      type - type tag as defined in the Constants interface
      index - index to constant pool, or byte code offset
  • Methodendetails

    • setType

      public void setType(byte t)
    • getType

      public byte getType()
    • setIndex

      public void setIndex(int t)
    • getIndex

      public int getIndex()
      Gibt zurück:
      index to constant pool if type == ITEM_Object, or offset in byte code, if type == ITEM_NewObject, and -1 otherwise
    • dump

      public final void dump(DataOutputStream file) throws IOException
      Dump type entries to file.
      Parameter:
      file - Output file stream
      Löst aus:
      IOException
    • hasIndex

      public final boolean hasIndex()
      Gibt zurück:
      true, if type is either ITEM_Object or ITEM_NewObject
    • toString

      public final String toString()
      Setzt außer Kraft:
      toString in Klasse Object
      Gibt zurück:
      String representation
    • copy

      public StackMapType copy()
      Gibt zurück:
      deep copy of this object
    • getConstantPool

      public final ConstantPool getConstantPool()
      Gibt zurück:
      Constant pool used by this object.
    • setConstantPool

      public final void setConstantPool(ConstantPool constant_pool)
      Parameter:
      constant_pool - Constant pool to be used for this object.