xtc.parser
Class GenericRecursionValue
java.lang.Object
xtc.tree.Node
xtc.parser.Element
xtc.parser.ValueElement
xtc.parser.GenericValue
xtc.parser.GenericActionValue
xtc.parser.GenericRecursionValue
- All Implemented Interfaces:
- java.lang.Iterable<java.lang.Object>, InternalElement, Locatable
public class GenericRecursionValue
- extends GenericActionValue
Element to set the semantic value to a list of actions. This element sets the semantic value to
a pair, whose value is an action that produces a generic node. The
generic node's children are a production's component expressions,
with the action's argument being the first child.
- Version:
- $Revision: 1.10 $
- Author:
- Robert Grimm
|
Field Summary |
Binding |
list
The binding for the variable referencing the next pair. |
|
Constructor Summary |
GenericRecursionValue(java.lang.String name,
java.lang.String first,
java.util.List<Binding> children,
java.util.List<Binding> formatting,
Binding list)
Create a new generic recursion 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 |
list
public final Binding list
- The binding for the variable referencing the next pair.
GenericRecursionValue
public GenericRecursionValue(java.lang.String name,
java.lang.String first,
java.util.List<Binding> children,
java.util.List<Binding> formatting,
Binding list)
- Create a new generic recursion value.
- Parameters:
name - The name of the generic node.first - The action's argument.children - The list of children.formatting - The list of bindings for formatting.list - The binding for the list.
tag
public Element.Tag tag()
- Description copied from class:
Element
- Get this element's tag.
- Overrides:
tag in class GenericActionValue
- Returns:
- The tag.
hashCode
public int hashCode()
- Overrides:
hashCode in class GenericActionValue
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals in class GenericActionValue
Copyright © 2012. All Rights Reserved.