Package com.tonic.parser.attribute.stack
Class SameLocals1StackItemFrame
- java.lang.Object
-
- com.tonic.parser.attribute.stack.StackMapFrame
-
- com.tonic.parser.attribute.stack.SameLocals1StackItemFrame
-
public class SameLocals1StackItemFrame extends StackMapFrame
Represents a SameLocals1StackItemFrame in the StackMapTable attribute.
-
-
Constructor Summary
Constructors Constructor Description SameLocals1StackItemFrame(int offsetDelta, VerificationTypeInfo stack)Builds a frame directly, encoding the delta into the frame tag.SameLocals1StackItemFrame(int frameType, ClassFile classFile, ConstPool constPool)Reads the single stack entry for this frame from the class file.
-
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
-
SameLocals1StackItemFrame
public SameLocals1StackItemFrame(int frameType, ClassFile classFile, ConstPool constPool)Reads the single stack entry for this frame from the class file.- Parameters:
frameType- the raw frame tag, 64 plus the offset deltaclassFile- the class file being readconstPool- the constant pool backing verification type references
-
SameLocals1StackItemFrame
public SameLocals1StackItemFrame(int offsetDelta, VerificationTypeInfo stack)Builds a frame directly, encoding the delta into the frame tag.- Parameters:
offsetDelta- the bytecode offset delta, 0 to 63stack- the single stack entry
-
-
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
-
-