public final class TypeVariable extends TypeReference implements Declaration
GenerifiableEMPTY_ARRAY| Modifier and Type | Method and Description |
|---|---|
TypeReference |
_extends()
Returns the class bound of this variable.
|
Iterator<TypeReference> |
_implements()
Returns the interface bounds of this variable.
|
GeneratedPackage |
_package()
Gets the package to which this class belongs.
|
TypeVariable |
bound(TypeReference c)
Adds a bound to this variable.
|
void |
declare(Formatter f)
Prints out the declaration of the variable.
|
String |
fullName()
Gets the full name of the type.
|
void |
generate(Formatter f) |
boolean |
isAbstract()
Checks if this class is an abstract class.
|
boolean |
isInterface()
Checks if this object represents an interface.
|
String |
name()
Gets the name of this class.
|
protected TypeReference |
substituteParams(TypeVariable[] variables,
List<TypeReference> bindings)
Substitutes the type variables with their actual arguments.
|
array, array, boxify, erasure, getBaseClass, getBaseClass, getPrimitiveType, getTypeParameters, isAssignableFrom, isParameterized, narrow, narrow, narrow, narrow, narrow, narrow, narrow, outer, owner, staticInvoke, staticInvoke, staticRef, staticRef, toString, typeParams, unboxify, wildcardbinaryName, compareTo, dotclass, elementType, equals, hashCode, isArray, isPrimitive, isReference, parsepublic String name()
TypeReferencename in class TypeReferencejava.lang.String.public String fullName()
Typepublic GeneratedPackage _package()
TypeReference_package in class TypeReferencepublic TypeVariable bound(TypeReference c)
public TypeReference _extends()
Object._extends in class TypeReferenceTypeReference.
Even if no super class is given explicitly or this TypeReference
is not a class, this method still returns
TypeReference for Object.
If this TypeReference represents Object, return null.public Iterator<TypeReference> _implements()
_implements in class TypeReferenceTypeReference objects that represents those interfaces
implemented by this object.public boolean isInterface()
TypeReferenceisInterface in class TypeReferencepublic boolean isAbstract()
TypeReferenceisAbstract in class TypeReferencepublic void declare(Formatter f)
declare in interface Declarationprotected TypeReference substituteParams(TypeVariable[] variables, List<TypeReference> bindings)
TypeReferenceTypeReference
for Map<String,Map<Integer>>.
This method needs to work recursively.substituteParams in class TypeReferencepublic void generate(Formatter f)
generate in interface Generablegenerate in class TypeReferenceCopyright © 2010–2015 MuleSoft, Inc.. All rights reserved.