Class FullTextContains
java.lang.Object
org.apache.jackrabbit.oak.spi.query.fulltext.FullTextExpression
org.apache.jackrabbit.oak.spi.query.fulltext.FullTextContains
A group of full-text expressions that reflects a "contains(...)" expression,
and allows to access the original (unparsed) full text term.
-
Field Summary
Fields inherited from class org.apache.jackrabbit.oak.spi.query.fulltext.FullTextExpression
PRECEDENCE_AND, PRECEDENCE_OR, PRECEDENCE_TERM -
Constructor Summary
ConstructorsConstructorDescriptionFullTextContains(String propertyName, String rawText, FullTextExpression base) -
Method Summary
Modifier and TypeMethodDescriptionbooleanLet the expression call the applicable visit method of the visitor.booleanEvaluate whether the value matches the condition.getBase()intGet the operator precedence.booleanisNot()Whether the currentFullTextExpressionis aNOTcondition or not.toString()Get the string representation of the condition.Methods inherited from class org.apache.jackrabbit.oak.spi.query.fulltext.FullTextExpression
equals, hashCode
-
Constructor Details
-
FullTextContains
-
-
Method Details
-
getPrecedence
public int getPrecedence()Description copied from class:FullTextExpressionGet the operator precedence.- Specified by:
getPrecedencein classFullTextExpression- Returns:
- the precedence
-
evaluate
Description copied from class:FullTextExpressionEvaluate whether the value matches the condition.- Specified by:
evaluatein classFullTextExpression- Parameters:
value- the value- Returns:
- true if it matches
-
toString
Description copied from class:FullTextExpressionGet the string representation of the condition.- Specified by:
toStringin classFullTextExpression
-
accept
Description copied from class:FullTextExpressionLet the expression call the applicable visit method of the visitor.- Specified by:
acceptin classFullTextExpression- Parameters:
v- the visitor- Returns:
- true if the visit method returned true
-
getBase
-
getPropertyName
-
getRawText
-
isNot
public boolean isNot()Description copied from class:FullTextExpressionWhether the currentFullTextExpressionis aNOTcondition or not. Default is false- Overrides:
isNotin classFullTextExpression- Returns:
- true if the current condition represent a NOT, false otherwise.
-