public class JavaTypeInfo
extends org.fabric3.api.model.type.ModelObject
JavaTypeInfos.
Non-generic types have a raw type and empty parameter type information. For example:
List<String> is represented as JavaTypeInfo(raw: List, [TypeInfo(raw: String)])
List<List<String>> is represented as JavaTypeInfo(raw: List, [TypeInfo(raw: List, [TypeInfo(raw: String)])])
Note that unbound TypeVariables and WildCardTypes will be evaluated using their raw type.| Constructor and Description |
|---|
JavaTypeInfo(java.lang.Class<?> rawType)
Constructor for a non-generic type or unbound type.
|
JavaTypeInfo(java.lang.Class<?> rawType,
java.util.List<JavaTypeInfo> parameterTypeInfos)
Constructor for a generic type.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
java.util.List<JavaTypeInfo> |
getParameterTypesInfos()
Returns the resolved parameter types or an empty list if the type is a generic or unbound type.
|
java.lang.Class<?> |
getRawType()
Returns the raw type for a generic type declaration or the type of a non generic.
|
int |
hashCode() |
java.lang.String |
toString() |
public JavaTypeInfo(java.lang.Class<?> rawType)
rawType - the non-generic type or unbound type.public JavaTypeInfo(java.lang.Class<?> rawType,
java.util.List<JavaTypeInfo> parameterTypeInfos)
rawType - the raw type of the generic typeparameterTypeInfos - the resolved parameter type information for the generic type.public java.lang.Class<?> getRawType()
List will be returned for
List<String> and Integer will be returned for the non-generic type Integer.public java.util.List<JavaTypeInfo> getParameterTypesInfos()
Strings will be
returned for List<String>.public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object