IType and can perform equivalency checks.
| Modifier and Type | Field and Description |
|---|---|
| private IType | objectType
The |
| private IType | stringType
The |
| private final ITypeRepository | typeRepository
The external form of the provider of |
| private IType | unknownType
The |
| Access | Constructor and Description |
|---|---|
| public | TypeHelper(ITypeRepository
The repository used to retrieve the types typeRepository)Creates a new |
| Modifier and Type | Method and Description |
|---|---|
| public IType | |
| public IType | |
| public IType | |
| public IType | |
| public IType | |
| public IType | Returns: The external form of theCollection classRetrieves the |
| public IType | Returns: The givenIType if it's not a primitive type otherwise the primitive type will
have been converted into the class of that primitiveType to possibly convert from the primitive into the class type)Converts the given |
| public IType | |
| public IType | |
| public IType | |
| public IType | |
| public IType | |
| public IType | |
| public ITypeRepository | Returns: The external form of the provider ofITypes.Returns the |
| public IType | |
| public boolean | |
| public boolean | isCollectionType(IType
The type to check it's assignability type)Determines whether the given |
| public boolean | |
| public boolean | |
| public boolean | isFloatingType(IType
The type to check it's assignability type)Determines whether the given |
| public boolean | isIntegralType(IType
The type to check it's assignability type)Determines whether the given |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | isPrimitiveType(IType
The type to check it's assignability type)Determines whether the given |
| public boolean | isStringType(IType
The type to check it's assignability type)Determines whether the given |
| public IType | |
| public IType | |
| public IType | |
| public IType | |
| public IType | |
| public ITypeDeclaration | |
| public IType | Returns: The external form of the primitive booleanRetrieves the |
| public IType | Returns: The external form of the primitive byteRetrieves the |
| public IType | Returns: The external form of the primitive charRetrieves the |
| public IType | Returns: The external form of the primitive doubleRetrieves the |
| public IType | Returns: The external form of the primitive floatRetrieves the |
| public IType | Returns: The external form of the primitive intRetrieves the |
| public IType | Returns: The external form of the primitive longRetrieves the |
| public IType | Returns: The external form of the primitive shortRetrieves the |
| public IType | |
| public IType | |
| public IType | |
| public IType | toBooleanType(IType
The type)IType to possibly convertConverts the given |
| public IType | toByteType(IType
The type)IType to possibly convertConverts the given |
| public IType | toDoubleType(IType
The type)IType to possibly convertConverts the given |
| public IType | toFloatType(IType
The type)IType to possibly convertConverts the given |
| public IType | toIntegerType(IType
The type)IType to possibly convertConverts the given |
| public IType | toShortType(IType
The type)IType to possibly convertConverts the given |
| public IType | Returns: The external form of an unknown typeRetrieves the |
| public ITypeDeclaration | Returns: TheITypeDeclaration of the unknown typeReturns the |
| objectType | back to summary |
|---|---|
| private IType objectType The | |
| stringType | back to summary |
|---|---|
| private IType stringType The | |
| typeRepository | back to summary |
|---|---|
| private final ITypeRepository typeRepository The external form of the provider of | |
| unknownType | back to summary |
|---|---|
| private IType unknownType The | |
| TypeHelper | back to summary |
|---|---|
| public TypeHelper(ITypeRepository typeRepository) Creates a new
| |
| bigDecimal | back to summary |
|---|---|
| public IType bigDecimal() Retrieves the
| |
| bigInteger | back to summary |
|---|---|
| public IType bigInteger() Retrieves the
| |
| booleanType | back to summary |
|---|---|
| public IType booleanType() Retrieves the
| |
| byteType | back to summary |
|---|---|
public IType byteType()
| |
| characterType | back to summary |
|---|---|
| public IType characterType() Retrieves the
| |
| collectionType | back to summary |
|---|---|
| public IType collectionType() Retrieves the
| |
| convertPrimitive | back to summary |
|---|---|
| public IType convertPrimitive(IType type) Converts the given | |
| dateType | back to summary |
|---|---|
public IType dateType()
| |
| doubleType | back to summary |
|---|---|
| public IType doubleType() Retrieves the
| |
| enumType | back to summary |
|---|---|
public IType enumType()
| |
| floatType | back to summary |
|---|---|
| public IType floatType() Retrieves the
| |
| getType | back to summary |
|---|---|
| public IType getType(Class<?> type) Returns the | |
| getType | back to summary |
|---|---|
| public IType getType(String typeName) Retrieves the external class for the given fully qualified class name. | |
| getTypeRepository | back to summary |
|---|---|
| public ITypeRepository getTypeRepository() Returns the
| |
| integerType | back to summary |
|---|---|
| public IType integerType() Retrieves the
| |
| isBooleanType | back to summary |
|---|---|
| public boolean isBooleanType(IType type) | |
| isCollectionType | back to summary |
|---|---|
| public boolean isCollectionType(IType type) Determines whether the given
| |
| isDateType | back to summary |
|---|---|
| public boolean isDateType(IType type) Determines whether the given | |
| isEnumType | back to summary |
|---|---|
| public boolean isEnumType(IType type) | |
| isFloatingType | back to summary |
|---|---|
| public boolean isFloatingType(IType type) Determines whether the given | |
| isIntegralType | back to summary |
|---|---|
| public boolean isIntegralType(IType type) Determines whether the given | |
| isMapType | back to summary |
|---|---|
| public boolean isMapType(IType type) | |
| isNumericType | back to summary |
|---|---|
| public boolean isNumericType(IType type) Determines whether the given | |
| isObjectType | back to summary |
|---|---|
| public boolean isObjectType(IType type) Determines whether the given | |
| isPrimitiveType | back to summary |
|---|---|
| public boolean isPrimitiveType(IType type) Determines whether the given | |
| isStringType | back to summary |
|---|---|
| public boolean isStringType(IType type) Determines whether the given | |
| longType | back to summary |
|---|---|
public IType longType()
| |
| longType | back to summary |
|---|---|
| public IType longType(IType type) Converts the given | |
| mapType | back to summary |
|---|---|
public IType mapType()
| |
| numberType | back to summary |
|---|---|
| public IType numberType() Retrieves the
| |
| objectType | back to summary |
|---|---|
| public IType objectType() Retrieves the
| |
| objectTypeDeclaration | back to summary |
|---|---|
| public ITypeDeclaration objectTypeDeclaration() Returns the
| |
| primitiveBoolean | back to summary |
|---|---|
| public IType primitiveBoolean() Retrieves the
| |
| primitiveByte | back to summary |
|---|---|
| public IType primitiveByte() Retrieves the
| |
| primitiveChar | back to summary |
|---|---|
| public IType primitiveChar() Retrieves the
| |
| primitiveDouble | back to summary |
|---|---|
| public IType primitiveDouble() Retrieves the
| |
| primitiveFloat | back to summary |
|---|---|
| public IType primitiveFloat() Retrieves the
| |
| primitiveInteger | back to summary |
|---|---|
| public IType primitiveInteger() Retrieves the
| |
| primitiveLong | back to summary |
|---|---|
| public IType primitiveLong() Retrieves the
| |
| primitiveShort | back to summary |
|---|---|
| public IType primitiveShort() Retrieves the
| |
| shortType | back to summary |
|---|---|
| public IType shortType() Retrieves the
| |
| stringType | back to summary |
|---|---|
| public IType stringType() Retrieves the
| |
| timestampType | back to summary |
|---|---|
| public IType timestampType() Retrieves the
| |
| toBooleanType | back to summary |
|---|---|
| public IType toBooleanType(IType type) Converts the given | |
| toByteType | back to summary |
|---|---|
| public IType toByteType(IType type) Converts the given | |
| toDoubleType | back to summary |
|---|---|
| public IType toDoubleType(IType type) Converts the given | |
| toFloatType | back to summary |
|---|---|
| public IType toFloatType(IType type) Converts the given | |
| toIntegerType | back to summary |
|---|---|
| public IType toIntegerType(IType type) Converts the given | |
| toShortType | back to summary |
|---|---|
| public IType toShortType(IType type) Converts the given | |
| unknownType | back to summary |
|---|---|
| public IType unknownType() Retrieves the
| |
| unknownTypeDeclaration | back to summary |
|---|---|
| public ITypeDeclaration unknownTypeDeclaration() Returns the
| |