Java Doc for Expr.java in  » EJB-Server-resin-3.1.5 » resin » com » caucho » xpath » 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 » EJB Server resin 3.1.5 » resin » com.caucho.xpath 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.caucho.xpath.Expr

All known Subclasses:   com.caucho.xpath.expr.FunExpr,  com.caucho.xpath.expr.StaticJavaExpr,  com.caucho.xpath.expr.VarExpr,  com.caucho.xpath.expr.IdExpr,  com.caucho.xpath.expr.NewJavaExpr,  com.caucho.xpath.expr.AbstractNumberExpr,  com.caucho.xpath.expr.BooleanExpr,  com.caucho.xpath.expr.NodeSetExpr,  com.caucho.xpath.expr.NumericExpr,  com.caucho.xpath.expr.AbstractStringExpr,  com.caucho.xpath.expr.ObjectJavaExpr,  com.caucho.xpath.expr.ObjectExpr,  com.caucho.xpath.expr.StringExpr,
Expr
abstract public class Expr (Code)
Compute values from nodes. Because the expressions themselves are untyped, the class provides methods for creating the type of the desired result.


Field Summary
final protected static  intADD
    
final protected static  intAND
    
final protected static  intATTRIBUTE
    
final protected static  intBASE_URI
    
final protected static  intBOOLEAN
    
final protected static  intBOOLEAN_EQ
    
final protected static  intBOOLEAN_NEQ
    
final protected static  intCEILING
    
final protected static  intCONCAT
    
final protected static  intCONST
    
final protected static  intCONTAINS
    
final protected static  intCOUNT
    
final protected static  intDIV
    
final protected static  intELEMENT
    
final protected static  intEQ
    
final protected static  intFALSE
    
final protected static  intFLOOR
    
final protected static  intFORMAT_NUMBER
    
final protected static  intFUNCTION_AVAILABLE
    
final protected static  intGE
    
final protected static  intGENERATE_ID
    
final protected static  intGT
    
final protected static  intID
    
final protected static  intIF
    
final protected static  intLANG
    
final protected static  intLAST
    
final protected static  intLAST_FUN
    
final protected static  intLE
    
final protected static  intLOCAL_PART
    
final protected static  intLT
    
final protected static  intMOD
    
final protected static  intMUL
    
final protected static  intNAMESPACE
    
final protected static  intNEG
    
final protected static  intNEQ
    
final protected static  intNODE_SET
    
final protected static  intNORMALIZE
    
final protected static  intNOT
    
final protected static  intNUMBER
    
final protected static  intNUMBER_EQ
    
final protected static  intNUMBER_GE
    
final protected static  intNUMBER_GT
    
final protected static  intNUMBER_LE
    
final protected static  intNUMBER_LT
    
final protected static  intNUMBER_NEQ
    
final protected static  intOR
    
final public static  intPOSITION
    
final protected static  intQNAME
    
final protected static  intQUO
    
final protected static  intROUND
    
final protected static  intSELF
    
final protected static  intSELF_NAME
    
final protected static  intSTARTS_WITH
    
final protected static  intSTRING
    
final protected static  intSTRING_EQ
    
final protected static  intSTRING_LENGTH
    
final protected static  intSTRING_NEQ
    
final protected static  intSUB
    
final protected static  intSUBSTRING
    
final protected static  intSUBSTRING_AFTER
    
final protected static  intSUBSTRING_BEFORE
    
final protected static  intSUM
    
final protected static  intSYSTEM_PROPERTY
    
final protected static  intTRANSLATE
    
final protected static  intTRUE
    

Constructor Summary
protected  Expr()
    

Method Summary
public  voidaddParam(Env newEnv, String name, Node node, Env env)
     Adds a param with the expression's value.
public  voidaddVar(Env newEnv, String name, Node node, Env env)
     Adds a variable with the expression's value.
public  booleanevalBoolean(Node node)
     Returns the boolean value of the node.
abstract public  booleanevalBoolean(Node node, ExprEnvironment env)
     Returns the boolean value of the node.
Parameters:
  node - the node to evaluate and use as a context
Parameters:
  env - variable environment.
public  NodeIteratorevalNodeSet(Node node)
    
public  NodeIteratorevalNodeSet(Node node, ExprEnvironment env)
     Returns an iterator of matching nodes
Parameters:
  node - the node to evaluate and use as a context
Parameters:
  env - variable environment.
public  doubleevalNumber(Node node)
     Evaluates the expression as a double using the node as a context.
abstract public  doubleevalNumber(Node node, ExprEnvironment env)
     Evaluates the expression as a number.
Parameters:
  node - the current node.
Parameters:
  env - variable environment.
public  ObjectevalObject(Node node)
     Returns the object value of the node.
abstract public  ObjectevalObject(Node node, ExprEnvironment env)
     Returns the object value of the node.
public  StringevalString(Node node)
     Returns the expression evaluated as a string.
