com.thoughtworks.qdox.model
Class Type
java.lang.Object
com.thoughtworks.qdox.model.Type
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable
- Direct Known Subclasses:
- TypeVariable, WildcardType
public class Type
- extends java.lang.Object
- implements java.lang.Comparable, java.io.Serializable
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
EMPTY_ARRAY
public static final Type[] EMPTY_ARRAY
VOID
public static final Type VOID
name
private java.lang.String name
context
private JavaClassParent context
fullName
private java.lang.String fullName
dimensions
private int dimensions
actualArgumentTypes
private Type[] actualArgumentTypes
Type
public Type(java.lang.String fullName,
java.lang.String name,
int dimensions,
JavaClassParent context)
Type
public Type(java.lang.String fullName,
TypeDef typeDef,
int dimensions,
JavaClassParent context)
Type
public Type(java.lang.String fullName,
int dimensions,
JavaClassParent context)
Type
public Type(java.lang.String fullName,
int dimensions)
Type
public Type(java.lang.String fullName)
createUnresolved
public static Type createUnresolved(java.lang.String name,
int dimensions,
JavaClassParent context)
createUnresolved
public static Type createUnresolved(TypeDef typeDef,
int dimensions,
JavaClassParent context)
createUnresolved
public static Type createUnresolved(TypeDef typeDef,
JavaClassParent context)
getJavaClassParent
public JavaClassParent getJavaClassParent()
getFullQualifiedName
public java.lang.String getFullQualifiedName()
getValue
public java.lang.String getValue()
getGenericValue
public java.lang.String getGenericValue()
- Since:
- 1.8
getGenericValue
protected java.lang.String getGenericValue(TypeVariable[] typeVariableList)
getResolvedValue
protected java.lang.String getResolvedValue(TypeVariable[] typeParameters)
getResolvedGenericValue
protected java.lang.String getResolvedGenericValue(TypeVariable[] typeParameters)
isResolved
public boolean isResolved()
compareTo
public int compareTo(java.lang.Object o)
- Specified by:
compareTo
in interface java.lang.Comparable
- See Also:
Comparable.compareTo(Object)
isArray
public boolean isArray()
getDimensions
public int getDimensions()
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
toGenericString
public java.lang.String toGenericString()
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in class java.lang.Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
getJavaClass
public JavaClass getJavaClass()
isA
public boolean isA(Type type)
- Since:
- 1.3
isPrimitive
public boolean isPrimitive()
- Since:
- 1.6
isVoid
public boolean isVoid()
- Since:
- 1.6