|
||||||||||
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.NumericExpr
public class NumericExpr
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 | |
---|---|
NumericExpr(double value)
|
|
NumericExpr(int code,
AbstractPattern listPattern)
|
|
NumericExpr(int code,
AbstractPattern axis,
AbstractPattern pattern)
|
|
NumericExpr(int code,
java.util.ArrayList<Expr> args)
|
|
NumericExpr(int code,
Expr expr)
|
|
NumericExpr(int code,
Expr left,
Expr right)
|
Method Summary | |
---|---|
boolean |
evalBoolean(org.w3c.dom.Node node,
ExprEnvironment env)
Evaluates the expression as a boolean. |
double |
evalNumber(org.w3c.dom.Node node,
ExprEnvironment env)
Evaluates the expression as a number. |
java.lang.Object |
evalObject(org.w3c.dom.Node node,
ExprEnvironment env)
Evaluates the expression as an object. |
java.lang.String |
evalString(org.w3c.dom.Node node,
ExprEnvironment env)
Evaluates the expression as a string. |
Var |
evalVar(org.w3c.dom.Node node,
ExprEnvironment env)
Evaluates to a variable. |
AbstractPattern |
getListContext()
|
double |
getValue()
Returns the expression's value. |
boolean |
isConstant()
Returns true of the expression is constant. |
boolean |
isNumber()
true if the expression prefers to return a number. |
java.lang.String |
toString()
|
Methods inherited from class com.caucho.xpath.Expr |
---|
addParam, addVar, evalBoolean, evalNodeSet, evalNodeSet, evalNumber, evalObject, evalString, evalString, evalString, isBoolean, isNodeSet, isString, 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 NumericExpr(int code, Expr left, Expr right)
public NumericExpr(int code, Expr expr)
public NumericExpr(double value)
public NumericExpr(int code, java.util.ArrayList<Expr> args)
public NumericExpr(int code, AbstractPattern axis, AbstractPattern pattern)
public NumericExpr(int code, AbstractPattern listPattern)
Method Detail |
---|
public AbstractPattern getListContext()
getListContext
in class Expr
public boolean isNumber()
Expr
isNumber
in class Expr
public boolean isConstant()
public double getValue()
public Var evalVar(org.w3c.dom.Node node, ExprEnvironment env) throws XPathException
evalVar
in class Expr
node
- the node to evaluate and use as a context.env
- the variable environment.
XPathException
public double evalNumber(org.w3c.dom.Node node, ExprEnvironment env) throws XPathException
evalNumber
in class Expr
node
- the node to evaluate and use as a context.env
- the variable environment.
XPathException
public boolean evalBoolean(org.w3c.dom.Node node, ExprEnvironment env) throws XPathException
evalBoolean
in class Expr
node
- the current nodeenv
- the variable environment.
XPathException
public java.lang.String evalString(org.w3c.dom.Node node, ExprEnvironment env) throws XPathException
evalString
in class Expr
node
- the current nodeenv
- the variable environment.
XPathException
public java.lang.Object evalObject(org.w3c.dom.Node node, ExprEnvironment env) throws XPathException
evalObject
in class Expr
node
- the current nodeenv
- the variable environment.
XPathException
public 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 |