public class DefaultGenericType extends java.lang.Object implements GenericType
Constructor and Description |
---|
DefaultGenericType(java.lang.Class<?> typeClass)
Default constructor
|
Modifier and Type | Method and Description |
---|---|
void |
addParameter(GenericType parameter)
Adds a child type node
|
java.util.List<GenericType> |
getParameterList()
Argument types [0, n]
|
java.lang.Class<?> |
getTypeClass()
Class of this particular type
|
java.lang.String |
toString() |
public DefaultGenericType(java.lang.Class<?> typeClass)
typeClass
- the class, may be abstract, an interface or an actual implementationpublic java.lang.Class<?> getTypeClass()
GenericType
getTypeClass
in interface GenericType
public java.util.List<GenericType> getParameterList()
GenericType
getParameterList
in interface GenericType
public void addParameter(GenericType parameter)
GenericType
addParameter
in interface GenericType
parameter
- type node to addpublic java.lang.String toString()
toString
in class java.lang.Object