Java Doc for EnumT.java in  » Parser » Rats-Parser-Generators » xtc » type » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Parser » Rats Parser Generators » xtc.type 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


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 $



Constructor Summary
public  EnumT(String name)
     Create a new, incomplete enum type.
public  EnumT(Type type, String name, List<EnumeratorT> enumerators)
     Create a new enum type.
public  EnumT(Type template, Type type, Nonce nonce, String name, List<EnumeratorT> enumerators)
     Create a new enum type.

Method Summary
public  EnumTcopy()
    
public  booleanequals(Object o)
     Determine whether this type equals the specified object.
public  EnumeratorTgetMember(int index)
    
public  intgetMemberCount()
    
public  List<EnumeratorT>getMembers()
    
public  StringgetName()
    
public  NoncegetNonce()
    
public  booleanhasEnum()
    
public  booleanhasName(String name)
    
public  booleanhasTagged()
    
public  inthashCode()
    
public  booleanisEnum()
    
public  booleanisUnnamed()
    
public  Typelookup(String name)
    
public  Typeseal()
     Seal this enum.
public  voidsetMembers(List<EnumeratorT> enumerators)
     Set the list of EnumeratorT enumerators .
public  voidsetType(Type type)
     Set the type.
public  EnumTtoEnum()
    
public  TaggedtoTagged()
    
public  voidwrite(Appendable out)
    
public  Type.Tagwtag()
    


Constructor Detail
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.




Method Detail
copy
public EnumT copy()(Code)



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.



getMember
public EnumeratorT getMember(int index)(Code)



getMemberCount
public int getMemberCount()(Code)



getMembers
public List<EnumeratorT> getMembers()(Code)



getName
public String getName()(Code)



getNonce
public Nonce getNonce()(Code)



hasEnum
public boolean hasEnum()(Code)



hasName
public boolean hasName(String name)(Code)



hasTagged
public boolean hasTagged()(Code)



hashCode
public int hashCode()(Code)



isEnum
public boolean isEnum()(Code)



isUnnamed
public boolean isUnnamed()(Code)



