Module java4ever.binding
Record Class JavaEnum
java.lang.Object
java.lang.Record
tech.deplant.java4ever.binding.generator.jtype.JavaEnum
- All Implemented Interfaces:
JavaType
public record JavaEnum(String name, EnumOfConsts.Const[] consts, JavaDocs javadoc)
extends Record
implements JavaType
-
Constructor Summary
ConstructorsConstructorDescriptionJavaEnum(String name, EnumOfConsts.Const[] consts, JavaDocs javadoc) Creates an instance of aJavaEnumrecord class. -
Method Summary
Modifier and TypeMethodDescriptionconsts()Returns the value of theconstsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanbooleanisParams()booleanisResult()booleanbooleanjavadoc()Returns the value of thejavadocrecord component.name()Returns the value of thenamerecord component.final StringtoString()Returns a string representation of this record class.type()
-
Constructor Details
-
JavaEnum
Creates an instance of aJavaEnumrecord class.- Parameters:
name- the value for thenamerecord componentconsts- the value for theconstsrecord componentjavadoc- the value for thejavadocrecord component
-
-
Method Details
-
poeticize
-
type
-
isSimpleWrapper
public boolean isSimpleWrapper()- Specified by:
isSimpleWrapperin interfaceJavaType
-
isFlatType
public boolean isFlatType()- Specified by:
isFlatTypein interfaceJavaType
-
isStructure
public boolean isStructure()- Specified by:
isStructurein interfaceJavaType
-
isParams
public boolean isParams() -
isResult
public boolean isResult() -
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 withObjects::equals(Object,Object). -
name
Returns the value of thenamerecord component. -
consts
Returns the value of theconstsrecord component.- Returns:
- the value of the
constsrecord component
-
javadoc
Returns the value of thejavadocrecord component.- Returns:
- the value of the
javadocrecord component
-