public abstract class FullTextExpression
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
PRECEDENCE_AND
The operator precedence for AND conditions.
|
static int |
PRECEDENCE_OR
The operator precedence for OR conditions.
|
static int |
PRECEDENCE_TERM
The operator precedence for terms.
|
Constructor and Description |
---|
FullTextExpression() |
Modifier and Type | Method and Description |
---|---|
abstract boolean |
accept(FullTextVisitor v)
Let the expression call the applicable visit method of the visitor.
|
boolean |
equals(java.lang.Object other) |
abstract boolean |
evaluate(java.lang.String value)
Evaluate whether the value matches the condition.
|
abstract int |
getPrecedence()
Get the operator precedence.
|
int |
hashCode() |
boolean |
isNot()
Whether the current
FullTextExpression is a NOT condition or not. |
abstract java.lang.String |
toString()
Get the string representation of the condition.
|
public static final int PRECEDENCE_OR
public static final int PRECEDENCE_AND
public static final int PRECEDENCE_TERM
public abstract int getPrecedence()
public abstract boolean evaluate(java.lang.String value)
value
- the valuepublic abstract java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object other)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public abstract boolean accept(FullTextVisitor v)
v
- the visitorpublic boolean isNot()
FullTextExpression
is a NOT
condition or not. Default is
falseCopyright © 2010 - 2020 Adobe. All Rights Reserved