| |
|
| xtc.type.Type xtc.type.WrappedT xtc.type.EnumT
EnumT | public class EnumT extends WrappedT implements Tagged(Code) | | An enumerated type. Note that the list of members for an
enumerated type is the list of enumerators.
author: Robert Grimm version: $Revision: 1.40 $ |
EnumT | public EnumT(String name)(Code) | | Create a new, incomplete enum type. The newly created enum type
has a fresh nonce and
ErrorT.TYPE as its type.
Parameters: name - The name. throws: NullPointerException - Signals a null name. |
EnumT | public EnumT(Type type, String name, List<EnumeratorT> enumerators)(Code) | | Create a new enum type. The newly created enum type has a fresh
nonce.
Parameters: type - The underlying type. Parameters: name - The name. Parameters: enumerators - The enumerators. throws: NullPointerException - Signals a null name. |
EnumT | public EnumT(Type template, Type type, Nonce nonce, String name, List<EnumeratorT> enumerators)(Code) | | Create a new enum type.
Parameters: template - The type whose annotations to copy. Parameters: type - The underlying type. Parameters: nonce - The nonce. Parameters: name - The name. Parameters: enumerators - The enumerators. throws: NullPointerException - Signals a null name. |
equals | public boolean equals(Object o)(Code) | | Determine whether this type equals the specified object. This
enum type equals the specified object if the object is an enum
type with the same nonce.
Parameters: o - The object. true if this type equals the object. |
getMemberCount | public int getMemberCount()(Code) | | |
hasEnum | public boolean hasEnum()(Code) | | |
hasTagged | public boolean hasTagged()(Code) | | |
hashCode | public int hashCode()(Code) | | |
isEnum | public boolean isEnum()(Code) | | |
isUnnamed | public boolean isUnnamed()(Code) | | |
seal | public Type seal()(Code) | | Seal this enum. If this enum is incomplete, i.e., does not have
any enumerators, invocations to this method have no effect.
|
setMembers | public void setMembers(List<EnumeratorT> enumerators)(Code) | | Set the list of
EnumeratorT enumerators . This method
does not change the type of the enumerators.
Parameters: enumerators - The enumerators. throws: IllegalStateException - Signals that this type is sealed. |
|
|
|