public abstract class StringTerm extends SearchTerm
Modifier and Type | Field and Description |
---|---|
protected boolean |
ignoreCase
Ignore case when comparing?
|
protected java.lang.String |
pattern
The pattern.
|
Modifier | Constructor and Description |
---|---|
protected |
StringTerm(java.lang.String pattern)
Construct a StringTerm with the given pattern.
|
protected |
StringTerm(java.lang.String pattern,
boolean ignoreCase)
Construct a StringTerm with the given pattern and ignoreCase flag.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj)
Equality comparison.
|
boolean |
getIgnoreCase()
Return true if we should ignore case when matching.
|
java.lang.String |
getPattern()
Return the string to match with.
|
int |
hashCode()
Compute a hashCode for this object.
|
protected boolean |
match(java.lang.String s) |
match
protected java.lang.String pattern
protected boolean ignoreCase
protected StringTerm(java.lang.String pattern)
pattern
- the patternprotected StringTerm(java.lang.String pattern, boolean ignoreCase)
pattern
- the patternignoreCase
- should we ignore case?public java.lang.String getPattern()
public boolean getIgnoreCase()
protected boolean match(java.lang.String s)
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object