Package com.tonic.parser.attribute.stack
Class SameFrameExtended
- java.lang.Object
-
- com.tonic.parser.attribute.stack.StackMapFrame
-
- com.tonic.parser.attribute.stack.SameFrameExtended
-
public class SameFrameExtended extends StackMapFrame
A same_frame_extended stack map entry - unchanged type state, with the offset delta stored explicitly.
-
-
Constructor Summary
Constructors Constructor Description SameFrameExtended(int offsetDelta)Creates a frame with tag 251 for emission.SameFrameExtended(int frameType, ClassFile classFile)Reads the frame's offset delta from the class file at its current position.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetLength()Returns the total length of this frame in bytes.intgetOffsetDelta()StringtoString()-
Methods inherited from class com.tonic.parser.attribute.stack.StackMapFrame
getFrameType, readFrame, write
-
-
-
-
Constructor Detail
-
SameFrameExtended
public SameFrameExtended(int frameType, ClassFile classFile)Reads the frame's offset delta from the class file at its current position.- Parameters:
frameType- the frame tag already consumed, always 251classFile- the class file being parsed
-
SameFrameExtended
public SameFrameExtended(int offsetDelta)
Creates a frame with tag 251 for emission.- Parameters:
offsetDelta- bytecode offset delta from the previous frame
-
-
Method Detail
-
getOffsetDelta
public int getOffsetDelta()
- Specified by:
getOffsetDeltain classStackMapFrame- Returns:
- the bytecode offset delta from the previous frame
-
getLength
public int getLength()
Description copied from class:StackMapFrameReturns the total length of this frame in bytes.- Specified by:
getLengthin classStackMapFrame- Returns:
- the length in bytes
-
toString
public String toString()
- Overrides:
toStringin classStackMapFrame
-
-