abstract public  StringevalString(Node node, ExprEnvironment env)
     Returns the string value of the node.
public  voidevalString(CharBuffer cb, Node node)
     Fills a char buffer with the evaluated string results.
public  voidevalString(CharBuffer cb, Node node, ExprEnvironment env)
     Fills a char buffer with the evaluated string results.
public  VarevalVar(Node node, ExprEnvironment env)
     Evaluates to a variable.
Parameters:
  node - the node to evaluate and use as a context.
Parameters:
  env - the variable environment.
public  AbstractPatterngetListContext()
    
public  booleanisBoolean()
     true if the expression prefers to return a boolean.
public  booleanisNodeSet()
     true if the expression prefers to return a node set.
public  booleanisNumber()
     true if the expression prefers to return a number.
public  booleanisString()
     true if the expression prefers to return a string.
public  voidsetListContext(AbstractPattern listContext)
    
public  voidsetVar(String name, Node node, Env env)
     Sets a variable with the expression's value.
protected static  doublestringToNumber(String string)
     Convert a string to a double following XPath.
Parameters:
  string - string to be treated as a double.
public static  booleantoBoolean(Object value)
     Convert a Java object to a boolean using the XPath rules.
public static  doubletoDouble(Object value)
     Convert a Java object to a double using the XPath rules.
public static  NodetoNode(Object value)
     Convert a Java object to a node using the XPath rules.
protected  AbstractPatterntoNodeList()
     Convert from an expression to a pattern.
public static  StringtoString(Object value)
     Convert a Java object to a string using the XPath rules.

Field Detail
ADD
final protected static int ADD(Code)



AND
final protected static int AND(Code)



ATTRIBUTE
final protected static int ATTRIBUTE(Code)



BASE_URI
final protected static int BASE_URI(Code)



BOOLEAN
final protected static int BOOLEAN(Code)



BOOLEAN_EQ
final protected static int BOOLEAN_EQ(Code)



BOOLEAN_NEQ
final protected static int BOOLEAN_NEQ(Code)



CEILING
final protected static int CEILING(Code)



CONCAT
final protected static int CONCAT(Code)



CONST
final protected static int CONST(Code)



CONTAINS
final protected static int CONTAINS(Code)



COUNT
final protected static int COUNT(Code)



DIV
final protected static int DIV(Code)



ELEMENT
final protected static int ELEMENT(Code)



EQ
final protected static int EQ(Code)



FALSE
final protected static int FALSE(Code)



FLOOR
final protected static int FLOOR(Code)



FORMAT_NUMBER
final protected static int FORMAT_NUMBER(Code)



FUNCTION_AVAILABLE
final protected static int FUNCTION_AVAILABLE(Code)



GE
final protected static int GE(Code)



GENERATE_ID
final protected static int GENERATE_ID(Code)



GT
final protected static int GT(Code)



ID
final protected static int ID(Code)



IF
final protected static int IF(Code)



LANG
final protected static int LANG(Code)



LAST
final protected static int LAST(Code)



LAST_FUN
final protected static int LAST_FUN(Code)



LE
final protected static int LE(Code)



LOCAL_PART
final protected static int LOCAL_PART(Code)



LT
final protected static int LT(Code)



MOD
final protected static int MOD(Code)



MUL
final protected static int MUL(Code)



NAMESPACE
final protected static int NAMESPACE(Code)



NEG
final protected static int NEG(Code)



NEQ
final protected static int NEQ(Code)



NODE_SET
final protected static int NODE_SET(Code)



NORMALIZE
final protected static int NORMALIZE(Code)



NOT
final protected static int NOT(Code)



NUMBER
final protected static int NUMBER(Code)



NUMBER_EQ
final protected static int NUMBER_EQ(Code)



NUMBER_GE
final protected static int NUMBER_GE(Code)



NUMBER_GT
final protected static int NUMBER_GT(Code)



NUMBER_LE
final protected static int NUMBER_LE(Code)



NUMBER_LT
final protected static int NUMBER_LT(Code)



NUMBER_NEQ
final protected static int NUMBER_NEQ(Code)



OR
final protected static int OR(Code)



POSITION
final public static int POSITION(Code)



QNAME
final protected static int QNAME(Code)



QUO
final protected static int QUO(Code)



ROUND
final protected static int ROUND(Code)



SELF
final protected static int SELF(Code)



SELF_NAME
final protected static int SELF_NAME(Code)



STARTS_WITH
final protected static int STARTS_WITH(Code)



STRING
final protected static int STRING(Code)



STRING_EQ
final protected static int STRING_EQ(Code)



STRING_LENGTH
final protected static int STRING_LENGTH(Code)



STRING_NEQ
final protected static int STRING_NEQ(Code)



SUB
final protected static int SUB(Code)



SUBSTRING
final protected static int SUBSTRING(Code)



SUBSTRING_AFTER
final protected static int SUBSTRING_AFTER(Code)



