Java Doc for BaseAST.java in  » Database-ORM » toplink » persistence » antlr » 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 » Database ORM » toplink » persistence.antlr 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   persistence.antlr.BaseAST

All known Subclasses:   persistence.antlr.ParseTree,  persistence.antlr.CommonAST,
BaseAST
abstract public class BaseAST implements AST,Serializable(Code)
A Child-Sibling Tree. A tree with PLUS at the root and with two children 3 and 4 is structured as: PLUS | 3 -- 4 and can be specified easily in LISP notation as (PLUS 3 4) where every '(' starts a new subtree. These trees are particular useful for translators because of the flexibility of the children lists. They are also very easy to walk automatically, whereas trees with specific children reference fields can't easily be walked automatically. This class contains the basic support for an AST. Most people will create ASTs that are subclasses of BaseAST or of CommonAST.


Field Summary
protected  BaseASTdown
    
protected  BaseASTright
    


Method Summary
public  voidaddChild(AST node)
    
public static  Stringdecode(String text)
    
public static  Stringencode(String text)
    
public  booleanequals(AST t)
    
public  booleanequalsList(AST t)
     Is t an exact structural and equals() match of this tree.
public  booleanequalsListPartial(AST sub)
     Is 'sub' a subtree of this list? The siblings of the root are NOT ignored.
public  booleanequalsTree(AST t)
     Is tree rooted at 'this' equal to 't'? The siblings of 'this' are ignored.
public  booleanequalsTreePartial(AST sub)
     Is 't' a subtree of the tree rooted at 'this'? The siblings of 'this' are ignored.
public  ASTEnumerationfindAll(AST target)
     Walk the tree looking for all exact subtree matches.
public  ASTEnumerationfindAllPartial(AST sub)
     Walk the tree looking for all subtrees.
public  intgetColumn()
    
public  ASTgetFirstChild()
    
public  intgetLine()
    
public  ASTgetNextSibling()
    
public  intgetNumberOfChildren()
    
public  StringgetText()
    
public static  String[]getTokenNames()
     Return an array of strings that maps token ID to it's text.
public  intgetType()
    
abstract public  voidinitialize(int t, String txt)
    
abstract public  voidinitialize(AST t)
    
abstract public  voidinitialize(Token t)
    
public  voidremoveChildren()
    
public  voidsetFirstChild(AST c)
    
public  voidsetNextSibling(AST n)
    
public  voidsetText(String text)
    
public  voidsetType(int ttype)
    
public static  voidsetVerboseStringConversion(boolean verbose, String[] names)
    
public  StringtoString()
    
public  StringtoStringList()
    
public  StringtoStringTree()
    
public  voidxmlSerialize(Writer out)
    
public  voidxmlSerializeNode(Writer out)
    
public  voidxmlSerializeRootClose(Writer out)
    
public  voidxmlSerializeRootOpen(Writer out)
    

Field Detail
down
protected BaseAST down(Code)



right
protected BaseAST right(Code)





Method Detail
addChild
public void addChild(AST node)(Code)
Add a node to the end of the child list for this node



decode
public static String decode(String text)(Code)



encode
public static String encode(String text)(Code)



equals
public boolean equals(AST t)(Code)
Is node t equal to this in terms of token type and text?



equalsList
public boolean equalsList(AST t)(Code)
Is t an exact structural and equals() match of this tree. The 'this' reference is considered the start of a sibling list.



equalsListPartial
public boolean equalsListPartial(AST sub)(Code)
Is 'sub' a subtree of this list? The siblings of the root are NOT ignored.



equalsTree
public boolean equalsTree(AST t)(Code)
Is tree rooted at 'this' equal to 't'? The siblings of 'this' are ignored.



equalsTreePartial
public boolean equalsTreePartial(AST sub)(Code)
Is 't' a subtree of the tree rooted at 'this'? The siblings of 'this' are ignored.



findAll
public ASTEnumeration findAll(AST target)(Code)
Walk the tree looking for all exact subtree matches. Return an ASTEnumerator that lets the caller walk the list of subtree roots found herein.



findAllPartial
public ASTEnumeration findAllPartial(AST sub)(Code)
Walk the tree looking for all subtrees. Return an ASTEnumerator that lets the caller walk the list of subtree roots found herein.



getColumn
public int getColumn()(Code)



getFirstChild
public AST getFirstChild()(Code)
Get the first child of this node; null if not children



getLine
public int getLine()(Code)



getNextSibling
public AST getNextSibling()(Code)
Get the next sibling in line after this one



getNumberOfChildren
public int getNumberOfChildren()(Code)
How many children does this node have?



getText
public String getText()(Code)
Get the token text for this node



getTokenNames
public static String[] getTokenNames()(Code)
Return an array of strings that maps token ID to it's text. @since 2.7.3



getType
public int getType()(Code)
Get the token type for this node



initialize
abstract public void initialize(int t, String txt)(Code)



initialize
abstract public void initialize(AST t)(Code)



initialize
abstract public void initialize(Token t)(Code)



removeChildren
public void removeChildren()(Code)
Remove all children



setFirstChild
public void setFirstChild(AST c)(Code)



setNextSibling
public void setNextSibling(AST n)(Code)



setText
public void setText(String text)(Code)
Set the token text for this node



setType
public void setType(int ttype)(Code)
Set the token type for this node



setVerboseStringConversion
public static void setVerboseStringConversion(boolean verbose, String[] names)(Code)



toString
public String toString()(Code)



toStringList
public String toStringList()(Code)
Print out a child-sibling tree in LISP notation



toStringTree
public String toStringTree()(Code)



xmlSerialize
public void xmlSerialize(Writer out) throws IOException(Code)



xmlSerializeNode
public void xmlSerializeNode(Writer out) throws IOException(Code)



xmlSerializeRootClose
public void xmlSerializeRootClose(Writer out) throws IOException(Code)



xmlSerializeRootOpen
public void xmlSerializeRootOpen(Writer out) throws IOException(Code)



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.