|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.codehaus.jackson.type.JavaType
org.codehaus.jackson.map.type.ArrayType
public final class ArrayType
Array types represent Java arrays, both primitive and object valued.
Further, Object-valued arrays can have element type of any other
legal JavaType.
| Field Summary |
|---|
| Fields inherited from class org.codehaus.jackson.type.JavaType |
|---|
_class, _hashCode |
| Method Summary | |
|---|---|
protected JavaType |
_narrow(java.lang.Class<?> subclass)
Handling of narrowing conversions for arrays is trickier: for now, it is not even allowed. |
protected static void |
addCommonTypes(java.util.Map<java.lang.String,JavaType> types)
Method that can be called to add known simple types into given class-to-type map. |
static ArrayType |
construct(JavaType componentType)
|
boolean |
equals(java.lang.Object o)
|
JavaType |
getComponentType()
|
boolean |
isContainerType()
|
boolean |
isFullyTyped()
Simple types are always fully typed: this requires that no instances are ever created for Collection/Map types. |
JavaType |
narrowContentsBy(java.lang.Class<?> contentClass)
For array types, both main type and content type can be modified; but ultimately they are interchangeable. |
java.lang.String |
toString()
|
| Methods inherited from class org.codehaus.jackson.type.JavaType |
|---|
_assertSubclass, getRawClass, hashCode, hasRawClass, isAbstract, isArrayType, isEnumType, isInterface, isPrimitive, narrowBy |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public static ArrayType construct(JavaType componentType)
protected static void addCommonTypes(java.util.Map<java.lang.String,JavaType> types)
protected JavaType _narrow(java.lang.Class<?> subclass)
_narrow in class JavaTypepublic JavaType narrowContentsBy(java.lang.Class<?> contentClass)
narrowContentsBy in class JavaTypepublic boolean isFullyTyped()
isFullyTyped in class JavaTypepublic boolean isContainerType()
isContainerType in class JavaTypepublic JavaType getComponentType()
public java.lang.String toString()
toString in class JavaTypepublic boolean equals(java.lang.Object o)
equals in class JavaType
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||