Package com.tonic.parser.attribute.stack
Class ChopFrame
- java.lang.Object
-
- com.tonic.parser.attribute.stack.StackMapFrame
-
- com.tonic.parser.attribute.stack.ChopFrame
-
public class ChopFrame extends StackMapFrame
Represents a ChopFrame in the StackMapTable attribute.
-
-
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
-
ChopFrame
public ChopFrame(int frameType, ClassFile classFile)Reads the offset delta from the class file at the current position.- Parameters:
frameType- the raw frame type tagclassFile- the source being read
-
ChopFrame
public ChopFrame(int frameType, int offsetDelta)Creates a frame with an explicit offset delta.- Parameters:
frameType- the raw frame type tagoffsetDelta- the 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
-
-