Interface FlagsAttribute
-
- All Superinterfaces:
Attribute
- All Known Implementing Classes:
FlagsAttributeImpl,Token
public interface FlagsAttribute extends Attribute
This attribute can be used to pass different flags down theTokenizerchain, eg from one TokenFilter to another one.- WARNING: This API is experimental and might change in incompatible ways in the next release.
- While we think this is here to stay, we may want to change it to be a long.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intgetFlags()Get the bitset for any bits that have been set.voidsetFlags(int flags)
-
-
-
Method Detail
-
getFlags
int getFlags()
Get the bitset for any bits that have been set. This is completely distinct fromTypeAttribute.type(), although they do share similar purposes. The flags can be used to encode information about the token for use by otherTokenFilters.- Returns:
- The bits
-
setFlags
void setFlags(int flags)
- See Also:
getFlags()
-
-