Java Doc for Copier.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) 


java.lang.Object
   xtc.tree.Visitor
      xtc.parser.Copier

Copier
public class Copier extends Visitor (Code)
Visitor to copy grammar nodes. This visitor makes deep copies of grammars, modules, productions, and elements. Note that when copying elements, this visitor must be invoked through the Copier.copy(Element) method. Further note that, if the element to be copied contains a generic node value or a generic recursion value, the element must also contain all bindings referenced by that value element. Otherwise, an IllegalArgumentException is signalled.
author:
   Robert Grimm
version:
   $Revision: 1.51 $


Field Summary
protected  List<Binding>source
     The list of source bindings.
protected  List<Binding>target
     The list of target bindings.

Constructor Summary
public  Copier()
     Create a new copier.

Method Summary
public  Tcopy(T e)
     Copy the specified element.
Parameters:
  e - The element.
protected  Bindingmatch(Binding b)
     Match the specified binding with its copy.
Parameters:
  b - The binding.
protected  voidpatch(List<Binding> bindings)
     Patch the specified bindings.
public  Grammarvisit(Grammar g)
     Copy the specified grammar.
public  Modulevisit(Module m)
     Copy the specified module.
public  Commentvisit(Comment c)
     Copy the specified comment.
public  ModuleImportvisit(ModuleImport i)
     Copy the specified module import declaration.
public  ModuleInstantiationvisit(ModuleInstantiation i)
     Copy the specified module instantiation declaration.
public  ModuleModificationvisit(ModuleModification m)
     Copy the specified module modification.
public  ModuleListvisit(ModuleList l)
     Copy the specified module list.
public  FullProductionvisit(FullProduction p)
     Copy the specified full production.
public  AlternativeAdditionvisit(AlternativeAddition p)
     Copy the specified alternative addition.
public  AlternativeRemovalvisit(AlternativeRemoval p)
     Copy the specified alternative removal.
public  ProductionOverridevisit(ProductionOverride p)
     Copy the specified production override.
public  OrderedChoicevisit(OrderedChoice c)
     Copy the specified ordered choice.
public  Repetitionvisit(Repetition r)
     Copy the specified repetition.
public  Optionvisit(Option o)
     Copy the specified option.
public  Sequencevisit(Sequence s)
     Copy the specified sequence.
public  FollowedByvisit(FollowedBy p)
     Copy the specified followed-by predicate.
public  NotFollowedByvisit(NotFollowedBy p)
     Copy the specified not-followed-by predicate.
public  SemanticPredicatevisit(SemanticPredicate p)
     Copy the specified semantic predicate.
public  VoidedElementvisit(VoidedElement v)
     Copy the specified voided element.
public  Bindingvisit(Binding b)
     Copy the specified binding.
public  StringMatchvisit(StringMatch m)
     Copy the specified string match.
public  CharClassvisit(CharClass c)
     Copy the specified character class.
public  CharCasevisit(CharCase c)
     Copy the specified character case.
public  CharSwitchvisit(CharSwitch s)
     Copy the specified character switch.
public  Actionvisit(Action a)
     Copy the specified action.
public  ParserActionvisit(ParserAction pa)
     Copy the specified parser action.
public  ParseTreeNodevisit(ParseTreeNode n)
     Copy the specified parse tree node.
public  BindingValuevisit(BindingValue v)
     Copy the specified binding value.
public  ProperListValuevisit(ProperListValue v)
     Copy the specified proper list value.
public  ActionBaseValuevisit(ActionBaseValue v)
     Copy the specified action base value.
public  GenericNodeValuevisit(GenericNodeValue v)
     Copy the specified generic node value.
public  GenericActionValuevisit(GenericActionValue v)
     Copy the specified generic action value.
public  GenericRecursionValuevisit(GenericRecursionValue v)
     Copy the specified generic recursion value.
public  Elementvisit(Element e)
     Visit the specified element.

Field Detail
source
protected List<Binding> source(Code)
The list of source bindings.



target
protected List<Binding> target(Code)
The list of target bindings.




Constructor Detail
Copier
public Copier()(Code)
Create a new copier.




