Java Doc for Evaluation.java in  » Scripting » OGNL » ognl » 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 » Scripting » OGNL » ognl 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   ognl.Evaluation

Evaluation
public class Evaluation extends Object (Code)
An Evaluation is and object that holds a node being evaluated and the source from which that node will take extract its value. It refers to child evaluations that occur as a result of the nodes' evaluation.



Constructor Summary
public  Evaluation(SimpleNode node, Object source)
     Constructs a new "get" Evaluation from the node and source given.
public  Evaluation(SimpleNode node, Object source, boolean setOperation)
     Constructs a new Evaluation from the node and source given.

Method Summary
public  voidaddChild(Evaluation child)
     Adds a child to the list of children of this evaluation.
public  ThrowablegetException()
     Returns the exception that occurred as a result of evaluating the Evaluation, or null if no exception occurred.
public  EvaluationgetFirstChild()
     Returns the first child of this evaluation.
public  EvaluationgetFirstDescendant()
     Gets the first descendent.
public  EvaluationgetLastChild()
     Returns the last child of this evaluation.
public  EvaluationgetLastDescendant()
     Gets the last descendent.
public  EvaluationgetNext()
     Returns the next sibling of this evaluation.
public  SimpleNodegetNode()
    
public  EvaluationgetParent()
     Returns the parent evaluation of this evaluation.
public  EvaluationgetPrevious()
     Returns the previous sibling of this evaluation.
public  ObjectgetResult()
     Returns the result of the Evaluation, or null if it was a set operation.
public  ObjectgetSource()
     Returns the source object on which this Evaluation operated.
public  voidinit(SimpleNode node, Object source, boolean setOperation)
     Reinitializes this Evaluation to the parameters specified.
public  booleanisSetOperation()
     Returns true if this Evaluation represents a set operation.
public  voidreset()
     Resets this Evaluation to the initial state.
public  voidsetException(Throwable value)
     Sets the exception that occurred as a result of evaluating the Evaluation.
public  voidsetNode(SimpleNode value)
     Sets the node of the evaluation.
public  voidsetResult(Object value)
     Sets the result of the Evaluation.
public  voidsetSetOperation(boolean value)
     Marks the Evaluation as a set operation if the value is true, else marks it as a get operation.
public  voidsetSource(Object value)
     Sets the source of the evaluation.
public  StringtoString(boolean compact, boolean showChildren, String depth)
     Produces a String value for the Evaluation.
public  StringtoString(boolean compact, String depth)
     Produces a String value for the Evaluation.
public  StringtoString()
     Returns a String description of the Evaluation.


Constructor Detail
Evaluation
public Evaluation(SimpleNode node, Object source)(Code)
Constructs a new "get" Evaluation from the node and source given.



Evaluation
public Evaluation(SimpleNode node, Object source, boolean setOperation)(Code)
Constructs a new Evaluation from the node and source given. If setOperation is true this Evaluation represents a "set" as opposed to a "get".




Method Detail
addChild
public void addChild(Evaluation child)(Code)
Adds a child to the list of children of this evaluation. The parent of the child is set to the receiver and the children references are modified in the receiver to reflect the new child. The lastChild of the receiver is set to the child, and the firstChild is set also if child is the first (or only) child.



getException
public Throwable getException()(Code)
Returns the exception that occurred as a result of evaluating the Evaluation, or null if no exception occurred.



getFirstChild
public Evaluation getFirstChild()(Code)
Returns the first child of this evaluation. Returns null if there are no children.



getFirstDescendant
public Evaluation getFirstDescendant()(Code)
Gets the first descendent. In any Evaluation tree this will the Evaluation that was first executed.



getLastChild
public Evaluation getLastChild()(Code)
Returns the last child of this evaluation. Returns null if there are no children.



getLastDescendant
public Evaluation getLastDescendant()(Code)
Gets the last descendent. In any Evaluation tree this will the Evaluation that was most recently executing.



getNext
public Evaluation getNext()(Code)
Returns the next sibling of this evaluation. Returns null if this is the last in a chain of evaluations.



getNode
public SimpleNode getNode()(Code)
Returns the SimpleNode for this Evaluation



getParent
public Evaluation getParent()(Code)
Returns the parent evaluation of this evaluation. If this returns null then it is is the root evaluation of a tree.



getPrevious
public Evaluation getPrevious()(Code)
Returns the previous sibling of this evaluation. Returns null if this is the first in a chain of evaluations.



getResult
public Object getResult()(Code)
Returns the result of the Evaluation, or null if it was a set operation.



getSource
public Object getSource()(Code)
Returns the source object on which this Evaluation operated.



init
public void init(SimpleNode node, Object source, boolean setOperation)(Code)
Reinitializes this Evaluation to the parameters specified.



isSetOperation
public boolean isSetOperation()(Code)
Returns true if this Evaluation represents a set operation.



reset
public void reset()(Code)
Resets this Evaluation to the initial state.



setException
public void setException(Throwable value)(Code)
Sets the exception that occurred as a result of evaluating the Evaluation. This method is normally only used interally and should not be set without knowledge of what you are doing.



setNode
public void setNode(SimpleNode value)(Code)
Sets the node of the evaluation. Normally applications do not need to set this. Notable exceptions to this rule are custom evaluators that choose between navigable objects (as in a multi-root evaluator where the navigable node is chosen at runtime).



setResult
public void setResult(Object value)(Code)
Sets the result of the Evaluation. This method is normally only used interally and should not be set without knowledge of what you are doing.



setSetOperation
public void setSetOperation(boolean value)(Code)
Marks the Evaluation as a set operation if the value is true, else marks it as a get operation.



setSource
public void setSource(Object value)(Code)
Sets the source of the evaluation. Normally applications do not need to set this. Notable exceptions to this rule are custom evaluators that choose between navigable objects (as in a multi-root evaluator where the navigable node is chosen at runtime).



toString
public String toString(boolean compact, boolean showChildren, String depth)(Code)
Produces a String value for the Evaluation. If compact is true then a more compact form of the description only including the node type and unique identifier is shown, else a full description including source and result are shown. If showChildren is true the child evaluations are printed using the depth string given as a prefix.



toString
public String toString(boolean compact, String depth)(Code)
Produces a String value for the Evaluation. If compact is true then a more compact form of the description only including the node type and unique identifier is shown, else a full description including source and result are shown. Child evaluations are printed using the depth string given as a prefix.



toString
public String toString()(Code)
Returns a String description of the Evaluation.



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.