Class TypeIntrospectionBase
- java.lang.Object
-
- org.immutables.value.processor.meta.TypeIntrospectionBase
-
- Direct Known Subclasses:
ValueAttribute,ValueType
public abstract class TypeIntrospectionBase extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected static com.google.common.collect.ImmutableBiMap<java.lang.String,java.lang.String>BOXED_TO_PRIMITIVE_TYPESprivate static java.lang.StringCOMPARABLE_INTERFACE_PREFIXprivate static java.lang.StringENUM_CLASS_PREFIXprotected com.google.common.collect.ImmutableSet<java.lang.String>extendedClassesNamesprotected com.google.common.collect.ImmutableSet<java.lang.String>implementedInterfacesNamesprivate booleanintrospectedprivate booleanisComparableprivate booleanisEnumprivate booleanisOrdinalValueprivate static java.lang.StringORDINAL_VALUE_INTERFACE_PREFIXprivate static java.lang.StringPARCELABLE_INTERFACE_TYPEprotected com.google.common.collect.ImmutableSet<java.lang.String>unresolvedYetArguments
-
Constructor Summary
Constructors Constructor Description TypeIntrospectionBase()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected TypeHierarchyCollectorcollectTypeHierarchy(javax.lang.model.type.TypeMirror typeMirror)protected voidensureTypeIntrospected()java.lang.StringgetDirectSupertype()com.google.common.collect.ImmutableSet<java.lang.String>getExtendedClassesNames()com.google.common.collect.ImmutableSet<java.lang.String>getImplementedInterfacesNames()protected abstract javax.lang.model.type.TypeMirrorinternalTypeMirror()protected voidintrospectSupertypes()protected voidintrospectType()protected voidintrospectTypeMirror(javax.lang.model.type.TypeMirror typeMirror)booleanisComparable()booleanisEnumType()booleanisOrdinalValue()booleanisParcelable()protected static booleanisPrimitiveOrWrapped(java.lang.String name)protected static booleanisPrimitiveType(java.lang.String typeName)protected static booleanisPrimitiveWrappedType(java.lang.String name)booleanisSerializable()protected static java.lang.StringunwrapType(java.lang.String typeName)protected static java.lang.StringwrapType(java.lang.String typeName)
-
-
-
Field Detail
-
PARCELABLE_INTERFACE_TYPE
private static final java.lang.String PARCELABLE_INTERFACE_TYPE
- See Also:
- Constant Field Values
-
COMPARABLE_INTERFACE_PREFIX
private static final java.lang.String COMPARABLE_INTERFACE_PREFIX
-
ENUM_CLASS_PREFIX
private static final java.lang.String ENUM_CLASS_PREFIX
-
ORDINAL_VALUE_INTERFACE_PREFIX
private static final java.lang.String ORDINAL_VALUE_INTERFACE_PREFIX
- See Also:
- Constant Field Values
-
BOXED_TO_PRIMITIVE_TYPES
protected static final com.google.common.collect.ImmutableBiMap<java.lang.String,java.lang.String> BOXED_TO_PRIMITIVE_TYPES
-
introspected
private volatile boolean introspected
-
extendedClassesNames
protected com.google.common.collect.ImmutableSet<java.lang.String> extendedClassesNames
-
implementedInterfacesNames
protected com.google.common.collect.ImmutableSet<java.lang.String> implementedInterfacesNames
-
unresolvedYetArguments
protected com.google.common.collect.ImmutableSet<java.lang.String> unresolvedYetArguments
-
isOrdinalValue
private boolean isOrdinalValue
-
isEnum
private boolean isEnum
-
isComparable
private boolean isComparable
-
-
Method Detail
-
isPrimitiveType
protected static boolean isPrimitiveType(java.lang.String typeName)
-
isPrimitiveWrappedType
protected static boolean isPrimitiveWrappedType(java.lang.String name)
-
isPrimitiveOrWrapped
protected static boolean isPrimitiveOrWrapped(java.lang.String name)
-
wrapType
protected static java.lang.String wrapType(java.lang.String typeName)
-
unwrapType
protected static java.lang.String unwrapType(java.lang.String typeName)
-
internalTypeMirror
protected abstract javax.lang.model.type.TypeMirror internalTypeMirror()
-
ensureTypeIntrospected
protected void ensureTypeIntrospected()
-
getExtendedClassesNames
public com.google.common.collect.ImmutableSet<java.lang.String> getExtendedClassesNames()
-
getImplementedInterfacesNames
public com.google.common.collect.ImmutableSet<java.lang.String> getImplementedInterfacesNames()
-
isParcelable
public boolean isParcelable()
-
isComparable
public boolean isComparable()
-
isOrdinalValue
public boolean isOrdinalValue()
-
isEnumType
public boolean isEnumType()
-
isSerializable
public boolean isSerializable()
-
getDirectSupertype
public java.lang.String getDirectSupertype()
-
introspectType
protected void introspectType()
-
introspectSupertypes
protected void introspectSupertypes()
-
introspectTypeMirror
protected void introspectTypeMirror(javax.lang.model.type.TypeMirror typeMirror)
-
collectTypeHierarchy
protected TypeHierarchyCollector collectTypeHierarchy(javax.lang.model.type.TypeMirror typeMirror)
-
-