|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface KeywordAttribute
This attribute can be used to mark a token as a keyword. Keyword aware
TokenStream
s can decide to modify a token based on the return value
of isKeyword()
if the token is modified. Stemming filters for
instance can use this attribute to conditionally skip a term if
isKeyword()
returns true
.
Method Summary | |
---|---|
boolean |
isKeyword()
Returns true iff the current token is a keyword, otherwise
false / |
void |
setKeyword(boolean isKeyword)
Marks the current token as keyword iff set to true . |
Method Detail |
---|
boolean isKeyword()
true
iff the current token is a keyword, otherwise
false
/
true
iff the current token is a keyword, otherwise
false
/void setKeyword(boolean isKeyword)
true
.
isKeyword
- true
iff the current token is a keyword, otherwise
false
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |