public final class TypeVariable extends TypeReference implements Declaration
Generifiable
EMPTY_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, wildcard
binaryName, compareTo, dotclass, elementType, equals, hashCode, isArray, isPrimitive, isReference, parse
public String name()
TypeReference
name
in class TypeReference
java.lang.String
.public String fullName()
Type
public GeneratedPackage _package()
TypeReference
_package
in class TypeReference
public TypeVariable bound(TypeReference c)
public TypeReference _extends()
Object
._extends
in class TypeReference
TypeReference
.
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 TypeReference
TypeReference
objects that represents those interfaces
implemented by this object.public boolean isInterface()
TypeReference
isInterface
in class TypeReference
public boolean isAbstract()
TypeReference
isAbstract
in class TypeReference
public void declare(Formatter f)
declare
in interface Declaration
protected TypeReference substituteParams(TypeVariable[] variables, List<TypeReference> bindings)
TypeReference
TypeReference
for Map<String,Map<Integer>>
.
This method needs to work recursively.substituteParams
in class TypeReference
public void generate(Formatter f)
generate
in interface Generable
generate
in class TypeReference
Copyright © 2010–2015 MuleSoft, Inc.. All rights reserved.