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


java.lang.Object
   xtc.tree.Visitor
      xtc.typical.FreeVariableCollector

FreeVariableCollector
public class FreeVariableCollector extends Visitor (Code)
Visitor to add all find all free identifiers in an guard expression. This might need some refinement and synchronisation with the symbol table.
author:
   Anh Le, Laune Harris
version:
   $Revision: 1.2 $


Field Summary
final protected  Set<String>idlist
    

Constructor Summary
public  FreeVariableCollector(GNode n)
     Create a new free variable collector.
public  FreeVariableCollector(GNode n, Set<String> idlist)
     Create a new free variable collector.

Method Summary
public  Set<String>getIdentifiers()
     Get the list of identifiers in this guard expression.
public  voidvisit(GNode n)
     Get the identifiers in other nodes.
public  voidvisitAdditiveExpression(GNode n)
     Get the identifiers in an additive expression.
public  voidvisitArguments(GNode n)
     Get the identifers in an argument list.
public  voidvisitAsPattern(GNode n)
     Get (bound) identifiers in AsPattern.
public  voidvisitConcatenationExpression(GNode n)
     Get the identifiers in an concatenation expression.
public  voidvisitConsExpression(GNode n)
     Get the identifiers in a cons expression.
public  voidvisitConsPattern(GNode n)
     Get (bound) identifiers in ConsPattern.
public  voidvisitEqualityExpression(GNode n)
     Get the identifiers in an equality expression.
public  voidvisitFieldAssignment(GNode n)
     Get identifiers in a FieldAssignment.
public  voidvisitFieldExpression(GNode n)
     Get the identifiers in a field expression.
public  voidvisitFieldPattern(GNode n)
     Get (bound) identifiers in a FieldPattern.
public  voidvisitFunctionApplication(GNode n)
     Get the identifers in a function application.
public  voidvisitFunctionExpression(GNode n)
     Get identifiers in a function expression.
public  voidvisitGuardExpression(GNode n)
     Get the identifers in a guard expression.
public  voidvisitLetBinding(GNode n)
     Get bound identifier in a let binding.
public  voidvisitLetBindings(GNode n)
     Get (bound) identifiers in let bindings.
public  voidvisitLetExpression(GNode n)
     Get the identifiers in a let expression.
public  voidvisitListLiteral(GNode n)
     Get identifiers in a ListLiteral.
public  voidvisitListPattern(GNode n)
     Get (bound) identifiers in a ListPattern.
public  voidvisitLogicalAndExpression(GNode n)
     Get the identifiers in a logical and expression.
public  voidvisitLogicalNegationExpression(GNode n)
     Get the identifiers in a logicalnegation expression.
public  voidvisitLogicalOrExpression(GNode n)
     Get the identifiers in a logical or expression.
public  voidvisitLowerID(GNode n)
     Get the identifers in a lower id.
public  voidvisitMatchExpression(GNode n)
     Get identifiers in a match expression.
public  voidvisitMultiplicativeExpresion(GNode n)
     Get the identifiers in a multiplicative expression.
public  voidvisitPatternParameters(GNode n)
     Get (bound) identifiers in PatternParameters.
public  voidvisitPatterns(GNode n)
     Get (bound) identifiers in patterns.
public  voidvisitPredicateExpression(GNode n)
     Get the identifiers in a predicate expression.
public  voidvisitRecordExpression(GNode n)
     Get identifiers in a RecordExpression.
public  voidvisitRecordPattern(GNode n)
     Get (bound) identifiers in a RecordPattern.
public  voidvisitRelationalExpression(GNode n)
     Get the identifiers in a relational expression.
public  voidvisitTupleConstructor(GNode n)
     Get identifiers in a TupleConstructor.
public  voidvisitTupleLiteral(GNode n)
     Get the identifiers in a tuple literal.
public  voidvisitTuplePattern(GNode n)
     Get (bound) identifiers in TuplePattern.
public  voidvisitTypeConstructorPattern(GNode n)
     Get (bound) identifiers in a TypeConstructorPattern.
public  voidvisitTypedPattern(GNode n)
     Get (bound) identifiers in TypedPattern.
public  voidvisitVariable(GNode n)
     Get (bound) identifier in a Variable.
public  voidvisitWhenPattern(GNode n)
     Get (bound) identifiers in WhenPattern.
public  voidvisitWithExpression(GNode n)
     Get identifiers in a WithExpression.

Field Detail
idlist
final protected Set<String> idlist(Code)




Constructor Detail
FreeVariableCollector
public FreeVariableCollector(GNode n)(Code)
Create a new free variable collector.
Parameters:
  n - The root of the expression.



FreeVariableCollector
public FreeVariableCollector(GNode n, Set<String> idlist)(Code)
Create a new free variable collector.
Parameters:
  n - The root of the expression.
Parameters:
  idlist - The current idlist.




Method Detail
getIdentifiers
public Set<String> getIdentifiers()(Code)
Get the list of identifiers in this guard expression. The list of identifiers.



visit
public void visit(GNode n)(Code)
Get the identifiers in other nodes.
Parameters:
  n - The node.



visitAdditiveExpression
public void visitAdditiveExpression(GNode n)(Code)
Get the identifiers in an additive expression.
Parameters:
  n - The node.



visitArguments
public void visitArguments(GNode n)(Code)
Get the identifers in an argument list.
Parameters:
  n - The node.



