public class FlagsAttributeImpl extends AttributeImpl implements FlagsAttribute, Cloneable, Serializable
enableBackwards
Constructor and Description |
---|
FlagsAttributeImpl() |
Modifier and Type | Method and Description |
---|---|
void |
clear()
Clears the values in this AttributeImpl and resets it to its
default value.
|
void |
copyTo(AttributeImpl target)
Copies the values from this Attribute into the passed-in
target attribute.
|
boolean |
equals(Object other) |
int |
getFlags()
Get the bitset for any bits that have been set.
|
int |
hashCode() |
void |
setFlags(int flags) |
clone, reflectAsString, reflectWith, toString
public int getFlags()
TypeAttribute.type()
, although they do share similar purposes.
The flags can be used to encode information about the token for use by other TokenFilter
s.getFlags
in interface FlagsAttribute
public void setFlags(int flags)
setFlags
in interface FlagsAttribute
getFlags()
public void clear()
AttributeImpl
clear
in class AttributeImpl
public void copyTo(AttributeImpl target)
AttributeImpl
copyTo
in class AttributeImpl