Java Doc for SimpleNode.java in  » Library » Apache-commons-jexl-1.1-src » org » apache » commons » jexl » 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 » Library » Apache commons jexl 1.1 src » org.apache.commons.jexl.parser 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.apache.commons.jexl.parser.SimpleNode

All known Subclasses:   org.apache.commons.jexl.parser.ASTAssignment,  org.apache.commons.jexl.parser.ASTArrayAccess,  org.apache.commons.jexl.parser.ASTFloatLiteral,  org.apache.commons.jexl.parser.ASTModNode,  org.apache.commons.jexl.parser.ASTExpression,  org.apache.commons.jexl.parser.ASTOrNode,  org.apache.commons.jexl.parser.ASTStringLiteral,  org.apache.commons.jexl.parser.ASTGENode,  org.apache.commons.jexl.parser.ASTNotNode,  org.apache.commons.jexl.parser.ASTNullLiteral,  org.apache.commons.jexl.parser.ASTDivNode,  org.apache.commons.jexl.parser.ASTBlock,  org.apache.commons.jexl.parser.ASTJexlScript,  org.apache.commons.jexl.parser.ASTStatementExpression,  org.apache.commons.jexl.parser.ASTForeachStatement,  org.apache.commons.jexl.parser.ASTSizeMethod,  org.apache.commons.jexl.parser.ASTIfStatement,  org.apache.commons.jexl.parser.ASTReferenceExpression,  org.apache.commons.jexl.parser.ASTTrueNode,  org.apache.commons.jexl.parser.ASTBitwiseComplNode,  org.apache.commons.jexl.parser.ASTWhileStatement,  org.apache.commons.jexl.parser.ASTMulNode,  org.apache.commons.jexl.parser.ASTSubtractNode,  org.apache.commons.jexl.parser.ASTLENode,  org.apache.commons.jexl.parser.ASTBitwiseXorNode,  org.apache.commons.jexl.parser.ASTFalseNode,  org.apache.commons.jexl.parser.ASTLTNode,  org.apache.commons.jexl.parser.ASTReference,  org.apache.commons.jexl.parser.ASTIdentifier,  org.apache.commons.jexl.parser.ASTEmptyFunction,  org.apache.commons.jexl.parser.ASTIntegerLiteral,  org.apache.commons.jexl.parser.ASTBitwiseAndNode,  org.apache.commons.jexl.parser.ASTAddNode,  org.apache.commons.jexl.parser.ASTSizeFunction,  org.apache.commons.jexl.parser.ASTMethod,  org.apache.commons.jexl.parser.ASTEQNode,  org.apache.commons.jexl.parser.ASTNENode,  org.apache.commons.jexl.parser.ASTGTNode,  org.apache.commons.jexl.parser.ASTBitwiseOrNode,  org.apache.commons.jexl.parser.ASTUnaryMinusNode,  org.apache.commons.jexl.parser.ASTAndNode,  org.apache.commons.jexl.parser.ASTExpressionExpression,
SimpleNode
public class SimpleNode implements Node(Code)
A Useful implementation of Node . Mostly autogenerated by javacc
author:
   Geir Magnusson Jr.
version:
   $Id: SimpleNode.java 398328 2006-04-30 12:46:59Z dion $


Field Summary
protected  Node[]children
     children of this node.
protected  intid
     id of the node.
protected  Nodeparent
     parent node.
protected  Parserparser
     parser that created the node.

Constructor Summary
public  SimpleNode(int i)
     Create the node given an id.
public  SimpleNode(Parser p, int i)
     Create a node with the given parser and id.

Method Summary
public  ObjectchildrenAccept(ParserVisitor visitor, Object data)
     Visit all children.
Parameters:
  visitor - a ParserVisitor.
Parameters:
  data - data to be passed along to the visitor.
public  voiddump(String prefix)
     Dump the node and all children.
public  Objectexecute(Object o, JexlContext ctx)
     Used to let a node calcuate it's value..
Parameters:
  o - the object to calculate with.
Parameters:
  ctx - the context to retrieve values from.
throws:
  Exception - when calculating the value fails.
