Module org.glavo.classfile
Package org.glavo.classfile.impl
Record Class StackMapDecoder.StackMapFrameImpl
java.lang.Object
java.lang.Record
org.glavo.classfile.impl.StackMapDecoder.StackMapFrameImpl
- All Implemented Interfaces:
StackMapFrameInfo
- Enclosing class:
StackMapDecoder
public static record StackMapDecoder.StackMapFrameImpl(int frameType, Label target, List<StackMapFrameInfo.VerificationTypeInfo> locals, List<StackMapFrameInfo.VerificationTypeInfo> stack)
extends Record
implements StackMapFrameInfo
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.glavo.classfile.attribute.StackMapFrameInfo
StackMapFrameInfo.ObjectVerificationTypeInfo, StackMapFrameInfo.SimpleVerificationTypeInfo, StackMapFrameInfo.UninitializedVerificationTypeInfo, StackMapFrameInfo.VerificationTypeInfo -
Constructor Summary
ConstructorsConstructorDescriptionStackMapFrameImpl(int frameType, Label target, List<StackMapFrameInfo.VerificationTypeInfo> locals, List<StackMapFrameInfo.VerificationTypeInfo> stack) Creates an instance of aStackMapFrameImplrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.intReturns the value of theframeTyperecord component.final inthashCode()Returns a hash code value for this object.locals()Returns the value of thelocalsrecord component.stack()Returns the value of thestackrecord component.target()Returns the value of thetargetrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
StackMapFrameImpl
public StackMapFrameImpl(int frameType, Label target, List<StackMapFrameInfo.VerificationTypeInfo> locals, List<StackMapFrameInfo.VerificationTypeInfo> stack) Creates an instance of aStackMapFrameImplrecord class.- Parameters:
frameType- the value for theframeTyperecord componenttarget- the value for thetargetrecord componentlocals- the value for thelocalsrecord componentstack- the value for thestackrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
frameType
public int frameType()Returns the value of theframeTyperecord component.- Specified by:
frameTypein interfaceStackMapFrameInfo- Returns:
- the value of the
frameTyperecord component
-
target
Returns the value of thetargetrecord component.- Specified by:
targetin interfaceStackMapFrameInfo- Returns:
- the value of the
targetrecord component
-
locals
Returns the value of thelocalsrecord component.- Specified by:
localsin interfaceStackMapFrameInfo- Returns:
- the value of the
localsrecord component
-
stack
Returns the value of thestackrecord component.- Specified by:
stackin interfaceStackMapFrameInfo- Returns:
- the value of the
stackrecord component
-