Module java4ever.binding
Record Class TypeReference
java.lang.Object
java.lang.Record
tech.deplant.java4ever.binding.generator.TypeReference
-
Constructor Summary
ConstructorsConstructorDescriptionTypeReference(String module, String name, boolean isArray, boolean isOptional, boolean isGeneric, boolean isRef, boolean isVoid) Creates an instance of aTypeReferencerecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.static TypeReferencefromApiType(ApiType apiType) final inthashCode()Returns a hash code value for this object.booleanisArray()Returns the value of theisArrayrecord component.booleanReturns the value of theisGenericrecord component.booleanReturns the value of theisOptionalrecord component.booleanisRef()Returns the value of theisRefrecord component.booleanisVoid()Returns the value of theisVoidrecord component.module()Returns the value of themodulerecord component.name()Returns the value of thenamerecord component.final StringtoString()Returns a string representation of this record class.toTypeDeclaration(Map<ParserEngine.SdkType, SdkObject> typeLibrary) withIsArray(boolean isArray) withIsGeneric(boolean isGeneric) withIsOptional(boolean isOptional) withIsRef(boolean isRef) withIsVoid(boolean isVoid) withModule(String module)
-
Constructor Details
-
TypeReference
public TypeReference(String module, String name, boolean isArray, boolean isOptional, boolean isGeneric, boolean isRef, boolean isVoid) Creates an instance of aTypeReferencerecord class.- Parameters:
module- the value for themodulerecord componentname- the value for thenamerecord componentisArray- the value for theisArrayrecord componentisOptional- the value for theisOptionalrecord componentisGeneric- the value for theisGenericrecord componentisRef- the value for theisRefrecord componentisVoid- the value for theisVoidrecord component
-
-
Method Details
-
fromApiType
-
withModule
-
withName
-
withIsArray
-
withIsOptional
-
withIsGeneric
-
withIsRef
-
withIsVoid
-
toTypeName
-
toTypeDeclaration
-
toSdkType
-
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 '=='. -
module
Returns the value of themodulerecord component.- Returns:
- the value of the
modulerecord component
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
isArray
public boolean isArray()Returns the value of theisArrayrecord component.- Returns:
- the value of the
isArrayrecord component
-
isOptional
public boolean isOptional()Returns the value of theisOptionalrecord component.- Returns:
- the value of the
isOptionalrecord component
-
isGeneric
public boolean isGeneric()Returns the value of theisGenericrecord component.- Returns:
- the value of the
isGenericrecord component
-
isRef
public boolean isRef()Returns the value of theisRefrecord component.- Returns:
- the value of the
isRefrecord component
-
isVoid
public boolean isVoid()Returns the value of theisVoidrecord component.- Returns:
- the value of the
isVoidrecord component
-