Record Class JClassName
java.lang.Object
java.lang.Record
honeyroasted.jype.metadata.location.JClassName
public record JClassName(JClassName.Type type, JClassName.SubType subType, JClassName containing, String value)
extends Record
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionJClassName(JClassName.Type type, JClassName.SubType subType, JClassName containing, String value) Creates an instance of aJClassNamerecord class.JClassName(JClassName.Type type, JClassName.SubType subType, String value) -
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.booleanbooleanisArray()booleanbooleanbooleanstatic JClassNamestatic JClassNamestatic JClassNameof(Constructor<?> constructor) static JClassNamestatic JClassNamestatic JClassNamestatic JClassNamepackageNameOf(String name) subType()Returns the value of thesubTyperecord component.String[]toArray()toString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.value()Returns the value of thevaluerecord component.
-
Constructor Details
-
JClassName
-
JClassName
public JClassName(JClassName.Type type, JClassName.SubType subType, JClassName containing, String value) Creates an instance of aJClassNamerecord class.- Parameters:
type- the value for thetyperecord componentsubType- the value for thesubTyperecord componentcontaining- the value for thecontainingrecord componentvalue- the value for thevaluerecord component
-
-
Method Details
-
simpleName
-
of
-
of
-
of
-
of
-
of
-
of
-
packageNameOf
-
isArray
public boolean isArray() -
isAnonymousClass
public boolean isAnonymousClass() -
isConstructor
public boolean isConstructor() -
isReferenceable
public boolean isReferenceable() -
isPackage
public boolean isPackage() -
toString
-
toArray
-
toSourceName
-
toString
-
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
-
subType
Returns the value of thesubTyperecord component.- Returns:
- the value of the
subTyperecord 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
-