Java Doc for Node.java in  » Database-ORM » toplink » oracle » toplink » essentials » internal » parsing » 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 » oracle.toplink.essentials.internal.parsing 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   oracle.toplink.essentials.internal.parsing.Node

All known Subclasses:   oracle.toplink.essentials.internal.parsing.IdentificationVariableDeclNode,  oracle.toplink.essentials.internal.parsing.LiteralNode,  oracle.toplink.essentials.internal.parsing.FetchJoinNode,  oracle.toplink.essentials.internal.parsing.AggregateNode,  oracle.toplink.essentials.internal.parsing.AttributeNode,  oracle.toplink.essentials.internal.parsing.UnaryMinus,  oracle.toplink.essentials.internal.parsing.MajorNode,  oracle.toplink.essentials.internal.parsing.SimpleConditionalExpressionNode,  oracle.toplink.essentials.internal.parsing.ConstructorNode,  oracle.toplink.essentials.internal.parsing.SubqueryNode,  oracle.toplink.essentials.internal.parsing.ExistsNode,  oracle.toplink.essentials.internal.parsing.BinaryOperatorNode,  oracle.toplink.essentials.internal.parsing.FunctionalExpressionNode,  oracle.toplink.essentials.internal.parsing.LogicalOperatorNode,  oracle.toplink.essentials.internal.parsing.SortDirectionNode,  oracle.toplink.essentials.internal.parsing.AllNode,  oracle.toplink.essentials.internal.parsing.ParameterNode,  oracle.toplink.essentials.internal.parsing.VariableNode,  oracle.toplink.essentials.internal.parsing.AnyNode,  oracle.toplink.essentials.internal.parsing.OrderByItemNode,  oracle.toplink.essentials.internal.parsing.SomeNode,
Node
public class Node (Code)
INTERNAL

Purpose: This is the superclass for all Nodes.

Responsibilities:

  • Answer default answers for all method calls
  • Delegate most responsibilities to the sub-classes

author:
   Jon Driscoll and Joel Lucuik
since:
   TopLink 4.0


Field Summary
protected  Nodeleft
    
protected  Noderight
    
public  booleanshouldGenerateExpression
    

Constructor Summary
public  Node()
     Return a new Node.

Method Summary
public  ExpressionaddToExpression(Expression parentExpression, GenerationContext context)
     INTERNAL Add my expression semantics to the parentExpression.
public  ExpressionappendExpression(Expression left, Expression right)
     INTERNAL Returns left.and(right) if both are defined.
public  voidapplyToQuery(ObjectLevelReadQuery theQuery, GenerationContext context)
    
public  ExpressiongenerateExpression(GenerationContext context)
     INTERNAL Generate an expression for the node.
public  StringgetAsString()
     INTERNAL Get the string representation of this node.
public  intgetColumn()
    
public  NodegetLeft()
    
public  intgetLine()
    
public  NodegetRight()
    
public  ObjectgetType()
     INTERNAL Return the type of this node.
public  booleanhasLeft()
    
public  booleanhasRight()
    
public  booleanisAggregateNode()
    
public  booleanisAttributeNode()
    
public  booleanisConstructorNode()
    
public  booleanisCountNode()
    
public  booleanisDivideNode()
    
public  booleanisDotNode()
    
public  booleanisEscape()
    
public  booleanisLiteralNode()
    
public  booleanisMinusNode()
    
public  booleanisMultiplyNode()
    
public  booleanisNotNode()
    
public  booleanisParameterNode()
    
public  booleanisPlusNode()
    
public  booleanisSubqueryNode()
    
public  booleanisVariableNode()
    
public  NodequalifyAttributeAccess(ParseTreeContext context)
     INTERNAL Check the child node for an unqualified field access and if so, replace it by a qualified field access.
public  StringresolveAttribute()
     resolveAttribute(): Answer the name of the attribute which is represented by the receiver.
public  ClassresolveClass(GenerationContext context)
     resolveClass: Answer the class associated with the content of this node.
public  ClassresolveClass(GenerationContext context, Class ownerClass)
     resolveClass: Answer the class associated with the content of this node.
public  DatabaseMappingresolveMapping(GenerationContext context)
     resolveMapping: Answer the mapping associated with the contained nodes.
public  DatabaseMappingresolveMapping(GenerationContext context, Class ownerClass)
     resolveMapping: Answer the mapping associated with the contained nodes.
public  voidsetColumn(int column)
    
public  voidsetLeft(Node newLeft)
    
public  voidsetLine(int line)
    
public  voidsetRight(Node newRight)
    
public  voidsetType(Object type)
     INTERNAL Set this node's type.
public  StringtoString()
    
public  StringtoString(int indent)
    
public  StringtoStringDisplayName()
    
public  voidtoStringIndent(int indent, StringBuffer buffer)
    
public  voidvalidate(ParseTreeContext context)
     INTERNAL Validate node and calculate its type.
