|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.caucho.xpath.Expr
com.caucho.xpath.expr.ObjectJavaExpr
public class ObjectJavaExpr
Implements the object java extension functions.
| Field Summary |
|---|
| Fields inherited from class com.caucho.xpath.Expr |
|---|
ADD, AND, ATTRIBUTE, BASE_URI, BOOLEAN, BOOLEAN_EQ, BOOLEAN_NEQ, CEILING, CONCAT, CONST, CONTAINS, COUNT, DIV, ELEMENT, EQ, FALSE, FLOOR, FORMAT_NUMBER, FUNCTION_AVAILABLE, GE, GENERATE_ID, GT, ID, IF, LANG, LAST, LAST_FUN, LE, LOCAL_PART, LT, MOD, MUL, NAMESPACE, NEG, NEQ, NODE_SET, NORMALIZE, NOT, NUMBER, NUMBER_EQ, NUMBER_GE, NUMBER_GT, NUMBER_LE, NUMBER_LT, NUMBER_NEQ, OR, POSITION, QNAME, QUO, ROUND, SELF, SELF_NAME, STARTS_WITH, STRING, STRING_EQ, STRING_LENGTH, STRING_NEQ, SUB, SUBSTRING, SUBSTRING_AFTER, SUBSTRING_BEFORE, SUM, SYSTEM_PROPERTY, TRANSLATE, TRUE |
| Constructor Summary | |
|---|---|
ObjectJavaExpr(java.lang.reflect.Method method,
Expr objArg,
java.util.ArrayList args)
Create a StringExpression with three arguments. |
|
| Method Summary | |
|---|---|
boolean |
evalBoolean(org.w3c.dom.Node node,
ExprEnvironment env)
Evaluate the expression as a boolean, i.e. |
double |
evalNumber(org.w3c.dom.Node node,
ExprEnvironment env)
Evaluate the expression as a double, i.e. |
java.lang.Object |
evalObject(org.w3c.dom.Node node,
ExprEnvironment env)
Evaluate the expression as an object, i.e. |
java.lang.String |
evalString(org.w3c.dom.Node node,
ExprEnvironment env)
Evaluates the expression as an string. |
boolean |
isBoolean()
True if this returns a boolean. |
boolean |
isNumber()
True if this returns a boolean. |
boolean |
isString()
True if it returns a string. |
java.lang.String |
toString()
Return the expression as a string. |
| Methods inherited from class com.caucho.xpath.Expr |
|---|
addParam, addVar, evalBoolean, evalNodeSet, evalNodeSet, evalNumber, evalObject, evalString, evalString, evalString, evalVar, getListContext, isNodeSet, setListContext, setVar, stringToNumber, toBoolean, toDouble, toNode, toNodeList, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ObjectJavaExpr(java.lang.reflect.Method method,
Expr objArg,
java.util.ArrayList args)
method - Java methodargs - the arguments| Method Detail |
|---|
public boolean isString()
isString in class Exprpublic boolean isBoolean()
isBoolean in class Exprpublic boolean isNumber()
isNumber in class Expr
public java.lang.String evalString(org.w3c.dom.Node node,
ExprEnvironment env)
throws XPathException
evalString in class Exprnode - the current nodeenv - the variable environment.
XPathException
public boolean evalBoolean(org.w3c.dom.Node node,
ExprEnvironment env)
throws XPathException
evalBoolean in class Exprnode - the current nodeenv - the variable environment.
XPathException
public double evalNumber(org.w3c.dom.Node node,
ExprEnvironment env)
throws XPathException
evalNumber in class Exprnode - the current nodeenv - the variable environment.
XPathException
public java.lang.Object evalObject(org.w3c.dom.Node node,
ExprEnvironment env)
throws XPathException
evalObject in class Exprnode - the current nodeenv - the variable environment.
XPathExceptionpublic java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||