public final class KeywordAttributeImpl extends AttributeImpl implements KeywordAttribute
KeywordAttribute
.Constructor and Description |
---|
KeywordAttributeImpl()
Initialize this attribute with the keyword value as false.
|
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 obj) |
int |
hashCode() |
boolean |
isKeyword()
Returns
true if the current token is a keyword, otherwise
false |
void |
setKeyword(boolean isKeyword)
Marks the current token as keyword if set to
true . |
clone, reflectAsString, reflectWith
public KeywordAttributeImpl()
public void clear()
AttributeImpl
clear
in class AttributeImpl
public void copyTo(AttributeImpl target)
AttributeImpl
copyTo
in class AttributeImpl
public boolean isKeyword()
KeywordAttribute
true
if the current token is a keyword, otherwise
false
isKeyword
in interface KeywordAttribute
true
if the current token is a keyword, otherwise
false
KeywordAttribute.setKeyword(boolean)
public void setKeyword(boolean isKeyword)
KeywordAttribute
true
.setKeyword
in interface KeywordAttribute
isKeyword
- true
if the current token is a keyword, otherwise
false
.KeywordAttribute.isKeyword()
Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.