xtc.parser
Class GenericActionValue

java.lang.Object
  extended by xtc.tree.Node
      extended by xtc.parser.Element
          extended by xtc.parser.ValueElement
              extended by xtc.parser.GenericValue
                  extended by xtc.parser.GenericActionValue
All Implemented Interfaces:
java.lang.Iterable<java.lang.Object>, InternalElement, Locatable
Direct Known Subclasses:
GenericRecursionValue

public class GenericActionValue
extends GenericValue

Element to set the semantic value to an action. This element sets the semantic value to 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.9 $
Author:
Robert Grimm

Nested Class Summary
 
Nested classes/interfaces inherited from class xtc.parser.Element
Element.Tag
 
Field Summary
 java.lang.String first
          The name of the action's argument, which also becomes the generic node's first child.
 
Fields inherited from class xtc.parser.GenericValue
children, formatting, name
 
Constructor Summary
GenericActionValue(java.lang.String name, java.lang.String first, java.util.List<Binding> children, java.util.List<Binding> formatting)
          Create a new generic action value.
 
Method Summary
 boolean equals(java.lang.Object o)
           
 int hashCode()
           
 Element.Tag tag()
          Get this element's tag.
 
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
 

Field Detail

first

public final java.lang.String first
The name of the action's argument, which also becomes the generic node's first child.

Constructor Detail

GenericActionValue

public GenericActionValue(java.lang.String name,
                          java.lang.String first,
                          java.util.List<Binding> children,
                          java.util.List<Binding> formatting)
Create a new generic action 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.
Method Detail

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.