Class StackMapType

    • Constructor Detail

      • StackMapType

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

      • setType

        public void setType​(byte t)
      • getType

        public byte getType()
      • setIndex

        public void setIndex​(int t)
      • getIndex

        public int getIndex()
        Returns:
        index to constant pool if type == ITEM_Object, or offset in byte code, if type == ITEM_NewObject, and -1 otherwise
      • hasIndex

        public boolean hasIndex()
        Returns:
        true, if type is either ITEM_Object or ITEM_NewObject
      • toString

        public String toString()
        Overrides:
        toString in class Object
        Returns:
        String representation
      • copy

        public StackMapType copy()
        Returns:
        deep copy of this object
      • getConstantPool

        public ConstantPool getConstantPool()
        Returns:
        Constant pool used by this object.
      • setConstantPool

        public void setConstantPool​(ConstantPool constantPool)
        Parameters:
        constantPool - Constant pool to be used for this object.