public  voidvalidateParameter(ParseTreeContext context, Object contextType)
    

Field Detail
left
protected Node left(Code)



right
protected Node right(Code)



shouldGenerateExpression
public boolean shouldGenerateExpression(Code)




Constructor Detail
Node
public Node()(Code)
Return a new Node.




Method Detail
addToExpression
public Expression addToExpression(Expression parentExpression, GenerationContext context)(Code)
INTERNAL Add my expression semantics to the parentExpression. Each subclass will add a different expression and thus will need to override this method



appendExpression
public Expression appendExpression(Expression left, Expression right)(Code)
INTERNAL Returns left.and(right) if both are defined.



applyToQuery
public void applyToQuery(ObjectLevelReadQuery theQuery, GenerationContext context)(Code)
INTERNAL Apply this node to the passed query



generateExpression
public Expression generateExpression(GenerationContext context)(Code)
INTERNAL Generate an expression for the node. Each subclass will generate a different expression and thus will need to override this method



getAsString
public String getAsString()(Code)
INTERNAL Get the string representation of this node. By default return toString()



getColumn
public int getColumn()(Code)



getLeft
public Node getLeft()(Code)
INTERNAL Return the left node



getLine
public int getLine()(Code)



getRight
public Node getRight()(Code)
INTERNAL Return the right node



getType
public Object getType()(Code)
INTERNAL Return the type of this node.



hasLeft
public boolean hasLeft()(Code)
INTERNAL Does this node have a left



hasRight
public boolean hasRight()(Code)
INTERNAL Does this node have a right



isAggregateNode
public boolean isAggregateNode()(Code)
INTERNAL Is this node an Aggregate node



isAttributeNode
public boolean isAttributeNode()(Code)
INTERNAL Is this node an AttributeNode



isConstructorNode
public boolean isConstructorNode()(Code)
INTERNAL Is this node a ConstructorNode



isCountNode
public boolean isCountNode()(Code)
INTERNAL Is this node a CountNode



isDivideNode
public boolean isDivideNode()(Code)
INTERNAL Is this node a Divide node



isDotNode
public boolean isDotNode()(Code)
INTERNAL Is this node a Dot node



isEscape
public boolean isEscape()(Code)
INTERNAL Is this an escape node



isLiteralNode
public boolean isLiteralNode()(Code)
INTERNAL Is this a literal node



isMinusNode
public boolean isMinusNode()(Code)
INTERNAL Is this node a Minus node



isMultiplyNode
public boolean isMultiplyNode()(Code)
INTERNAL Is this node a Multiply node



isNotNode
public boolean isNotNode()(Code)
INTERNAL Is this node a Not node



isParameterNode
public boolean isParameterNode()(Code)
INTERNAL Is this a Parameter node



isPlusNode
public boolean isPlusNode()(Code)
INTERNAL Is this node a Plus node



isSubqueryNode
public boolean isSubqueryNode()(Code)
INTERNAL Is this node a SubqueryNode



isVariableNode
public boolean isVariableNode()(Code)
INTERNAL Is this node a VariableNode



qualifyAttributeAccess
public Node qualifyAttributeAccess(ParseTreeContext context)(Code)
INTERNAL Check the child node for an unqualified field access and if so, replace it by a qualified field access.



resolveAttribute
public String resolveAttribute()(Code)
resolveAttribute(): Answer the name of the attribute which is represented by the receiver. Subclasses should override this.



resolveClass
public Class resolveClass(GenerationContext context)(Code)
resolveClass: Answer the class associated with the content of this node. Default is to return null. Subclasses should override this.



resolveClass
public Class resolveClass(GenerationContext context, Class ownerClass)(Code)
resolveClass: Answer the class associated with the content of this node. Default is to return null. Subclasses should override this.



resolveMapping
public DatabaseMapping resolveMapping(GenerationContext context)(Code)
resolveMapping: Answer the mapping associated with the contained nodes. Subclasses should override this.



resolveMapping
public DatabaseMapping resolveMapping(GenerationContext context, Class ownerClass)(Code)
resolveMapping: Answer the mapping associated with the contained nodes. Use the provided class as the context. Subclasses should override this.



setColumn
public void setColumn(int column)(Code)



setLeft
public void setLeft(Node newLeft)(Code)
INTERNAL Set the left node to the passed value



setLine
public void setLine(int line)(Code)



setRight
public void setRight(Node newRight)(Code)
INTERNAL Set the right for this node



setType
public void setType(Object type)(Code)
INTERNAL Set this node's type.



toString
public String toString()(Code)



toString
public String toString(int indent)(Code)



toStringDisplayName
public String toStringDisplayName()(Code)



toStringIndent
public void toStringIndent(int indent, StringBuffer buffer)(Code)



validate
public void validate(ParseTreeContext context)(Code)
INTERNAL Validate node and calculate its type.



validateParameter
public void validateParameter(ParseTreeContext context, Object contextType)(Code)
INTERNAL



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.