java.lang.Object
online.sharedtype.processor.domain.def.ConcreteTypeDef
online.sharedtype.processor.domain.def.EnumDef
All Implemented Interfaces:
Serializable, TypeDef

public final class EnumDef extends ConcreteTypeDef
Represents an enum.
Author:
Cause Chung
See Also:
  • Constructor Details

    • EnumDef

      public EnumDef()
  • Method Details

    • qualifiedName

      public String qualifiedName()
    • simpleName

      public String simpleName()
    • components

      public List<EnumValueInfo> components()
    • getComponentValueType

      public TypeInfo 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

      public String valueTypeAlias()
    • typeInfoSet

      public Set<ConcreteTypeInfo> typeInfoSet()
      Specified by:
      typeInfoSet in class ConcreteTypeDef
    • linkTypeInfo

      public void linkTypeInfo(ConcreteTypeInfo typeInfo)
      Description copied from class: ConcreteTypeDef
      Register a counterpart typeInfo. Note: This method should not be called from outside, please use ConcreteTypeInfo.shallowResolved()
      Specified by:
      linkTypeInfo in class ConcreteTypeDef
    • resolved

      public boolean resolved()
      Returns:
      true if all required types are resolved.
    • toString

      public String toString()
      Overrides:
      toString in class Object