Module org.glavo.classfile
Package org.glavo.classfile.impl
Record Class UnboundAttribute.UnboundLineNumberInfo
java.lang.Object
java.lang.Record
org.glavo.classfile.impl.UnboundAttribute.UnboundLineNumberInfo
- All Implemented Interfaces:
LineNumberInfo
- Enclosing class:
UnboundAttribute<T extends Attribute<T>>
public static record UnboundAttribute.UnboundLineNumberInfo(int startPc, int lineNumber)
extends Record
implements LineNumberInfo
-
Constructor Summary
ConstructorsConstructorDescriptionUnboundLineNumberInfo(int startPc, int lineNumber) Creates an instance of aUnboundLineNumberInforecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intReturns the value of thelineNumberrecord component.intstartPc()Returns the value of thestartPcrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
UnboundLineNumberInfo
public UnboundLineNumberInfo(int startPc, int lineNumber) Creates an instance of aUnboundLineNumberInforecord class.- Parameters:
startPc- the value for thestartPcrecord componentlineNumber- the value for thelineNumberrecord 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. All components in this record class are compared with '=='. -
startPc
public int startPc()Returns the value of thestartPcrecord component.- Specified by:
startPcin interfaceLineNumberInfo- Returns:
- the value of the
startPcrecord component
-
lineNumber
public int lineNumber()Returns the value of thelineNumberrecord component.- Specified by:
lineNumberin interfaceLineNumberInfo- Returns:
- the value of the
lineNumberrecord component
-