xtc.parser
Class TokenValue
java.lang.Object
xtc.tree.Node
xtc.parser.Element
xtc.parser.ValueElement
xtc.parser.TokenValue
- All Implemented Interfaces:
- java.lang.Iterable<java.lang.Object>, InternalElement, Locatable
public class TokenValue
- extends ValueElement
Element to collect a production's text as a token.
- Version:
- $Revision: 1.3 $
- Author:
- Robert Grimm
|
Field Summary |
java.lang.String |
text
The statically known text, which is optional. |
static TokenValue |
VALUE
The canonical token value element with unknown text. |
|
Constructor Summary |
TokenValue()
Create a new token value. |
TokenValue(java.lang.String text)
Create a new token value. |
| Methods inherited from class xtc.tree.Node |
add, add, addAll, addAll, addAll, addAll, addAllTo, addNode, contains, get, getBoolean, getBooleanProperty, getGeneric, getList, getLocation, getName, getNode, getProperty, getString, getStringProperty, getTokenText, hasLocation, hasName, hasProperty, hasTraversal, hasVariable, indexOf, isAnnotation, isEmpty, isGeneric, isList, isToken, iterator, lastIndexOf, properties, remove, removeProperty, set, setLocation, setLocation, setProperty, size, strip, toAnnotation, toList, toString, toToken, write |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
VALUE
public static final TokenValue VALUE
- The canonical token value element with unknown text.
text
public final java.lang.String text
- The statically known text, which is optional.
TokenValue
public TokenValue()
- Create a new token value.
TokenValue
public TokenValue(java.lang.String text)
- Create a new token value.
- Parameters:
text - The statically determined text.
tag
public Element.Tag tag()
- Description copied from class:
Element
- Get this element's tag.
- Specified by:
tag in class Element
- Returns:
- The tag.
hashCode
public int hashCode()
- Overrides:
hashCode in class java.lang.Object
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals in class java.lang.Object
Copyright © 2012. All Rights Reserved.