public class FullTextTerm extends FullTextExpression
PRECEDENCE_AND, PRECEDENCE_OR, PRECEDENCE_TERM
Constructor and Description |
---|
FullTextTerm(java.lang.String propertyName,
FullTextTerm copy) |
FullTextTerm(java.lang.String propertyName,
java.lang.String text,
boolean not,
boolean escaped,
java.lang.String boost) |
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.
|
java.lang.String |
getBoost() |
int |
getPrecedence()
Get the operator precedence.
|
java.lang.String |
getPropertyName() |
java.lang.String |
getText() |
static boolean |
isFullTextCharacter(char c)
Whether or not the given character is part of a full-text term that
should be indexed.
|
boolean |
isNot()
Whether the current
FullTextExpression is a NOT condition or not. |
FullTextExpression |
simplify()
Simplify the expression if possible (removing duplicate conditions).
|
java.lang.String |
toString()
Get the string representation of the condition.
|
equals, hashCode
public FullTextTerm(java.lang.String propertyName, FullTextTerm copy)
public FullTextTerm(java.lang.String propertyName, java.lang.String text, boolean not, boolean escaped, java.lang.String boost)
public static boolean isFullTextCharacter(char c)
c
- the characterpublic 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 java.lang.String getPropertyName()
public java.lang.String getBoost()
public boolean isNot()
FullTextExpression
FullTextExpression
is a NOT
condition or not. Default is
falseisNot
in class FullTextExpression
public java.lang.String getText()
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