Class EnumDef
java.lang.Object
online.sharedtype.processor.domain.def.ConcreteTypeDef
online.sharedtype.processor.domain.def.EnumDef
- All Implemented Interfaces:
Serializable,TypeDef
Represents an enum.
- Author:
- Cause Chung
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionIf the enum is empty, return this enum type.booleanvoidlinkTypeInfo(ConcreteTypeInfo typeInfo) Register a counterpart typeInfo.booleanresolved()toString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface online.sharedtype.processor.domain.def.TypeDef
directSupertypes, getElement, isAnnotated, isCyclicReferenced, isReferencedByAnnotated, setCyclicReferenced, setReferencedByAnnotated
-
Constructor Details
-
EnumDef
public EnumDef()
-
-
Method Details
-
qualifiedName
-
simpleName
-
components
-
getComponentValueType
If the enum is empty, return this enum type. -
hasComponentValueType
public boolean hasComponentValueType()- Returns:
- true if component value has a different type other than this enumType, i.e. when enumValue is defined
-
valueTypeAlias
-
typeInfoSet
- Specified by:
typeInfoSetin classConcreteTypeDef
-
resolved
public boolean resolved()- Returns:
- true if all required types are resolved.
-
toString
-