| |
|
| xtc.type.Type xtc.type.DerivedT xtc.type.TupleT
TupleT | public class TupleT extends DerivedT (Code) | | A tuple type. Tuples may be either anonymous, without a name, or
named. For named tuples, this class provides accessors to the full
name and the simple name, which is the full name without any
qualifier.
author: Robert Grimm version: $Revision: 1.7 $ |
TupleT | public TupleT()(Code) | | Create a new incomplete and anonymous tuple type.
|
TupleT | public TupleT(List<Type> types)(Code) | | Create a new anonymous tuple type.
Parameters: types - The types. |
TupleT | public TupleT(String name)(Code) | | Create a new incomplete tuple type.
Parameters: name - The name. |
TupleT | public TupleT(String name, Type type)(Code) | | Create a new tuple type.
Parameters: name - The name. Parameters: type - The only element type. |
TupleT | public TupleT(String name, List<Type> types)(Code) | | Create a new tuple type.
Parameters: name - The name. Parameters: types - The element types. |
TupleT | public TupleT(Type template, String name, List<Type> types)(Code) | | Create a new tuple type.
Parameters: template - The type whose annotations to copy. Parameters: name - The name. Parameters: types - The element types. |
getName | public String getName()(Code) | | Get this tuple's name.
The name or null if this tuple is anonymous. |
getSimpleName | public String getSimpleName()(Code) | | Get this tuple's simple name.
The simple name or null if this tuple isanonymous. |
getTypes | public List<Type> getTypes()(Code) | | Get the element types.
The element types. |
hasName | public boolean hasName()(Code) | | Determine whether this tuple has a name.
true if this tuple has a name. |
hasName | public boolean hasName(String name)(Code) | | Determine whether this tuple has the specified name.
Parameters: name - The name. true if this tuple has the name. |
hasSimpleName | public boolean hasSimpleName(String name)(Code) | | Determine whether this tuple has the specified simple name.
Parameters: name - The simple name. true if this tuple has the simple name. |
hashCode | public int hashCode()(Code) | | |
isTuple | public boolean isTuple()(Code) | | |
setTypes | public void setTypes(List<Type> types)(Code) | | Set the element types.
Parameters: types - The new element types. |
Methods inherited from xtc.type.DerivedT | public boolean isDerived()(Code)(Java Doc)
|
|
|
|