|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectxtc.tree.Node
xtc.type.Type
xtc.type.DerivedT
xtc.type.FunctionOrMethodT
xtc.type.MethodT
public class MethodT
A method type.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class xtc.type.Type |
|---|
Type.Tag |
| Field Summary |
|---|
| Fields inherited from class xtc.type.FunctionOrMethodT |
|---|
exceptions, name, parameters, result, varargs |
| Constructor Summary | |
|---|---|
MethodT(Type result,
java.lang.String name,
java.util.List<Type> parameters,
boolean varargs,
java.util.List<Type> exceptions)
Create a new method type. |
|
MethodT(Type template,
Type result,
java.lang.String name,
java.util.List<Type> parameters,
boolean varargs,
java.util.List<Type> exceptions)
Create a new method type. |
|
| Method Summary | |
|---|---|
MethodT |
copy()
Create a deep copy of this type. |
boolean |
isMethod()
Determine whether this type is a method. |
Type.Tag |
tag()
Get this type's tag. |
MethodT |
toMethod()
Get this type as a method. |
| Methods inherited from class xtc.type.FunctionOrMethodT |
|---|
equals, getExceptions, getName, getParameters, getResult, hashCode, isVarArgs, seal, setExceptions, setParameters, setResult, write |
| Methods inherited from class xtc.type.DerivedT |
|---|
isDerived |
| Methods inherited from class xtc.tree.Node |
|---|
add, add, addAll, addAll, addAll, addAll, addAllTo, addNode, contains, get, getBoolean, getBooleanProperty, getGeneric, getList, getNode, getProperty, getString, getStringProperty, getTokenText, hasName, hasProperty, hasTraversal, indexOf, isAnnotation, isEmpty, isGeneric, isList, isToken, iterator, lastIndexOf, remove, set, size, strip, toAnnotation, toList, toString, toToken |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public MethodT(Type result,
java.lang.String name,
java.util.List<Type> parameters,
boolean varargs,
java.util.List<Type> exceptions)
result - The result type.name - The name.parameters - The list of parameter types.varargs - The flag for accepting a variable number of
arguments.exceptions - The list of exceptions, which must not be
null
public MethodT(Type template,
Type result,
java.lang.String name,
java.util.List<Type> parameters,
boolean varargs,
java.util.List<Type> exceptions)
template - The type whose annotations to copy.result - The result type.name - The name.parameters - The list of parameter types.varargs - The flag for accepting a variable number of
arguments.exceptions - The list of exceptions, which must not be
null| Method Detail |
|---|
public MethodT copy()
Type
copy in class Typepublic Type.Tag tag()
Type
tag in class TypeType.wtag()public boolean isMethod()
Type
isMethod in class Typetrue if this type is a method.public MethodT toMethod()
Type
toMethod in class Type
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||