Package com.tonic.parser.attribute.stack
Class AppendFrame
- java.lang.Object
-
- com.tonic.parser.attribute.stack.StackMapFrame
-
- com.tonic.parser.attribute.stack.AppendFrame
-
public class AppendFrame extends StackMapFrame
Represents an AppendFrame in the StackMapTable attribute.
-
-
Constructor Summary
Constructors Constructor Description AppendFrame(int frameType, int offsetDelta, List<VerificationTypeInfo> locals)Creates a frame from already-decoded values, copying the locals list.AppendFrame(int frameType, ClassFile classFile, ConstPool constPool)Reads the offset delta and the frame type minus 251 appended locals 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.List<VerificationTypeInfo>getLocals()intgetOffsetDelta()StringtoString()-
Methods inherited from class com.tonic.parser.attribute.stack.StackMapFrame
getFrameType, readFrame, write
-
-
-
-
Constructor Detail
-
AppendFrame
public AppendFrame(int frameType, ClassFile classFile, ConstPool constPool)Reads the offset delta and the frame type minus 251 appended locals from the class file.- Parameters:
frameType- the frame tag, in the range 252 to 254classFile- the class file positioned at the frame bodyconstPool- the pool used to resolve object verification types
-
AppendFrame
public AppendFrame(int frameType, int offsetDelta, List<VerificationTypeInfo> locals)Creates a frame from already-decoded values, copying the locals list.- Parameters:
frameType- the frame tag, in the range 252 to 254offsetDelta- the bytecode offset delta from the previous framelocals- the appended local verification types
-
-
Method Detail
-
getLocals
public List<VerificationTypeInfo> getLocals()
- Returns:
- the locals
-
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
-
-