Class FullTextAnd
- java.lang.Object
-
- org.apache.jackrabbit.oak.spi.query.fulltext.FullTextExpression
-
- org.apache.jackrabbit.oak.spi.query.fulltext.FullTextAnd
-
public class FullTextAnd extends FullTextExpression
A fulltext "and" condition.
-
-
Field Summary
Fields Modifier and Type Field Description java.util.List<FullTextExpression>
list
-
Fields inherited from class org.apache.jackrabbit.oak.spi.query.fulltext.FullTextExpression
PRECEDENCE_AND, PRECEDENCE_OR, PRECEDENCE_TERM
-
-
Constructor Summary
Constructors Constructor Description FullTextAnd(java.util.List<FullTextExpression> list)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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()
java.lang.String
toString()
Get the string representation of the condition.-
Methods inherited from class org.apache.jackrabbit.oak.spi.query.fulltext.FullTextExpression
equals, hashCode, isNot
-
-
-
-
Field Detail
-
list
public final java.util.List<FullTextExpression> list
-
-
Constructor Detail
-
FullTextAnd
public FullTextAnd(java.util.List<FullTextExpression> list)
-
-
Method Detail
-
evaluate
public boolean evaluate(java.lang.String value)
Description copied from class:FullTextExpression
Evaluate whether the value matches the condition.- Specified by:
evaluate
in classFullTextExpression
- Parameters:
value
- the value- Returns:
- true if it matches
-
simplify
public FullTextExpression simplify()
-
toString
public java.lang.String toString()
Description copied from class:FullTextExpression
Get the string representation of the condition.- Specified by:
toString
in classFullTextExpression
-
getPrecedence
public int getPrecedence()
Description copied from class:FullTextExpression
Get the operator precedence.- Specified by:
getPrecedence
in classFullTextExpression
- Returns:
- the precedence
-
accept
public boolean accept(FullTextVisitor v)
Description copied from class:FullTextExpression
Let the expression call the applicable visit method of the visitor.- Specified by:
accept
in classFullTextExpression
- Parameters:
v
- the visitor- Returns:
- true if the visit method returned true
-
-