public  booleaninterpret(JexlContext pc)
     basic interpret - just invoke interpret on all children.
Parameters:
  pc - the JexlContext context to interpret against.
public  ObjectjjtAccept(ParserVisitor visitor, Object data)
     Accept the visitor.
Parameters:
  visitor - a ParserVisitor.
Parameters:
  data - data to be passed along to the visitor.
public  voidjjtAddChild(Node n, int i)
    
public  voidjjtClose()
     End of the node.
public  NodejjtGetChild(int i)
    
public  intjjtGetNumChildren()
    
public  NodejjtGetParent()
    
public  voidjjtOpen()
     Start of the node.
public  voidjjtSetParent(Node n)
    
public  ObjectsetValue(JexlContext context, Object value)
     Sets the value for the node - again, only makes sense for some nodes but lazyness tempts me to put it here.
public  StringtoString()
     Gets a string representation of the node.
public  StringtoString(String prefix)
     Used during dumping to output the node with a prefix.
public  Objectvalue(JexlContext context)
     Gets the value of this node.
Parameters:
  context - the context to retrieve values from.

Field Detail
children
protected Node[] children(Code)
children of this node.



id
protected int id(Code)
id of the node.



parent
protected Node parent(Code)
parent node.



parser
protected Parser parser(Code)
parser that created the node.




Constructor Detail
SimpleNode
public SimpleNode(int i)(Code)
Create the node given an id.
Parameters:
  i - node id.



SimpleNode
public SimpleNode(Parser p, int i)(Code)
Create a node with the given parser and id.
Parameters:
  p - a parser.
Parameters:
  i - node id.




Method Detail
childrenAccept
public Object childrenAccept(ParserVisitor visitor, Object data)(Code)
Visit all children.
Parameters:
  visitor - a ParserVisitor.
Parameters:
  data - data to be passed along to the visitor. the value from visiting.
See Also:   ParserVisitor.visit



dump
public void dump(String prefix)(Code)
Dump the node and all children.
Parameters:
  prefix - text to prefix the node output.



execute
public Object execute(Object o, JexlContext ctx) throws Exception(Code)
Used to let a node calcuate it's value..
Parameters:
  o - the object to calculate with.
Parameters:
  ctx - the context to retrieve values from.
throws:
  Exception - when calculating the value fails. the result of the calculation.



interpret
public boolean interpret(JexlContext pc) throws Exception(Code)
basic interpret - just invoke interpret on all children.
Parameters:
  pc - the JexlContext context to interpret against. true if interpretation worked.
throws:
  Exception - on any error.



jjtAccept
public Object jjtAccept(ParserVisitor visitor, Object data)(Code)
Accept the visitor.
Parameters:
  visitor - a ParserVisitor.
Parameters:
  data - data to be passed along to the visitor. the value from visiting.
See Also:   ParserVisitor.visit



jjtAddChild
public void jjtAddChild(Node n, int i)(Code)



jjtClose
public void jjtClose()(Code)
End of the node.



jjtGetChild
public Node jjtGetChild(int i)(Code)



jjtGetNumChildren
public int jjtGetNumChildren()(Code)



jjtGetParent
public Node jjtGetParent()(Code)



jjtOpen
public void jjtOpen()(Code)
Start of the node.



jjtSetParent
public void jjtSetParent(Node n)(Code)



setValue
public Object setValue(JexlContext context, Object value) throws Exception(Code)
Sets the value for the node - again, only makes sense for some nodes but lazyness tempts me to put it here. Keeps things simple.
Parameters:
  context - the context to retrieve values from.
Parameters:
  value - the value. the result.
throws:
  Exception - when evaluating the operands fails.



toString
public String toString()(Code)
Gets a string representation of the node. the node name.



toString
public String toString(String prefix)(Code)
Used during dumping to output the node with a prefix.
Parameters:
  prefix - text to prefix SimpleNode.toString() text.



value
public Object value(JexlContext context) throws Exception(Code)
Gets the value of this node.
Parameters:
  context - the context to retrieve values from. the value of the node.
throws:
  Exception - when evaluating the operands fails.



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.