lookup
public Type lookup(String name)(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.



setType
public void setType(Type type)(Code)
Set the type. This method EnumeratorT.setType(Type) sets the enumerators' types to the specified type, which should be an IntegerT integer . When modifying an incomplete type, this method should be called after the appropriate call to EnumT.setMembers(List) .
Parameters:
  type - The type.
throws:
  IllegalStateException - Signals that this type is sealed.



toEnum
public EnumT toEnum()(Code)



toTagged
public Tagged toTagged()(Code)



write
public void write(Appendable out) throws IOException(Code)



wtag
public Type.Tag wtag()(Code)



Methods inherited from xtc.type.WrappedT
public boolean equals(Object o)(Code)(Java Doc)
public Attribute getAttribute(String name, boolean forward)(Code)(Java Doc)
public Constant getConstant(boolean forward)(Code)(Java Doc)
public Language getLanguage(boolean forward)(Code)(Java Doc)
public Location getLocation(boolean forward)(Code)(Java Doc)
public String getScope(boolean forward)(Code)(Java Doc)
public Reference getShape(boolean forward)(Code)(Java Doc)
public Type getType()(Code)(Java Doc)
public boolean hasAlias()(Code)(Java Doc)
public boolean hasAnnotated()(Code)(Java Doc)
public boolean hasAttribute(Attribute att, boolean forward)(Code)(Java Doc)
public boolean hasConstant(boolean forward)(Code)(Java Doc)
public boolean hasEnum()(Code)(Java Doc)
public boolean hasEnumerator()(Code)(Java Doc)
public boolean hasInstantiated()(Code)(Java Doc)
public boolean hasLanguage(boolean forward)(Code)(Java Doc)
public boolean hasLocation(boolean forward)(Code)(Java Doc)
public boolean hasParameterized()(Code)(Java Doc)
public boolean hasScope(boolean forward)(Code)(Java Doc)
public boolean hasShape(boolean forward)(Code)(Java Doc)
public boolean hasTagged()(Code)(Java Doc)
public boolean hasVariable()(Code)(Java Doc)
public int hashCode()(Code)(Java Doc)
public boolean isWrapped()(Code)(Java Doc)
public Type resolve()(Code)(Java Doc)
public Type seal()(Code)(Java Doc)
public void setType(Type type)(Code)(Java Doc)
public Type.Tag tag()(Code)(Java Doc)
public AliasT toAlias()(Code)(Java Doc)
public AnnotatedT toAnnotated()(Code)(Java Doc)
public EnumT toEnum()(Code)(Java Doc)
public EnumeratorT toEnumerator()(Code)(Java Doc)
public InstantiatedT toInstantiated()(Code)(Java Doc)
public ParameterizedT toParameterized()(Code)(Java Doc)
public Tagged toTagged()(Code)(Java Doc)
public VariableT toVariable()(Code)(Java Doc)
public WrappedT toWrapped()(Code)(Java Doc)

Fields inherited from xtc.type.Type
List<Attribute> attributes(Code)(Java Doc)
Constant constant(Code)(Java Doc)
Language language(Code)(Java Doc)
String scope(Code)(Java Doc)
boolean sealed(Code)(Java Doc)
Reference shape(Code)(Java Doc)

Methods inherited from xtc.type.Type
public void addAttribute(Attribute att)(Code)(Java Doc)
public Type annotate()(Code)(Java Doc)
public Type attribute(Attribute att)(Code)(Java Doc)
public Type attribute(List<Attribute> attributes)(Code)(Java Doc)
public Type attribute(Type template)(Code)(Java Doc)
public List<Attribute> attributes()(Code)(Java Doc)
public static Type cast(Object type)(Code)(Java Doc)
protected void checkNotSealed()(Code)(Java Doc)
public Type constant(boolean value)(Code)(Java Doc)
public Type constant(Object value)(Code)(Java Doc)
abstract public Type copy()(Code)(Java Doc)
public static List<T> copy(List<T> types)(Code)(Java Doc)
public Type deannotate()(Code)(Java Doc)
public Attribute getAttribute(String name)(Code)(Java Doc)
public Attribute getAttribute(String name, boolean forward)(Code)(Java Doc)
public Constant getConstant()(Code)(Java Doc)
public Constant getConstant(boolean forward)(Code)(Java Doc)
public Language getLanguage()(Code)(Java Doc)
public Language getLanguage(boolean forward)(Code)(Java Doc)
public Location getLocation()(Code)(Java Doc)
public Location getLocation(boolean forward)(Code)(Java Doc)
public String getScope()(Code)(Java Doc)
public String getScope(boolean forward)(Code)(Java Doc)
public Reference getShape()(Code)(Java Doc)
public Reference getShape(boolean forward)(Code)(Java Doc)
public boolean hasAlias()(Code)(Java Doc)
public boolean hasAnnotated()(Code)(Java Doc)
public boolean hasAttribute(Attribute att)(Code)(Java Doc)
public boolean hasAttribute(Attribute att, boolean forward)(Code)(Java Doc)
public boolean hasAttribute(String name)(Code)(Java Doc)
public boolean hasAttribute(String name, boolean forward)(Code)(Java Doc)
public boolean hasAttributes()(Code)(Java Doc)
public boolean hasConstant()(Code)(Java Doc)
public boolean hasConstant(boolean forward)(Code)(Java Doc)
public boolean hasEnum()(Code)(Java Doc)
public boolean hasEnumerator()(Code)(Java Doc)
public boolean hasError()(Code)(Java Doc)
public boolean hasInstantiated()(Code)(Java Doc)
public boolean hasLanguage()(Code)(Java Doc)
public boolean hasLanguage(boolean forward)(Code)(Java Doc)
public boolean hasLocation()(Code)(Java Doc)
public boolean hasLocation(boolean forward)(Code)(Java Doc)
public boolean hasParameterized()(Code)(Java Doc)
public boolean hasScope()(Code)(Java Doc)
public boolean hasScope(boolean forward)(Code)(Java Doc)
public boolean hasShape()(Code)(Java Doc)
public boolean hasShape(boolean forward)(Code)(Java Doc)
public boolean hasStructOrUnion()(Code)(Java Doc)
public boolean hasTag(Tag tag)(Code)(Java Doc)
public boolean hasTagged()(Code)(Java Doc)
public boolean hasVariable()(Code)(Java Doc)
public boolean hasWTag(Tag tag)(Code)(Java Doc)
public boolean isAlias()(Code)(Java Doc)
public boolean isAnnotated()(Code)(Java Doc)
public boolean isArray()(Code)(Java Doc)
public boolean isBoolean()(Code)(Java Doc)
public boolean isClass()(Code)(Java Doc)
public boolean isConcrete()(Code)(Java Doc)
public boolean isDerived()(Code)(Java Doc)
public boolean isEnum()(Code)(Java Doc)
public boolean isEnumerator()(Code)(Java Doc)
public boolean isError()(Code)(Java Doc)
public boolean isFloat()(Code)(Java Doc)
public boolean isFunction()(Code)(Java Doc)
public boolean isInstantiated()(Code)(Java Doc)
public boolean isInteger()(Code)(Java Doc)
public boolean isInterface()(Code)(Java Doc)
public boolean isInternal()(Code)(Java Doc)
public boolean isLabel()(Code)(Java Doc)
public boolean isMethod()(Code)(Java Doc)
public boolean isNumber()(Code)(Java Doc)
public boolean isPackage()(Code)(Java Doc)
public boolean isParameter()(Code)(Java Doc)
public boolean isParameterized()(Code)(Java Doc)
public boolean isPointer()(Code)(Java Doc)
public boolean isSealed()(Code)(Java Doc)
public boolean isStruct()(Code)(Java Doc)
public boolean isTuple()(Code)(Java Doc)
public boolean isUnion()(Code)(Java Doc)
public boolean isUnit()(Code)(Java Doc)
public boolean isVariable()(Code)(Java Doc)
public boolean isVariant()(Code)(Java Doc)
public boolean isVoid()(Code)(Java Doc)
public boolean isWildcard()(Code)(Java Doc)
public boolean isWrapped()(Code)(Java Doc)
public Type language(Language language)(Code)(Java Doc)
public Type locate(Location location)(Code)(Java Doc)
public Type locate(Locatable locatable)(Code)(Java Doc)
public void mark(Node node)(Code)(Java Doc)
public Set<String> properties()(Code)(Java Doc)
public boolean removeAttribute(Attribute att)(Code)(Java Doc)
public Object removeProperty(String name)(Code)(Java Doc)
public Type resolve()(Code)(Java Doc)
public static Type resolve(Object type)(Code)(Java Doc)
public Type scope(String scope)(Code)(Java Doc)
public Type seal()(Code)(Java Doc)
public static List<T> seal(List<T> types)(Code)(Java Doc)
public void setLocation(Location location)(Code)(Java Doc)
public void setLocation(Locatable locatable)(Code)(Java Doc)
public Object setProperty(String name, Object value)(Code)(Java Doc)
public Type shape(boolean isStatic, String name)(Code)(Java Doc)
public Type shape(Reference shape)(Code)(Java Doc)
abstract public Tag tag()(Code)(Java Doc)
public AliasT toAlias()(Code)(Java Doc)
public AnnotatedT toAnnotated()(Code)(Java Doc)
public ArrayT toArray()(Code)(Java Doc)
public BooleanT toBoolean()(Code)(Java Doc)
public ClassT toClass()(Code)(Java Doc)
public EnumT toEnum()(Code)(Java Doc)
public EnumeratorT toEnumerator()(Code)(Java Doc)
public FloatT toFloat()(Code)(Java Doc)
public FunctionT toFunction()(Code)(Java Doc)
public InstantiatedT toInstantiated()(Code)(Java Doc)
public IntegerT toInteger()(Code)(Java Doc)
public InterfaceT toInterface()(Code)(Java Doc)
public InternalT toInternal()(Code)(Java Doc)
public LabelT toLabel()(Code)(Java Doc)
public MethodT toMethod()(Code)(Java Doc)
public NumberT toNumber()(Code)(Java Doc)
public PackageT toPackage()(Code)(Java Doc)
public Parameter toParameter()(Code)(Java Doc)
public ParameterizedT toParameterized()(Code)(Java Doc)
public PointerT toPointer()(Code)(Java Doc)
public StructT toStruct()(Code)(Java Doc)
public Tagged toTagged()(Code)(Java Doc)
public TupleT toTuple()(Code)(Java Doc)
public UnionT toUnion()(Code)(Java Doc)
public UnitT toUnit()(Code)(Java Doc)
public VariableT toVariable()(Code)(Java Doc)
public VariantT toVariant()(Code)(Java Doc)
public VoidT toVoid()(Code)(Java Doc)
public Wildcard toWildcard()(Code)(Java Doc)
public WrappedT toWrapped()(Code)(Java Doc)
public void trace(Runtime runtime)(Code)(Java Doc)
public Tag wtag()(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.