JGenerifiable
| Modifier and Type | Field and Description |
|---|---|
| private JClass | |
| private final String |
| 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 JTypeVar | |
| public JClass | |
| public void | declare(JFormatter f)
Implements com. Prints out the declaration of the variable. |
| 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 JClass bound | |
| name | back to summary |
|---|---|
| private final String name | |
| JTypeVar | back to summary |
|---|---|
| pack-priv JTypeVar(JCodeModel owner, String _name) | |
| _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?
| |
| bound | back to summary |
|---|---|
| public JTypeVar bound(JClass c) Adds a bound to this variable.
| |
| bound | back to summary |
|---|---|
public JClass bound()
| |
| declare | back to summary |
|---|---|
| public void declare(JFormatter f) Implements com. Prints out the declaration of the variable.
| |
| 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.
| |