visitAsPattern
public void visitAsPattern(GNode n)(Code)
Get (bound) identifiers in AsPattern.
Parameters:
  n - The node.



visitConcatenationExpression
public void visitConcatenationExpression(GNode n)(Code)
Get the identifiers in an concatenation expression.
Parameters:
  n - The node.



visitConsExpression
public void visitConsExpression(GNode n)(Code)
Get the identifiers in a cons expression.
Parameters:
  n - The node.



visitConsPattern
public void visitConsPattern(GNode n)(Code)
Get (bound) identifiers in ConsPattern.
Parameters:
  n - The node.



visitEqualityExpression
public void visitEqualityExpression(GNode n)(Code)
Get the identifiers in an equality expression.
Parameters:
  n - The node.



visitFieldAssignment
public void visitFieldAssignment(GNode n)(Code)
Get identifiers in a FieldAssignment.
Parameters:
  n - The node.



visitFieldExpression
public void visitFieldExpression(GNode n)(Code)
Get the identifiers in a field expression.



visitFieldPattern
public void visitFieldPattern(GNode n)(Code)
Get (bound) identifiers in a FieldPattern.
Parameters:
  n - The node.



visitFunctionApplication
public void visitFunctionApplication(GNode n)(Code)
Get the identifers in a function application.
Parameters:
  n - The node.



visitFunctionExpression
public void visitFunctionExpression(GNode n)(Code)
Get identifiers in a function expression.
Parameters:
  n - The node.



visitGuardExpression
public void visitGuardExpression(GNode n)(Code)
Get the identifers in a guard expression.
Parameters:
  n - The node.



visitLetBinding
public void visitLetBinding(GNode n)(Code)
Get bound identifier in a let binding.
Parameters:
  n - The node.



visitLetBindings
public void visitLetBindings(GNode n)(Code)
Get (bound) identifiers in let bindings.
Parameters:
  n - The node.



visitLetExpression
public void visitLetExpression(GNode n)(Code)
Get the identifiers in a let expression.
Parameters:
  n - The node.



visitListLiteral
public void visitListLiteral(GNode n)(Code)
Get identifiers in a ListLiteral.
Parameters:
  n - The node.



visitListPattern
public void visitListPattern(GNode n)(Code)
Get (bound) identifiers in a ListPattern.
Parameters:
  n - The node.



visitLogicalAndExpression
public void visitLogicalAndExpression(GNode n)(Code)
Get the identifiers in a logical and expression.
Parameters:
  n - The node.



visitLogicalNegationExpression
public void visitLogicalNegationExpression(GNode n)(Code)
Get the identifiers in a logicalnegation expression.
Parameters:
  n - The node.



visitLogicalOrExpression
public void visitLogicalOrExpression(GNode n)(Code)
Get the identifiers in a logical or expression.
Parameters:
  n - The node.



visitLowerID
public void visitLowerID(GNode n)(Code)
Get the identifers in a lower id.
Parameters:
  n - The node.



visitMatchExpression
public void visitMatchExpression(GNode n)(Code)
Get identifiers in a match expression.
Parameters:
  n - The node.



visitMultiplicativeExpresion
public void visitMultiplicativeExpresion(GNode n)(Code)
Get the identifiers in a multiplicative expression.
Parameters:
  n - The node.



visitPatternParameters
public void visitPatternParameters(GNode n)(Code)
Get (bound) identifiers in PatternParameters.
Parameters:
  n - The node.



visitPatterns
public void visitPatterns(GNode n)(Code)
Get (bound) identifiers in patterns.
Parameters:
  n - The node.



visitPredicateExpression
public void visitPredicateExpression(GNode n)(Code)
Get the identifiers in a predicate expression.
Parameters:
  n - The node.



visitRecordExpression
public void visitRecordExpression(GNode n)(Code)
Get identifiers in a RecordExpression.
Parameters:
  n - The node.



visitRecordPattern
public void visitRecordPattern(GNode n)(Code)
Get (bound) identifiers in a RecordPattern.
Parameters:
  n - The node.



visitRelationalExpression
public void visitRelationalExpression(GNode n)(Code)
Get the identifiers in a relational expression.
Parameters:
  n - The node.



visitTupleConstructor
public void visitTupleConstructor(GNode n)(Code)
Get identifiers in a TupleConstructor.
Parameters:
  n - The node.



visitTupleLiteral
public void visitTupleLiteral(GNode n)(Code)
Get the identifiers in a tuple literal.
Parameters:
  n - The node.



visitTuplePattern
public void visitTuplePattern(GNode n)(Code)
Get (bound) identifiers in TuplePattern.
Parameters:
  n - The node.



visitTypeConstructorPattern
public void visitTypeConstructorPattern(GNode n)(Code)
Get (bound) identifiers in a TypeConstructorPattern.
Parameters:
  n - The node.



visitTypedPattern
public void visitTypedPattern(GNode n)(Code)
Get (bound) identifiers in TypedPattern.
Parameters:
  n - The node.



visitVariable
public void visitVariable(GNode n)(Code)
Get (bound) identifier in a Variable.
Parameters:
  n - The node.



visitWhenPattern
public void visitWhenPattern(GNode n)(Code)
Get (bound) identifiers in WhenPattern.
Parameters:
  n - The node.



visitWithExpression
public void visitWithExpression(GNode n)(Code)
Get identifiers in a WithExpression.
Parameters:
  n - The node.



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.