Module org.glavo.classfile
Package org.glavo.classfile.impl
Record Class UnboundAttribute.UnboundCharacterRangeInfo
java.lang.Object
java.lang.Record
org.glavo.classfile.impl.UnboundAttribute.UnboundCharacterRangeInfo
- All Implemented Interfaces:
CharacterRangeInfo
- Enclosing class:
UnboundAttribute<T extends Attribute<T>>
public static record UnboundAttribute.UnboundCharacterRangeInfo(int startPc, int endPc, int characterRangeStart, int characterRangeEnd, int flags)
extends Record
implements CharacterRangeInfo
-
Constructor Summary
ConstructorsConstructorDescriptionUnboundCharacterRangeInfo(int startPc, int endPc, int characterRangeStart, int characterRangeEnd, int flags) Creates an instance of aUnboundCharacterRangeInforecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of thecharacterRangeEndrecord component.intReturns the value of thecharacterRangeStartrecord component.intendPc()Returns the value of theendPcrecord component.final booleanIndicates whether some other object is "equal to" this one.intflags()Returns the value of theflagsrecord component.final inthashCode()Returns a hash code value for this object.intstartPc()Returns the value of thestartPcrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
UnboundCharacterRangeInfo
public UnboundCharacterRangeInfo(int startPc, int endPc, int characterRangeStart, int characterRangeEnd, int flags) Creates an instance of aUnboundCharacterRangeInforecord class.- Parameters:
startPc- the value for thestartPcrecord componentendPc- the value for theendPcrecord componentcharacterRangeStart- the value for thecharacterRangeStartrecord componentcharacterRangeEnd- the value for thecharacterRangeEndrecord componentflags- the value for theflagsrecord 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 interfaceCharacterRangeInfo- Returns:
- the value of the
startPcrecord component
-
endPc
public int endPc()Returns the value of theendPcrecord component.- Specified by:
endPcin interfaceCharacterRangeInfo- Returns:
- the value of the
endPcrecord component
-
characterRangeStart
public int characterRangeStart()Returns the value of thecharacterRangeStartrecord component.- Specified by:
characterRangeStartin interfaceCharacterRangeInfo- Returns:
- the value of the
characterRangeStartrecord component
-
characterRangeEnd
public int characterRangeEnd()Returns the value of thecharacterRangeEndrecord component.- Specified by:
characterRangeEndin interfaceCharacterRangeInfo- Returns:
- the value of the
characterRangeEndrecord component
-
flags
public int flags()Returns the value of theflagsrecord component.- Specified by:
flagsin interfaceCharacterRangeInfo- Returns:
- the value of the
flagsrecord component
-