public class FullTextOr extends FullTextExpression
Modifier and Type | Field and Description |
---|---|
java.util.List<FullTextExpression> |
list |
PRECEDENCE_AND, PRECEDENCE_OR, PRECEDENCE_TERM
Constructor and Description |
---|
FullTextOr(java.util.List<FullTextExpression> list) |
Modifier and Type | Method and Description |
---|---|
boolean |
accept(FullTextVisitor v)
Let the expression call the applicable visit method of the visitor.
|
boolean |
evaluate(java.lang.String value)
Evaluate whether the value matches the condition.
|
int |
getPrecedence()
Get the operator precedence.
|
FullTextExpression |
simplify()
Simplify the expression if possible (removing duplicate conditions).
|
java.lang.String |
toString()
Get the string representation of the condition.
|
equals, hashCode, isNot
public final java.util.List<FullTextExpression> list
public FullTextOr(java.util.List<FullTextExpression> list)
public boolean evaluate(java.lang.String value)
FullTextExpression
evaluate
in class FullTextExpression
value
- the valuepublic FullTextExpression simplify()
FullTextExpression
public java.lang.String toString()
FullTextExpression
toString
in class FullTextExpression
public int getPrecedence()
FullTextExpression
getPrecedence
in class FullTextExpression
public boolean accept(FullTextVisitor v)
FullTextExpression
accept
in class FullTextExpression
v
- the visitorCopyright © 2010 - 2020 Adobe. All Rights Reserved