public class FullTextTerm extends FullTextExpression
PRECEDENCE_AND, PRECEDENCE_OR, PRECEDENCE_TERM
Constructor and Description |
---|
FullTextTerm(String propertyName,
FullTextTerm copy) |
FullTextTerm(String propertyName,
String text,
boolean not,
boolean escaped,
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(String value)
Evaluate whether the value matches the condition.
|
String |
getBoost() |
int |
getPrecedence()
Get the operator precedence.
|
String |
getPropertyName() |
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() |
FullTextExpression |
simplify()
Simplify the expression if possible (removing duplicate conditions).
|
String |
toString()
Get the string representation of the condition.
|
equals, hashCode
public FullTextTerm(String propertyName, FullTextTerm copy)
public static boolean isFullTextCharacter(char c)
c
- the characterpublic boolean evaluate(String value)
FullTextExpression
evaluate
in class FullTextExpression
value
- the valuepublic FullTextExpression simplify()
FullTextExpression
public String toString()
FullTextExpression
toString
in class FullTextExpression
public String getPropertyName()
public String getBoost()
public boolean isNot()
public String getText()
public int getPrecedence()
FullTextExpression
getPrecedence
in class FullTextExpression
public boolean accept(FullTextVisitor v)
FullTextExpression
accept
in class FullTextExpression
v
- the visitor"Copyright © 2006 - 2015 Adobe Systems Incorporated. All Rights Reserved"