Java Doc for Sequence.java in  » Parser » Rats-Parser-Generators » xtc » parser » 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.parser 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


xtc.parser.Element
   xtc.parser.Sequence

Sequence
public class Sequence extends Element (Code)
A sequence of grammar elements.

A sequence may have an optional name. However, this name is not considered when comparing sequences for equality.
author:
   Robert Grimm
version:
   $Revision: 1.30 $



Field Summary
public  List<Element>elements
     The ordered list of grammar elements.
public  SequenceNamename
     The optional name.

Constructor Summary
public  Sequence()
     Create a new, empty sequence.
public  Sequence(int capacity)
     Create a new, empty sequence with the specified capacity.
public  Sequence(List<Element> elements)
     Create a new sequence.
public  Sequence(SequenceName name, List<Element> elements)
     Create a new sequence.
public  Sequence(Element element)
     Create a new sequence with the specified element.

Method Summary
public  Sequenceadd(Element e)
     Add the specified element to this sequence.
Parameters:
  e - The element to add.
public  SequenceaddAll(List<Element> l)
     Add all elements in the specified list to this sequence.
Parameters:
  l - The list of elements.
public  Sequenceclear()
     Remove all elements from this sequence.
public static  Sequenceensure(Element e)
     Ensure that the specified element is a sequence.
public  booleanequals(Object o)
    
public  Elementget(int idx)
     Get the element at the specified index.
Parameters:
  idx - The index.
public  booleanhasTrailingChoice()
     Determine whether this sequence's last element is an ordered choice.
public  inthashCode()
    
public  booleanisEmpty()
     Determine whether this sequence is empty.
public  intsize()
     Get the size of this sequence.
public  SequencesubSequence(int start)
     Create a new subsequence from the specified start index.
public  SequencesubSequence(int start, int end)
     Create a new subsequence for the specified indices.
Parameters:
  start - The inclusive start index.
Parameters:
  end - The exclusive end index.
public  Tagtag()
    
public  voidwrite(Appendable out)
    

Field Detail
elements
public List<Element> elements(Code)
The ordered list of grammar elements.



name
public SequenceName name(Code)
The optional name.




Constructor Detail
Sequence
public Sequence()(Code)
Create a new, empty sequence.



Sequence
public Sequence(int capacity)(Code)
Create a new, empty sequence with the specified capacity.
Parameters:
  capacity - The capacity.



Sequence
public Sequence(List<Element> elements)(Code)
Create a new sequence.
Parameters:
  elements - The list of elements.



Sequence
public Sequence(SequenceName name, List<Element> elements)(Code)
Create a new sequence.
Parameters:
  name - The name.
Parameters:
  elements - The list of elements.



Sequence
public Sequence(Element element)(Code)
Create a new sequence with the specified element. If the element is another sequence, the new sequence has the same elements but is a copy. Otherwise, the new sequence has the specified element as its only element. In either case, the new sequence has the element's location.
Parameters:
  element - The element.




Method Detail
add
public Sequence add(Element e)(Code)
Add the specified element to this sequence.
Parameters:
  e - The element to add. This sequence.



addAll
public Sequence addAll(List<Element> l)(Code)
Add all elements in the specified list to this sequence.
Parameters:
  l - The list of elements. This sequence.



clear
public Sequence clear()(Code)
Remove all elements from this sequence. This sequence.



ensure
public static Sequence ensure(Element e)(Code)
Ensure that the specified element is a sequence. If the specified element is not a sequence, a new sequence with the specified element as its only element is returned; the newly created sequence has the element's location.
Parameters:
  e - The element. The element in/as a sequence.



equals
public boolean equals(Object o)(Code)



get
public Element get(int idx)(Code)
Get the element at the specified index.
Parameters:
  idx - The index. The element at that position.
throws:
  IndexOutOfBoundsException - Signals that the index is out of range.



hasTrailingChoice
public boolean hasTrailingChoice()(Code)
Determine whether this sequence's last element is an ordered choice. true if the last element is a choice.



hashCode
public int hashCode()(Code)



isEmpty
public boolean isEmpty()(Code)
Determine whether this sequence is empty. true if this is an empty sequence.



size
public int size()(Code)
Get the size of this sequence. The size.



subSequence
public Sequence subSequence(int start)(Code)
Create a new subsequence from the specified start index. The new subsequence ends with the last element of this sequence.
Parameters:
  start - The inclusive start index. The subsequence.
throws:
  IndexOutOfBoundsException - Signals that the index is out of range.



subSequence
public Sequence subSequence(int start, int end)(Code)
Create a new subsequence for the specified indices.
Parameters:
  start - The inclusive start index.
Parameters:
  end - The exclusive end index. The subsequence.
throws:
  IndexOutOfBoundsException - Signals that the index is out of range.



tag
public Tag tag()(Code)



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



Methods inherited from xtc.parser.Element
abstract public Tag tag()(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.