Package com.tonic.parser.attribute.stack
Class FullFrame
- java.lang.Object
-
- com.tonic.parser.attribute.stack.StackMapFrame
-
- com.tonic.parser.attribute.stack.FullFrame
-
public class FullFrame extends StackMapFrame
Represents a FullFrame in the StackMapTable attribute.
-
-
Constructor Summary
Constructors Constructor Description FullFrame(int frameType, ClassFile classFile, ConstPool constPool)Constructs a FullFrame by reading from a class file.FullFrame(int offsetDelta, List<VerificationTypeInfo> locals, List<VerificationTypeInfo> stack)Constructs a FullFrame programmatically.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetLength()Returns the total length of this frame in bytes.List<VerificationTypeInfo>getLocals()intgetOffsetDelta()List<VerificationTypeInfo>getStack()StringtoString()-
Methods inherited from class com.tonic.parser.attribute.stack.StackMapFrame
getFrameType, readFrame, write
-
-
-
-
Constructor Detail
-
FullFrame
public FullFrame(int frameType, ClassFile classFile, ConstPool constPool)Constructs a FullFrame by reading from a class file.- Parameters:
frameType- the raw frame type tagclassFile- the class file positioned at the frame body, read from as a side effectconstPool- the constant pool used to resolve object verification types
-
FullFrame
public FullFrame(int offsetDelta, List<VerificationTypeInfo> locals, List<VerificationTypeInfo> stack)Constructs a FullFrame programmatically.- Parameters:
offsetDelta- the offset delta from the previous framelocals- the local variable typesstack- the operand stack types
-
-
Method Detail
-
getLocals
public List<VerificationTypeInfo> getLocals()
- Returns:
- the locals
-
getStack
public List<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
-
-