X<Y>.
Todo
consider separating the decl and the use.
| Modifier and Type | Field and Description |
|---|---|
| private final List | args
Arguments to those parameters. |
| pack-priv final JClass | basis
A generic class with type parameters. |
| Access | Constructor and Description |
|---|---|
| pack-priv | |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public JClass | _extends()
Implements abstract com. Gets the super class of this class. |
| public Iterator | _implements()
Implements abstract com. Iterates all super interfaces directly implemented by this class/interface. |
| public JPackage | _package()
Implements abstract com. Gets the package to which this class belongs. |
| public String | |
| public boolean | equals(Object obj)
Overrides java. Indicates whether some other object is "equal to" this one. |
| public JClass | |
| public String | |
| public void | generate(JFormatter f)
Overrides com. Implements com.
|
| public List | getTypeParameters()
Overrides com. If this class is parameterized, return the type parameter of the given index. |
| public int | |
| public boolean | isAbstract()
Implements abstract com. Checks if this class is an abstract class. |
| public boolean | |
| public boolean | isInterface()
Implements abstract com. Checks if this object represents an interface. |
| public String | |
| public JClass | narrow(JClass clazz)
Overrides com. "Narrows" a generic class to a concrete class by specifying a type argument. |
| public JClass | |
| pack-priv void | printLink(JFormatter f)
Overrides com. Prints the class name in javadoc @link format. |
| protected JClass | substituteParams(JTypeVar[] variables, List<JClass> bindings)
Implements abstract com. Substitutes the type variables with their actual arguments. |
| args | back to summary |
|---|---|
| private final List<JClass> args Arguments to those parameters. | |
| basis | back to summary |
|---|---|
| pack-priv final JClass basis A generic class with type parameters. | |
| JNarrowedClass | back to summary |
|---|---|
| pack-priv JNarrowedClass(JClass basis, JClass arg) | |
| JNarrowedClass | back to summary |
|---|---|
| pack-priv JNarrowedClass(JClass basis, List<JClass> args) | |
| _extends | back to summary |
|---|---|
| public JClass _extends() Implements abstract com. Doc from com. Gets the super class of this class.
| |
| _implements | back to summary |
|---|---|
| public Iterator Implements abstract com. Doc from com. Iterates all super interfaces directly implemented by this class/interface.
| |
| _package | back to summary |
|---|---|
| public JPackage _package() Implements abstract com. Doc from com. Gets the package to which this class belongs. Todo shall we move move this down?
| |
| binaryName | back to summary |
|---|---|
| public String binaryName() Overrides com. Doc from com. Gets the binary name of the type. See http://java.sun.com/docs/books/jls/third_edition/html/binaryComp.html#44909
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object obj) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes.
| |
| erasure | back to summary |
|---|---|
| public JClass erasure() Overrides com. Doc from com. Returns the erasure of this type.
| |
| fullName | back to summary |
|---|---|
| public String fullName() Implements abstract com. Doc from com. Gets the full name of the type. See http://java.sun.com/docs/books/jls/second_edition/html/names.doc.html#25430 for the details.
| |
| generate | back to summary |
|---|---|
| public void generate(JFormatter f) Overrides com. Implements com.
| |
| getTypeParameters | back to summary |
|---|---|
| public List Overrides com. Doc from com. If this class is parameterized, return the type parameter of the given index.
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| isAbstract | back to summary |
|---|---|
| public boolean isAbstract() Implements abstract com. Doc from com. Checks if this class is an abstract class.
| |
| isArray | back to summary |
|---|---|
| public boolean isArray() Overrides com. Doc from com. Tell whether or not this is an array type.
| |
| isInterface | back to summary |
|---|---|
| public boolean isInterface() Implements abstract com. Doc from com. Checks if this object represents an interface.
| |
| name | back to summary |
|---|---|
| public String name() Implements abstract com. Doc from com. Gets the name of this class.
| |
| narrow | back to summary |
|---|---|
| public JClass narrow(JClass clazz) Overrides com. Doc from com. "Narrows" a generic class to a concrete class by specifying a type argument.
| |
| narrow | back to summary |
|---|---|
| public JClass narrow(JClass... clazz) Overrides com.
| |
| printLink | back to summary |
|---|---|
| pack-priv void printLink(JFormatter f) Overrides com. Doc from com. Prints the class name in javadoc @link format.
| |
| substituteParams | back to summary |
|---|---|
| protected JClass substituteParams(JTypeVar[] variables, List<JClass> bindings) Implements abstract com. Doc from com. Substitutes the type variables with their actual arguments.
For example, when this class is This method needs to work recursively.
| |