org.aspectj.org.eclipse.jdt.internal.core.util
Class DefaultStackMapFrame

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

public class DefaultStackMapFrame
extends ClassFileStruct
implements IStackMapFrame

Default implementation of IStackMapFrame


Constructor Summary
DefaultStackMapFrame(byte[] classFileBytes, IConstantPool constantPool, int offset)
          Constructor for StackMapFrame.
 
Method Summary
 int getFrameType()
          Answer back the frame type for this entry.
 IVerificationTypeInfo[] getLocals()
          Answer back verification infos for the defined locals.
 int getNumberOfLocals()
          Answer back the number of locals.
 int getNumberOfStackItems()
          Answer back the number of stack items
 int getOffsetDelta()
          Answer back the offset delta.
 IVerificationTypeInfo[] getStackItems()
          Answer back the verification infos for the stack items.
 
Methods inherited from class org.aspectj.org.eclipse.jdt.internal.core.util.ClassFileStruct
doubleAt, floatAt, i1At, i2At, i4At, i8At, u1At, u2At, u4At, utf8At
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultStackMapFrame

public DefaultStackMapFrame(byte[] classFileBytes,
                            IConstantPool constantPool,
                            int offset)
                     throws ClassFormatException
Constructor for StackMapFrame.

Parameters:
classFileBytes -
constantPool -
offset -
Throws:
ClassFormatException
Method Detail

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