Package com.thoughtworks.qdox.model.impl
Class DefaultJavaParameterizedType
- java.lang.Object
-
- com.thoughtworks.qdox.model.impl.DefaultJavaType
-
- com.thoughtworks.qdox.model.impl.DefaultJavaParameterizedType
-
- All Implemented Interfaces:
JavaAnnotatedElement
,JavaClass
,JavaGenericDeclaration
,JavaModel
,JavaParameterizedType
,JavaType
,java.io.Serializable
public class DefaultJavaParameterizedType extends DefaultJavaType implements JavaParameterizedType
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.List<JavaType>
actualArgumentTypes
-
Fields inherited from class com.thoughtworks.qdox.model.impl.DefaultJavaType
fullName, name
-
-
Constructor Summary
Constructors Constructor Description DefaultJavaParameterizedType(java.lang.String fullName, java.lang.String name, int dimensions, TypeResolver typeResolver)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<JavaType>
getActualTypeArguments()
java.lang.String
getGenericCanonicalName()
The canonical name with generic information.java.lang.String
getGenericFullyQualifiedName()
The fully qualified name with generic information.java.lang.String
getGenericValue()
A java5+ representation of the class.void
setActualArgumentTypes(java.util.List<JavaType> actualArgumentTypes)
-
Methods inherited from class com.thoughtworks.qdox.model.impl.DefaultJavaType
equals, getAnnotations, getBeanProperties, getBeanProperties, getBeanProperty, getBeanProperty, getBinaryName, getCanonicalName, getCodeBlock, getComment, getComponentType, getConstructor, getConstructor, getConstructors, getDeclaringClass, getDerivedClasses, getDimensions, getEnumConstantByName, getEnumConstants, getFieldByName, getFields, getFullyQualifiedName, getGenericValue, getImplements, getInitializers, getInterfaces, getJavaClassLibrary, getLineNumber, getMethod, getMethodBySignature, getMethodBySignature, getMethodBySignature, getMethods, getMethods, getMethodsBySignature, getMethodsBySignature, getModifiers, getName, getNamedParameter, getNestedClassByName, getNestedClasses, getPackage, getPackageName, getParentSource, getResolvedFullyQualifiedName, getResolvedGenericFullyQualifiedName, getResolvedGenericValue, getResolvedValue, getSimpleName, getSource, getSuperClass, getSuperJavaClass, getTagByName, getTags, getTagsByName, getTagsByName, getTypeParameters, getValue, hashCode, isA, isA, isA, isAbstract, isAnnotation, isArray, isEnum, isFinal, isInner, isInterface, isPrimitive, isPrivate, isProtected, isPublic, isResolved, isStatic, isVoid, resolve, resolve, toGenericString, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.thoughtworks.qdox.model.JavaType
getBinaryName, getCanonicalName, getFullyQualifiedName, getValue, toGenericString
-
-
-
-
Field Detail
-
actualArgumentTypes
private java.util.List<JavaType> actualArgumentTypes
-
-
Constructor Detail
-
DefaultJavaParameterizedType
public DefaultJavaParameterizedType(java.lang.String fullName, java.lang.String name, int dimensions, TypeResolver typeResolver)
-
-
Method Detail
-
getActualTypeArguments
public java.util.List<JavaType> getActualTypeArguments()
- Specified by:
getActualTypeArguments
in interfaceJavaParameterizedType
-
setActualArgumentTypes
public void setActualArgumentTypes(java.util.List<JavaType> actualArgumentTypes)
-
getGenericValue
public java.lang.String getGenericValue()
A java5+ representation of the class. When including all imports, you should be safe to use this method. Examples:private String fieldA; // getValue() will return "String" private java.lang.String fieldA; // getValue() will return "java.lang.String" private List>String> aList; // getValue() will return "List>String>"
- Specified by:
getGenericValue
in interfaceJavaType
- Overrides:
getGenericValue
in classDefaultJavaType
- Returns:
- the generic name of the class as used in the source
-
getGenericCanonicalName
public java.lang.String getGenericCanonicalName()
The canonical name with generic information.- Specified by:
getGenericCanonicalName
in interfaceJavaType
- Overrides:
getGenericCanonicalName
in classDefaultJavaType
- Returns:
- the generic canonical name
-
getGenericFullyQualifiedName
public java.lang.String getGenericFullyQualifiedName()
The fully qualified name with generic information.- Specified by:
getGenericFullyQualifiedName
in interfaceJavaType
- Overrides:
getGenericFullyQualifiedName
in classDefaultJavaType
- Returns:
- the generic fully qualified name
-
-