Class TypeIntrospectionBase

java.lang.Object
org.immutables.value.processor.meta.TypeIntrospectionBase
Direct Known Subclasses:
ValueAttribute, ValueType

public abstract class TypeIntrospectionBase extends Object
  • Field Details

    • PARCELABLE_INTERFACE_TYPE

      private static final String PARCELABLE_INTERFACE_TYPE
      See Also:
    • COMPARABLE_INTERFACE_PREFIX

      private static final String COMPARABLE_INTERFACE_PREFIX
    • ENUM_CLASS_PREFIX

      private static final String ENUM_CLASS_PREFIX
    • ORDINAL_VALUE_INTERFACE_PREFIX

      private static final String ORDINAL_VALUE_INTERFACE_PREFIX
      See Also:
    • BOXED_TO_PRIMITIVE_TYPES

      protected static final com.google.common.collect.ImmutableBiMap<String,String> BOXED_TO_PRIMITIVE_TYPES
    • introspected

      private volatile boolean introspected
    • extendedClassesNames

      protected com.google.common.collect.ImmutableSet<String> extendedClassesNames
    • implementedInterfacesNames

      protected com.google.common.collect.ImmutableSet<String> implementedInterfacesNames
    • unresolvedYetArguments

      protected com.google.common.collect.ImmutableSet<String> unresolvedYetArguments
    • isOrdinalValue

      private boolean isOrdinalValue
    • isEnum

      private boolean isEnum
    • isComparable

      private boolean isComparable
  • Constructor Details

    • TypeIntrospectionBase

      public TypeIntrospectionBase()
  • Method Details

    • isPrimitiveType

      protected static boolean isPrimitiveType(String typeName)
    • isPrimitiveWrappedType

      protected static boolean isPrimitiveWrappedType(String name)
    • isPrimitiveOrWrapped

      protected static boolean isPrimitiveOrWrapped(String name)
    • wrapType

      protected static String wrapType(String typeName)
    • unwrapType

      protected static String unwrapType(String typeName)
    • internalTypeMirror

      protected abstract TypeMirror internalTypeMirror()
    • ensureTypeIntrospected

      protected void ensureTypeIntrospected()
    • getExtendedClassesNames

      public com.google.common.collect.ImmutableSet<String> getExtendedClassesNames()
    • getImplementedInterfacesNames

      public com.google.common.collect.ImmutableSet<String> getImplementedInterfacesNames()
    • isParcelable

      public boolean isParcelable()
    • isComparable

      public boolean isComparable()
    • isOrdinalValue

      public boolean isOrdinalValue()
    • isEnumType

      public boolean isEnumType()
    • isSerializable

      public boolean isSerializable()
    • getDirectSupertype

      public String getDirectSupertype()
    • introspectType

      protected void introspectType()
    • introspectSupertypes

      protected void introspectSupertypes()
    • introspectTypeMirror

      protected void introspectTypeMirror(TypeMirror typeMirror)
    • collectTypeHierarchy

      protected TypeHierarchyCollector collectTypeHierarchy(TypeMirror typeMirror)