Class StackMapFrame

java.lang.Object
org.aspectj.org.eclipse.jdt.internal.core.util.ClassFileStruct
org.aspectj.org.eclipse.jdt.internal.core.util.StackMapFrame
All Implemented Interfaces:
IStackMapFrame

public class StackMapFrame extends ClassFileStruct implements IStackMapFrame
Default implementation of IStackMapFrame
  • Constructor Summary

    Constructors
    Constructor
    Description
    StackMapFrame(byte[] classFileBytes, IConstantPool constantPool, int offset)
    Constructor for StackMapFrame.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Answer back the frame type for this entry.
    Answer back verification infos for the defined locals.
    int
    Answer back the number of locals.
    int
    Answer back the number of stack items
    int
    Answer back the offset delta.
    Answer back the verification infos for the stack items.

    Methods inherited from class ClassFileStruct

    doubleAt, floatAt, i1At, i2At, i4At, i8At, u1At, u2At, u4At, utf8At
    Modifier and Type
    Method
    Description
    protected double
    doubleAt(byte[] reference, int relativeOffset, int structOffset)
     
    protected float
    floatAt(byte[] reference, int relativeOffset, int structOffset)
     
    protected int
    i1At(byte[] reference, int relativeOffset, int structOffset)
     
    protected int
    i2At(byte[] reference, int relativeOffset, int structOffset)
     
    protected int
    i4At(byte[] reference, int relativeOffset, int structOffset)
     
    protected long
    i8At(byte[] reference, int relativeOffset, int structOffset)
     
    protected int
    u1At(byte[] reference, int relativeOffset, int structOffset)
     
    protected int
    u2At(byte[] reference, int relativeOffset, int structOffset)
     
    protected int
    u4At(byte[] reference, int relativeOffset, int structOffset)
    Returns an 32 bit integer created of 4 bytes.
    protected char[]
    utf8At(byte[] reference, int relativeOffset, int structOffset, int bytesAvailable)
     

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • getFrameType

      public int getFrameType()
      Description copied from interface: IStackMapFrame
      Answer back the frame type for this entry.
      Type Range
      SAME 0-63
      SAME_LOCALS_1_STACK_ITEM 64-127
      SAME_LOCALS_1_STACK_ITEM_EXTENDED 247
      CHOP 248-250
      SAME_FRAME_EXTENDED 251
      APPEND 252-254
      FULL_FRAME 255
      Specified by:
      getFrameType in interface IStackMapFrame
      Returns:
      the frame type for this entry
    • getLocals

      public IVerificationTypeInfo[] getLocals()
      Description copied from interface: IStackMapFrame
      Answer back verification infos for the defined locals.

      This is defined only for frame types APPEND and FULL_FRAME.

      Specified by:
      getLocals in interface IStackMapFrame
      Returns:
      verification infos for the defined locals
    • getNumberOfLocals

      public int getNumberOfLocals()
      Description copied from interface: IStackMapFrame
      Answer back the number of locals.

      This is defined only for the frame type FULL_FRAME.

      Specified by:
      getNumberOfLocals in interface IStackMapFrame
      Returns:
      the number of locals
    • getNumberOfStackItems

      public int getNumberOfStackItems()
      Description copied from interface: IStackMapFrame
      Answer back the number of stack items

      This is defined only for the frame types SAME_LOCALS_1_STACK_ITEM, SAME_LOCALS_1_STACK_ITEM_EXTENDED and FULL_FRAME. For SAME_LOCALS_1_STACK_ITEM and SAME_LOCALS_1_STACK_ITEM_EXTENDED, the answer is implicitely 1.

      Specified by:
      getNumberOfStackItems in interface IStackMapFrame
      Returns:
      the number of stack items
    • getOffsetDelta

      public int getOffsetDelta()
      Description copied from interface: IStackMapFrame
      Answer back the offset delta.

      This is not defined only for the frame types SAME and SAME_LOCALS_1_STACK_ITEM.

      Specified by:
      getOffsetDelta in interface IStackMapFrame
      Returns:
      the offset delta
    • getStackItems

      public IVerificationTypeInfo[] getStackItems()
      Description copied from interface: IStackMapFrame
      Answer back the verification infos for the stack items.
      Specified by:
      getStackItems in interface IStackMapFrame
      Returns:
      the verification infos for the stack items