| |
|
| xtc.type.Type xtc.type.DerivedT xtc.type.FunctionOrMethodT
All known Subclasses: xtc.type.MethodT, xtc.type.FunctionT,
FunctionOrMethodT | abstract public class FunctionOrMethodT extends DerivedT (Code) | | The superclass of function and method types.
author: Robert Grimm version: $Revision: 1.22 $ |
exceptions | protected List<Type> exceptions(Code) | | The optional list of exceptions.
|
parameters | protected List<Type> parameters(Code) | | The list of parameter types.
|
result | protected Type result(Code) | | The result type.
|
varargs | protected boolean varargs(Code) | | The flag for whether the function accepts a variable number of
arguments.
|
FunctionOrMethodT | public FunctionOrMethodT(Type template, Type result, String name, List<Type> parameters, boolean varargs, List<Type> exceptions)(Code) | | Create a new function or method type.
Parameters: template - The type whose annotations to copy. Parameters: result - The result type. Parameters: name - The name. Parameters: parameters - The list of parameter types. Parameters: varargs - The flag for accepting a variable number of arguments. Parameters: exceptions - The list of exception types. |
getExceptions | public List<Type> getExceptions()(Code) | | Get the list of exceptions.
The list of exceptions. |
getName | public String getName()(Code) | | Get the name.
The name. |
getParameters | public List<Type> getParameters()(Code) | | Get the list of parameter types.
The parameter types. |
getResult | public Type getResult()(Code) | | Get the result type.
The result type. |
hashCode | public int hashCode()(Code) | | |
isVarArgs | public boolean isVarArgs()(Code) | | Determine whether this function accepts a variable number of
arguments.
true if this function accepts a variablenumber of arguments. |
setExceptions | public void setExceptions(List<Type> exceptions)(Code) | | Set the list of parameter types.
Parameters: exceptions - The list of exception types. throws: IllegalStateException - Signals that this type is sealed. |
setParameters | public void setParameters(List<Type> parameters)(Code) | | Set the list of parameter types.
Parameters: parameters - The list of parameter types. throws: IllegalStateException - Signals that this type is sealed. |
setResult | public void setResult(Type result)(Code) | | Set the result type.
Parameters: result - The new result type. throws: IllegalStateException - Signals that this type is sealed. |
Methods inherited from xtc.type.DerivedT | public boolean isDerived()(Code)(Java Doc)
|
|
|
|