Module org.glavo.classfile
Package org.glavo.classfile.impl
Record Class UnboundAttribute.UnboundInnerClassInfo
java.lang.Object
java.lang.Record
org.glavo.classfile.impl.UnboundAttribute.UnboundInnerClassInfo
- All Implemented Interfaces:
InnerClassInfo
- Enclosing class:
UnboundAttribute<T extends Attribute<T>>
public static record UnboundAttribute.UnboundInnerClassInfo(ClassEntry innerClass, Optional<ClassEntry> outerClass, Optional<Utf8Entry> innerName, int flagsMask)
extends Record
implements InnerClassInfo
-
Constructor Summary
ConstructorsConstructorDescriptionUnboundInnerClassInfo(ClassEntry innerClass, Optional<ClassEntry> outerClass, Optional<Utf8Entry> innerName, int flagsMask) Creates an instance of aUnboundInnerClassInforecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.intReturns the value of theflagsMaskrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of theinnerClassrecord component.Returns the value of theinnerNamerecord component.Returns the value of theouterClassrecord component.final StringtoString()Returns a string representation of this record class.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.glavo.classfile.attribute.InnerClassInfo
flags, has
-
Constructor Details
-
UnboundInnerClassInfo
public UnboundInnerClassInfo(ClassEntry innerClass, Optional<ClassEntry> outerClass, Optional<Utf8Entry> innerName, int flagsMask) Creates an instance of aUnboundInnerClassInforecord class.- Parameters:
innerClass- the value for theinnerClassrecord componentouterClass- the value for theouterClassrecord componentinnerName- the value for theinnerNamerecord componentflagsMask- the value for theflagsMaskrecord 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 '=='. -
innerClass
Returns the value of theinnerClassrecord component.- Specified by:
innerClassin interfaceInnerClassInfo- Returns:
- the value of the
innerClassrecord component
-
outerClass
Returns the value of theouterClassrecord component.- Specified by:
outerClassin interfaceInnerClassInfo- Returns:
- the value of the
outerClassrecord component
-
innerName
Returns the value of theinnerNamerecord component.- Specified by:
innerNamein interfaceInnerClassInfo- Returns:
- the value of the
innerNamerecord component
-
flagsMask
public int flagsMask()Returns the value of theflagsMaskrecord component.- Specified by:
flagsMaskin interfaceInnerClassInfo- Returns:
- the value of the
flagsMaskrecord component
-