Top Description Fields Constructors Methods
org.joda.convert

pack-priv final Class TypeUtils

extends Object
Class Inheritance
Imports
java.lang.reflect.Array, .ParameterizedType, .Type, java.util.ArrayList, .Collections, .HashMap, .List, .Map

Parse the string format of Guava TypeToken.

This is loaded by reflection only when Guava is on the classpath. It relies on internal methods in Guava that could change in any release.

This parser is incomplete, but handles common cases. It does not handle union types or multi-dimensional arrays.

Field Summary

Modifier and TypeField and Description
private static final String
private static final Map<String, Class<?>>
private static final String

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
private static Type
private static ParameterizedType
newParameterizedType(final Class<?> base, Type... args)

pack-priv static Type

Returns:

the token
parse
(String
the string
str
)

Parses the TypeToken string format.

private static List<String>
private static Type
private static Type
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

EXTENDSback to summary
private static final String EXTENDS
PRIMITIVESback to summary
private static final Map<String, Class<?>> PRIMITIVES
SUPERback to summary
private static final String SUPER

Constructor Detail

TypeUtilsback to summary
private TypeUtils()

Method Detail

doParseback to summary
private static Type doParse(String str) throws Exception
newParameterizedTypeback to summary
private static ParameterizedType newParameterizedType(final Class<?> base, Type... args) throws Exception
parseback to summary
pack-priv static Type parse(String str)

Parses the TypeToken string format.

Parameters
str:String

the string

Returns:Type

the token

splitback to summary
private static List<String> split(String str)
wildExtendsTypeback to summary
private static Type wildExtendsType(Type bound) throws Exception
wildSuperTypeback to summary
private static Type wildSuperType(Type bound) throws Exception