Method Detail
copy
public T copy(T e)(Code)
Copy the specified element.
Parameters:
  e - The element. A deep copy.
throws:
  IllegalArgumentException - Signals that the specified element is incomplete.



match
protected Binding match(Binding b)(Code)
Match the specified binding with its copy.
Parameters:
  b - The binding. The corresponding copy.
throws:
  IllegalArgumentException - Signals that the specifiedbinding has no copy.



patch
protected void patch(List<Binding> bindings)(Code)
Patch the specified bindings. This method replaces the source bindings in the specified list of bindings with the corresponding copies, thus ensuring that the list contains previously copied bindings.
Parameters:
  bindings - The bindings to patch.



visit
public Grammar visit(Grammar g)(Code)
Copy the specified grammar.



visit
public Module visit(Module m)(Code)
Copy the specified module.



visit
public Comment visit(Comment c)(Code)
Copy the specified comment.



visit
public ModuleImport visit(ModuleImport i)(Code)
Copy the specified module import declaration.



visit
public ModuleInstantiation visit(ModuleInstantiation i)(Code)
Copy the specified module instantiation declaration.



visit
public ModuleModification visit(ModuleModification m)(Code)
Copy the specified module modification.



visit
public ModuleList visit(ModuleList l)(Code)
Copy the specified module list.



visit
public FullProduction visit(FullProduction p)(Code)
Copy the specified full production.



visit
public AlternativeAddition visit(AlternativeAddition p)(Code)
Copy the specified alternative addition.



visit
public AlternativeRemoval visit(AlternativeRemoval p)(Code)
Copy the specified alternative removal.



visit
public ProductionOverride visit(ProductionOverride p)(Code)
Copy the specified production override.



visit
public OrderedChoice visit(OrderedChoice c)(Code)
Copy the specified ordered choice.



visit
public Repetition visit(Repetition r)(Code)
Copy the specified repetition.



visit
public Option visit(Option o)(Code)
Copy the specified option.



visit
public Sequence visit(Sequence s)(Code)
Copy the specified sequence.



visit
public FollowedBy visit(FollowedBy p)(Code)
Copy the specified followed-by predicate.



visit
public NotFollowedBy visit(NotFollowedBy p)(Code)
Copy the specified not-followed-by predicate.



visit
public SemanticPredicate visit(SemanticPredicate p)(Code)
Copy the specified semantic predicate.



visit
public VoidedElement visit(VoidedElement v)(Code)
Copy the specified voided element.



visit
public Binding visit(Binding b)(Code)
Copy the specified binding.



visit
public StringMatch visit(StringMatch m)(Code)
Copy the specified string match.



visit
public CharClass visit(CharClass c)(Code)
Copy the specified character class.



visit
public CharCase visit(CharCase c)(Code)
Copy the specified character case.



visit
public CharSwitch visit(CharSwitch s)(Code)
Copy the specified character switch.



visit
public Action visit(Action a)(Code)
Copy the specified action.



visit
public ParserAction visit(ParserAction pa)(Code)
Copy the specified parser action.



visit
public ParseTreeNode visit(ParseTreeNode n)(Code)
Copy the specified parse tree node.



visit
public BindingValue visit(BindingValue v)(Code)
Copy the specified binding value.



visit
public ProperListValue visit(ProperListValue v)(Code)
Copy the specified proper list value.



visit
public ActionBaseValue visit(ActionBaseValue v)(Code)
Copy the specified action base value.



visit
public GenericNodeValue visit(GenericNodeValue v)(Code)
Copy the specified generic node value.



visit
public GenericActionValue visit(GenericActionValue v)(Code)
Copy the specified generic action value.



visit
public GenericRecursionValue visit(GenericRecursionValue v)(Code)
Copy the specified generic recursion value.



visit
public Element visit(Element e)(Code)
Visit the specified element. This method provides the default implementation for nonterminals, terminals (besides character classes and switches), node markers, null literals, and value elements (besides properlists, generic node, generic action, and generic recursion values), which are immutable and not containers for other elements.



Methods inherited from xtc.tree.Visitor
public Object dispatch(Node node)(Code)(Java Doc)

Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(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.