Record Class JClassLocation
java.lang.Object
java.lang.Record
honeyroasted.jype.metadata.location.JClassLocation
public record JClassLocation(JClassLocation.Type type, JClassLocation containing, String value)
extends Record
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionJClassLocation(JClassLocation.Type type, JClassLocation containing, String value) Creates an instance of aJClassLocationrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecontainingrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanisArray()booleanstatic JClassLocationstatic JClassLocationof(ClassModel model) static JClassLocationof(ClassEntry entry) static JClassLocationstatic JClassLocationstatic JClassLocationstatic JClassLocationstatic JClassLocationofDescriptor(String desc) String[]toArray()toName()toString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.value()Returns the value of thevaluerecord component.
-
Field Details
-
DEFAULT_PACKAGE
-
VOID
-
-
Constructor Details
-
JClassLocation
Creates an instance of aJClassLocationrecord class.- Parameters:
type- the value for thetyperecord componentcontaining- the value for thecontainingrecord componentvalue- the value for thevaluerecord component
-
-
Method Details
-
of
-
of
-
of
-
ofDescriptor
-
of
-
of
-
of
-
of
-
toName
-
getPackage
-
isArray
public boolean isArray() -
isDefaultPackage
public boolean isDefaultPackage() -
simpleName
-
toInternalName
-
toRuntimeName
-
toName
-
toString
-
toString
-
toArray
-
hashCode
-
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 withObjects::equals(Object,Object). -
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
containing
Returns the value of thecontainingrecord component.- Returns:
- the value of the
containingrecord component
-
value
Returns the value of thevaluerecord component.- Returns:
- the value of the
valuerecord component
-