|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.thoughtworks.qdox.model.Type
public class Type
Field Summary | |
---|---|
static Type[] |
EMPTY_ARRAY
|
static Type |
VOID
|
Constructor Summary | |
---|---|
Type(String fullName)
|
|
Type(String fullName,
int dimensions)
|
|
Type(String fullName,
int dimensions,
JavaClassParent context)
|
|
Type(String fullName,
String name,
int dimensions,
JavaClassParent context)
|
|
Type(String fullName,
TypeDef typeDef,
int dimensions,
JavaClassParent context)
|
Method Summary | |
---|---|
int |
compareTo(Object o)
|
static Type |
createUnresolved(String name,
int dimensions,
JavaClassParent context)
|
static Type |
createUnresolved(TypeDef typeDef,
int dimensions,
JavaClassParent context)
|
static Type |
createUnresolved(TypeDef typeDef,
JavaClassParent context)
|
boolean |
equals(Object obj)
|
int |
getDimensions()
Returns the depth of this array, 0 if it's not an array |
String |
getFullQualifiedName()
Deprecated. instead use getFullyQualifiedName() |
String |
getFullyQualifiedName()
Returns the FQN of an Object or the handler of a Type If the name of the can't be resolved based on the imports and the classes on the classpath the name will be returned InnerClasses will use the $ sign Some examples how names will be translated |
String |
getGenericValue()
The FQN representation of an Object for code usage This implementation ignores generics Some examples how Objects will be translated |
protected String |
getGenericValue(TypeVariable[] typeVariableList)
|
JavaClass |
getJavaClass()
|
JavaClassParent |
getJavaClassParent()
|
protected String |
getResolvedGenericValue(TypeVariable[] typeParameters)
|
protected String |
getResolvedValue(TypeVariable[] typeParameters)
|
String |
getValue()
The FQN representation of an Object for code usage This implementation ignores generics Some examples how Objects will be translated |
int |
hashCode()
|
boolean |
isA(Type type)
|
boolean |
isArray()
Returns true if this Type is an array |
boolean |
isPrimitive()
|
boolean |
isResolved()
Checks if the FQN of this Type is resolved |
boolean |
isVoid()
|
String |
toGenericString()
Returns getGenericValue() extended with the array information |
String |
toString()
Returns getValue() extended with the array information |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final Type[] EMPTY_ARRAY
public static final Type VOID
Constructor Detail |
---|
public Type(String fullName, String name, int dimensions, JavaClassParent context)
public Type(String fullName, TypeDef typeDef, int dimensions, JavaClassParent context)
public Type(String fullName, int dimensions, JavaClassParent context)
public Type(String fullName, int dimensions)
public Type(String fullName)
Method Detail |
---|
public static Type createUnresolved(String name, int dimensions, JavaClassParent context)
public static Type createUnresolved(TypeDef typeDef, int dimensions, JavaClassParent context)
public static Type createUnresolved(TypeDef typeDef, JavaClassParent context)
public JavaClassParent getJavaClassParent()
public String getFullQualifiedName()
public String getFullyQualifiedName()
Object > java.lang.Object java.util.List > java.util.List ? > ? T > T anypackage.Outer.Inner > anypackage.Outer$Inner
public String getValue()
Object > java.lang.object java.util.List> java.util.List ? > ? T > T anypackage.Outer.Inner > anypackage.Outer.Inner
public String getGenericValue()
Object > java.lang.object java.util.List> java.util.List ? > ? T > T anypackage.Outer.Inner > anypackage.Outer.Inner
protected String getGenericValue(TypeVariable[] typeVariableList)
protected String getResolvedValue(TypeVariable[] typeParameters)
protected String getResolvedGenericValue(TypeVariable[] typeParameters)
public boolean isResolved()
public int compareTo(Object o)
compareTo
in interface Comparable
Comparable.compareTo(Object)
public boolean isArray()
public int getDimensions()
public String toString()
toString
in class Object
public String toGenericString()
Object > java.lang.Object Object[] > java.lang.Object[] List
public boolean equals(Object obj)
equals
in class Object
public int hashCode()
hashCode
in class Object
public JavaClass getJavaClass()
public boolean isA(Type type)
public boolean isPrimitive()
public boolean isVoid()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |