Enum Class BaseType

java.lang.Object
java.lang.Enum<BaseType>
io.moderne.compiled.internal.signature.BaseType
All Implemented Interfaces:
ComponentType, FieldDescriptor, FieldType, FieldTypeSignature, ParameterDescriptor, ReturnDescriptor, ReturnType, TypeSignature, Serializable, Comparable<BaseType>, Constable

public enum BaseType extends Enum<BaseType> implements FieldType, FieldTypeSignature, TypeSignature
  • Enum Constant Details

    • Boolean

      public static final BaseType Boolean
    • Byte

      public static final BaseType Byte
    • Char

      public static final BaseType Char
    • Double

      public static final BaseType Double
    • Float

      public static final BaseType Float
    • Int

      public static final BaseType Int
    • Long

      public static final BaseType Long
    • Short

      public static final BaseType Short
    • String

      public static final BaseType String
    • Void

      public static final BaseType Void
    • None

      public static final BaseType None
    • Null

      public static final BaseType Null
  • Method Details

    • values

      public static BaseType[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static BaseType valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • fromJavaType

      public static ReturnType fromJavaType(org.openrewrite.java.tree.JavaType.Primitive primitive)
    • toString

      public String toString()
      Overrides:
      toString in class Enum<BaseType>