Java Doc for Node.java in  » Database-DBMS » db4o-6.4 » EDU » purdue » cs » bloat » tree » 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 DBMS » db4o 6.4 » EDU.purdue.cs.bloat.tree 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   EDU.purdue.cs.bloat.tree.Node

All known Subclasses:   EDU.purdue.cs.bloat.tree.Stmt,  EDU.purdue.cs.bloat.tree.Expr,  EDU.purdue.cs.bloat.tree.Tree,
Node
abstract public class Node (Code)
Node represents a node in an expression tree. Each Node has a value number and a key associated with it. The value number is used to eliminate statements and expressions that have the same value (PRE). Statements and expressions of the same value will be mapped to the same value number.
See Also:   Expr
See Also:   Stmt
See Also:   Tree


Field Summary
 intkey
    
protected  Nodeparent
    
 intvalueNumber
    

Constructor Summary
public  Node()
     Constructor.

Method Summary
public  Blockblock()
     Returns the basic block in which this Node resides.
public  voidcleanup()
     Cleans up this node so that it is independent of the expression tree in which it resides.
abstract public  voidcleanupOnly()
     Clean up this Node only.
protected  NodecopyInto(Node node)
     Copies the contents of one Node into another.
Parameters:
  node - A Node from which to copy.
public  booleanhasParent()
    
public  intkey()
     A Node's key represents an integer value that can be used by an algorithm to mark this node.
public  Nodeparent()
    
public  voidreplaceWith(Node node)
     Replaces this node with another and perform cleanup.
public  voidreplaceWith(Node node, boolean cleanup)
     Replaces this Node with node in its (this's) tree.
public  voidsetKey(int key)
    
public  voidsetParent(Node parent)
     Sets the parent Node of this Node.
public  voidsetValueNumber(int valueNumber)
     Sets this Node's value number.
public  StringtoString()
    
public  intvalueNumber()
     Returns this Node's value number.
abstract public  voidvisit(TreeVisitor visitor)
    
public  voidvisitChildren(TreeVisitor visitor)
    
abstract public  voidvisitForceChildren(TreeVisitor visitor)
     Visit the children of this node.
public  voidvisitOnly(TreeVisitor visitor)
    

Field Detail
key
int key(Code)



parent
protected Node parent(Code)



valueNumber
int valueNumber(Code)




Constructor Detail
Node
public Node()(Code)
Constructor.




Method Detail
block
public Block block()(Code)
Returns the basic block in which this Node resides.



cleanup
public void cleanup()(Code)
Cleans up this node so that it is independent of the expression tree in which it resides. This is usually performed before a Node is moved from one part of an expression tree to another.

Traverse the Tree starting at this Node. Remove the parent of each node and perform any Node-specific cleanup (see cleanupOnly). Sets various pointers to null so that they eventually may be garbage collected.




cleanupOnly
abstract public void cleanupOnly()(Code)
Clean up this Node only. Does not effect its children nodes.



copyInto
protected Node copyInto(Node node)(Code)
Copies the contents of one Node into another.
Parameters:
  node - A Node from which to copy. node containing the contents of this Node.



hasParent
public boolean hasParent()(Code)



key
public int key()(Code)
A Node's key represents an integer value that can be used by an algorithm to mark this node. For instance, when dead code elimination is performed a Node is marked as DEAD or ALIVE.



parent
public Node parent()(Code)



replaceWith
public void replaceWith(Node node)(Code)
Replaces this node with another and perform cleanup.



replaceWith
public void replaceWith(Node node, boolean cleanup)(Code)
Replaces this Node with node in its (this's) tree.
Parameters:
  node - The Node with which to replace.
Parameters:
  cleanup - Do we perform cleanup on the tree?



setKey
public void setKey(int key)(Code)



setParent
public void setParent(Node parent)(Code)
Sets the parent Node of this Node.



setValueNumber
public void setValueNumber(int valueNumber)(Code)
Sets this Node's value number.



toString
public String toString()(Code)
A textual representation of this Node.



valueNumber
public int valueNumber()(Code)
Returns this Node's value number.



visit
abstract public void visit(TreeVisitor visitor)(Code)



visitChildren
public void visitChildren(TreeVisitor visitor)(Code)



visitForceChildren
abstract public void visitForceChildren(TreeVisitor visitor)(Code)
Visit the children of this node. Not all Nodes will have children to visit.



visitOnly
public void visitOnly(TreeVisitor visitor)(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.