|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mule.devkit.model.code.Type
org.mule.devkit.model.code.TypeReference
org.mule.devkit.model.code.TypeVariable
public final class TypeVariable
Type variable used to declare generics.
Generifiable| Field Summary |
|---|
| Fields inherited from class org.mule.devkit.model.code.TypeReference |
|---|
EMPTY_ARRAY |
| Method Summary | |
|---|---|
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. |
| Methods inherited from class org.mule.devkit.model.code.TypeReference |
|---|
array, array, boxify, erasure, getBaseClass, getBaseClass, getPrimitiveType, getTypeParameters, isAssignableFrom, isParameterized, narrow, narrow, narrow, narrow, narrow, narrow, outer, owner, staticInvoke, staticInvoke, staticRef, staticRef, toString, typeParams, unboxify, wildcard |
| Methods inherited from class org.mule.devkit.model.code.Type |
|---|
binaryName, compareTo, dotclass, elementType, equals, hashCode, isArray, isPrimitive, isReference, parse |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public String name()
TypeReference
name in class TypeReferencejava.lang.String.public String fullName()
Type
fullName in class 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()
TypeReference
isInterface in class TypeReferencepublic boolean isAbstract()
TypeReference
isAbstract in class TypeReferencepublic void declare(Formatter f)
declare in interface Declaration
protected 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 TypeReference
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||