SUBSTRING_BEFORE
final protected static int SUBSTRING_BEFORE(Code)



SUM
final protected static int SUM(Code)



SYSTEM_PROPERTY
final protected static int SYSTEM_PROPERTY(Code)



TRANSLATE
final protected static int TRANSLATE(Code)



TRUE
final protected static int TRUE(Code)




Constructor Detail
Expr
protected Expr()(Code)




Method Detail
addParam
public void addParam(Env newEnv, String name, Node node, Env env) throws XPathException(Code)
Adds a param with the expression's value.



addVar
public void addVar(Env newEnv, String name, Node node, Env env) throws XPathException(Code)
Adds a variable with the expression's value.



evalBoolean
public boolean evalBoolean(Node node) throws XPathException(Code)
Returns the boolean value of the node.
Parameters:
  node - the node to evaluate and use as a context the boolean value



evalBoolean
abstract public boolean evalBoolean(Node node, ExprEnvironment env) throws XPathException(Code)
Returns the boolean value of the node.
Parameters:
  node - the node to evaluate and use as a context
Parameters:
  env - variable environment. the boolean value.



evalNodeSet
public NodeIterator evalNodeSet(Node node) throws XPathException(Code)
Returns an iterator of matching nodes
Parameters:
  node - the node to evaluate and use as a context the value as a node iterator.



evalNodeSet
public NodeIterator evalNodeSet(Node node, ExprEnvironment env) throws XPathException(Code)
Returns an iterator of matching nodes
Parameters:
  node - the node to evaluate and use as a context
Parameters:
  env - variable environment. the value as a node iterator.



evalNumber
public double evalNumber(Node node) throws XPathException(Code)
Evaluates the expression as a double using the node as a context.
Parameters:
  node - the node to evaluate and use as a context the numeric value.



evalNumber
abstract public double evalNumber(Node node, ExprEnvironment env) throws XPathException(Code)
Evaluates the expression as a number.
Parameters:
  node - the current node.
Parameters:
  env - variable environment. the numeric value.



evalObject
public Object evalObject(Node node) throws XPathException(Code)
Returns the object value of the node.
Parameters:
  node - the node to evaluate and use as a context



evalObject
abstract public Object evalObject(Node node, ExprEnvironment env) throws XPathException(Code)
Returns the object value of the node.
Parameters:
  node - the node to evaluate and use as a context
Parameters:
  env - variable environment.



evalString
public String evalString(Node node) throws XPathException(Code)
Returns the expression evaluated as a string.
Parameters:
  node - the node to evaluate and use as a context the string value of the expression.



evalString
abstract public String evalString(Node node, ExprEnvironment env) throws XPathException(Code)
Returns the string value of the node.
Parameters:
  node - the node to evaluate and use as a context
Parameters:
  env - variable environment.



evalString
public void evalString(CharBuffer cb, Node node) throws XPathException(Code)
Fills a char buffer with the evaluated string results.
Parameters:
  cb - the buffer containing the results.
Parameters:
  node - the node to evaluate and use as a context



evalString
public void evalString(CharBuffer cb, Node node, ExprEnvironment env) throws XPathException(Code)
Fills a char buffer with the evaluated string results.
Parameters:
  cb - the buffer containing the results.
Parameters:
  node - the node to evaluate and use as a context
Parameters:
  env - the variable environment



evalVar
public Var evalVar(Node node, ExprEnvironment env) throws XPathException(Code)
Evaluates to a variable.
Parameters:
  node - the node to evaluate and use as a context.
Parameters:
  env - the variable environment. a variable containing the value.



getListContext
public AbstractPattern getListContext()(Code)



isBoolean
public boolean isBoolean()(Code)
true if the expression prefers to return a boolean.



isNodeSet
public boolean isNodeSet()(Code)
true if the expression prefers to return a node set.



isNumber
public boolean isNumber()(Code)
true if the expression prefers to return a number.



isString
public boolean isString()(Code)
true if the expression prefers to return a string.



setListContext
public void setListContext(AbstractPattern listContext)(Code)



setVar
public void setVar(String name, Node node, Env env) throws XPathException(Code)
Sets a variable with the expression's value.



stringToNumber
protected static double stringToNumber(String string) throws XPathException(Code)
Convert a string to a double following XPath.
Parameters:
  string - string to be treated as a double. the double value.



toBoolean
public static boolean toBoolean(Object value) throws XPathException(Code)
Convert a Java object to a boolean using the XPath rules.



toDouble
public static double toDouble(Object value) throws XPathException(Code)
Convert a Java object to a double using the XPath rules.



toNode
public static Node toNode(Object value) throws XPathException(Code)
Convert a Java object to a node using the XPath rules.



toNodeList
protected AbstractPattern toNodeList()(Code)
Convert from an expression to a pattern.



toString
public static String toString(Object value) throws XPathException(Code)
Convert a Java object to a string using the XPath rules.



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.