Package com.tonic.parser.attribute.stack
Class SameLocals1StackItemFrameExtended
- java.lang.Object
-
- com.tonic.parser.attribute.stack.StackMapFrame
-
- com.tonic.parser.attribute.stack.SameLocals1StackItemFrameExtended
-
public class SameLocals1StackItemFrameExtended extends StackMapFrame
Represents a SameLocals1StackItemFrameExtended in the StackMapTable attribute.
-
-
Constructor Summary
Constructors Constructor Description SameLocals1StackItemFrameExtended(int offsetDelta, VerificationTypeInfo stack)Creates a frame with frame type 247.SameLocals1StackItemFrameExtended(int frameType, ClassFile classFile, ConstPool constPool)Reads the offset delta and stack item from the class file's 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()VerificationTypeInfogetStack()StringtoString()-
Methods inherited from class com.tonic.parser.attribute.stack.StackMapFrame
getFrameType, readFrame, write
-
-
-
-
Constructor Detail
-
SameLocals1StackItemFrameExtended
public SameLocals1StackItemFrameExtended(int frameType, ClassFile classFile, ConstPool constPool)Reads the offset delta and stack item from the class file's current position.- Parameters:
frameType- raw frame type tagclassFile- source being readconstPool- pool used to resolve object verification types
-
SameLocals1StackItemFrameExtended
public SameLocals1StackItemFrameExtended(int offsetDelta, VerificationTypeInfo stack)Creates a frame with frame type 247.- Parameters:
offsetDelta- bytecode offset delta from the previous framestack- the single stack item
-
-
Method Detail
-
getStack
public VerificationTypeInfo getStack()
- Returns:
- the stack
-
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
-
-