com.ximpleware.extended
Class BinaryExpr
java.lang.Object
com.ximpleware.extended.xpath.Expr
com.ximpleware.extended.BinaryExpr
public class BinaryExpr
- extends Expr
The parser.java uses this class to contruct the corresponding
AST for XPath expression when there are two operands and one
operator
ADD
public static final int ADD
- See Also:
- Constant Field Values
SUB
public static final int SUB
- See Also:
- Constant Field Values
MULT
public static final int MULT
- See Also:
- Constant Field Values
DIV
public static final int DIV
- See Also:
- Constant Field Values
MOD
public static final int MOD
- See Also:
- Constant Field Values
OR
public static final int OR
- See Also:
- Constant Field Values
AND
public static final int AND
- See Also:
- Constant Field Values
EQ
public static final int EQ
- See Also:
- Constant Field Values
NE
public static final int NE
- See Also:
- Constant Field Values
LE
public static final int LE
- See Also:
- Constant Field Values
GE
public static final int GE
- See Also:
- Constant Field Values
LT
public static final int LT
- See Also:
- Constant Field Values
GT
public static final int GT
- See Also:
- Constant Field Values
BUF_SZ_EXP
public static final int BUF_SZ_EXP
- See Also:
- Constant Field Values
op
protected int op
left
protected Expr left
right
protected Expr right
fib1
protected FastIntBuffer fib1
BinaryExpr
public BinaryExpr(Expr l,
int o,
Expr r)
- constructor
- Parameters:
l - o - r -
toString
public String toString()
- Specified by:
toString in class Expr
evalBoolean
public boolean evalBoolean(VTDNavHuge vn)
- Specified by:
evalBoolean in class Expr
evalNumber
public double evalNumber(VTDNavHuge vn)
- Specified by:
evalNumber in class Expr
evalNodeSet
public int evalNodeSet(VTDNavHuge vn)
throws XPathEvalExceptionHuge
- Specified by:
evalNodeSet in class Expr
- Throws:
XPathEvalExceptionHuge
evalString
public String evalString(VTDNavHuge vn)
- Specified by:
evalString in class Expr
reset
public void reset(VTDNavHuge vn)
- Specified by:
reset in class Expr
isNodeSet
public boolean isNodeSet()
- Specified by:
isNodeSet in class Expr
isNumerical
public boolean isNumerical()
- Specified by:
isNumerical in class Expr
isString
public boolean isString()
- Specified by:
isString in class Expr
isBoolean
public boolean isBoolean()
- Specified by:
isBoolean in class Expr
requireContextSize
public boolean requireContextSize()
- Specified by:
requireContextSize in class Expr
setContextSize
public void setContextSize(int size)
- Specified by:
setContextSize in class Expr
setPosition
public void setPosition(int pos)
- Specified by:
setPosition in class Expr
adjust
public int adjust(int n)
- Specified by:
adjust in class Expr
Copyright © 2013. All Rights Reserved.