public enum EqualityExprOp extends Enum<EqualityExprOp> implements BinaryOperator
Enum Constant and Description |
---|
CONTAINS
contains operator
|
EQUALS
equals operator
|
NOTEQUAL
not equals operator
|
WORDTEST
wordtest operator
|
Modifier and Type | Method and Description |
---|---|
protected OXPathType |
computeEquality(OXPathType lhs,
OXPathType rhs)
Precomputes lists needed by all operators.
|
String |
getOperator()
returns the
String representation of the operator |
static EqualityExprOp |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static EqualityExprOp[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
evaluate
public static final EqualityExprOp EQUALS
public static final EqualityExprOp NOTEQUAL
public static final EqualityExprOp WORDTEST
public static final EqualityExprOp CONTAINS
public static EqualityExprOp[] values()
for (EqualityExprOp c : EqualityExprOp.values()) System.out.println(c);
public static EqualityExprOp valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullprotected OXPathType computeEquality(OXPathType lhs, OXPathType rhs) throws OXPathException
EQUALITY
and NONEQUALITY
only.lhs
- left hand siderhs
- right hand sideOXPathException
public String getOperator()
String
representation of the operatorgetOperator
in interface Operator
String
representation of the operatorCopyright © 2020 OXPath Team. All rights reserved.