Instances of this class can be obtained from JClass#wildcard()
Todo
extend this to cover "? super Integer".
Our modeling of types are starting to look really ugly. ideally it should have been done somewhat like APT, but it's too late now.
| Modifier and Type | Field and Description |
|---|---|
| private final JClass |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public JClass | _extends()
Implements abstract com. Returns the class bound of this variable. |
| public Iterator | _implements()
Implements abstract com. Returns the interface bounds of this variable. |
| public JPackage | _package()
Implements abstract com. Gets the package to which this class belongs. |
| public String | |
| public void | generate(JFormatter f)
Overrides com. Implements com.
|
| public boolean | isAbstract()
Implements abstract com. Checks if this class is an abstract class. |
| public boolean | isInterface()
Implements abstract com. Checks if this object represents an interface. |
| public String | |
| protected JClass | substituteParams(JTypeVar[] variables, List<JClass> bindings)
Implements abstract com. Substitutes the type variables with their actual arguments. |
| bound | back to summary |
|---|---|
| private final JClass bound | |
| JTypeWildcard | back to summary |
|---|---|
| pack-priv JTypeWildcard(JClass bound) | |
| _extends | back to summary |
|---|---|
| public JClass _extends() Implements abstract com. Returns the class bound of this variable.
If no bound is given, this method returns
| |
| _implements | back to summary |
|---|---|
| public Iterator Implements abstract com. Returns the interface bounds of this variable.
| |
| _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?
| |
| 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.
| |
| isAbstract | back to summary |
|---|---|
| public boolean isAbstract() Implements abstract com. Doc from com. Checks if this class is an abstract class.
| |
| 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.
| |
| 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.
| |