Java Doc for ExpressionEvaluator.java in  » Library » Apache-beehive-1.0.2-src » org » apache » beehive » netui » script » 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 beehive 1.0.2 src » org.apache.beehive.netui.script 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.apache.beehive.netui.script.ExpressionEvaluator

All known Subclasses:   org.apache.beehive.netui.script.el.ExpressionEvaluatorImpl,
ExpressionEvaluator
public interface ExpressionEvaluator (Code)
Interface for implementing a runtime for evaluating expressions. An ExpressionEvaluator is used to execute read and update expressions. It also provides a set of methods for performing utility type operations on expressions.




Method Summary
public  StringchangeContext(String expression, String oldContext, String newContext, int lookupIndex)
     Change the evaluation context of an expression.
public  booleancontainsExpression(String expression)
     Checks to see if a particular expression contains an expression.
public  ObjectevaluateStrict(String expression, VariableResolver variableResolver)
     Evaluate an expression and return the result.
Parameters:
  expression - the expression to evaluate
Parameters:
  variableResolver - the set of contexts that may be used in expression evaluation.
public  booleanisExpression(String expression)
     Checks to see if a particular String is exactly an expression.
public  ExpressionparseExpression(String expression)
     Parse an expression into its object representation as a Expression .
public  Stringqualify(String implicitObjectName, String expression)
     Qualify the expression into the given context.
public  voidupdate(String expression, Object value, VariableResolver variableResolver, boolean requestParameter)
     Update an expression with the given value.



Method Detail
changeContext
public String changeContext(String expression, String oldContext, String newContext, int lookupIndex) throws ExpressionEvaluationException(Code)
Change the evaluation context of an expression. This is used to rewrite some expressions that need to be qualified into a different context for evaluation. The context of an expression is its first identifier, up to the first delimiter.
Parameters:
  expression - the expression whose context to change
Parameters:
  oldContext - the old context to replace, if present
Parameters:
  newContext - the new context to replace if the expression starts with the oldContext
Parameters:
  lookupIndex - an index used to qualify an expression into an array look-up.



containsExpression
public boolean containsExpression(String expression)(Code)
Checks to see if a particular expression contains an expression. This method will return true if there is an expression surrounded by whitespace, other expressions, or literal text.
Parameters:
  expression - the expression to check true if the expression contains an expression; false otherwise.



evaluateStrict
public Object evaluateStrict(String expression, VariableResolver variableResolver) throws ExpressionEvaluationException(Code)
Evaluate an expression and return the result.
Parameters:
  expression - the expression to evaluate
Parameters:
  variableResolver - the set of contexts that may be used in expression evaluation. This setis not necessarily complete as some objects that can be used as top-level expression contextsmay be contained within an object available in this JavaBean.
throws:
  ExpressionEvaluationException - when an error occurs



isExpression
public boolean isExpression(String expression)(Code)
Checks to see if a particular String is exactly an expression.
Parameters:
  expression - the expression to check true if the expression is exactly an expression; false otherwise.
throws:
  IllegalExpressionException - if the given expression expression is not legal.



parseExpression
public Expression parseExpression(String expression)(Code)
Parse an expression into its object representation as a Expression .
Parameters:
  expression - the String expression to parse the parsed expression



qualify
public String qualify(String implicitObjectName, String expression) throws ExpressionEvaluationException(Code)
Qualify the expression into the given context. This will take the expression and simply qualify it into the new context implicitObjectName.
Parameters:
  implicitObjectName - the new context
Parameters:
  expression - the expression to qualify the new expression created by adding the implicit object name implicitObjectNameto the expression string expression
throws:
  ExpressionEvaluationException - if an exception occurs qualifying the expression with the implict object name



update
public void update(String expression, Object value, VariableResolver variableResolver, boolean requestParameter) throws ExpressionUpdateException(Code)
Update an expression with the given value. This will apply the parameter value to the object referenced by the expression expression. The requestParameter flag is used by a caller to restrict the set of contexts into which an update can occur on the request.
Parameters:
  expression - the expression whose value to update
Parameters:
  value - the new value for the update
Parameters:
  variableResolver - the set of contexts that may be used in expression evaluation. This setis not necessarily complete as some objects that can be used as top-level expression contextsmay be contained within an object available in this JavaBean.
Parameters:
  requestParameter - a boolean that marks this update as occurring from data in the request, iftrue or simply as a regular update.
throws:
  ExpressionUpdateException - when an exception occurs updating a value



www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.