xtc.parser
Class Element

java.lang.Object
  extended by xtc.tree.Node
      extended by xtc.parser.Element
All Implemented Interfaces:
java.lang.Iterable<java.lang.Object>, Locatable
Direct Known Subclasses:
Action, Literal, NodeMarker, NonTerminal, OrderedChoice, ParseTreeNode, Sequence, Terminal, UnaryOperator, ValueElement

public abstract class Element
extends Node

The superclass of all grammar elements.

Version:
$Revision: 1.13 $
Author:
Robert Grimm

Nested Class Summary
static class Element.Tag
          An element's tag.
 
Constructor Summary
Element()
          Create a new element.
 
Method Summary
abstract  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, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Element

public Element()
Create a new element.

Method Detail

tag

public abstract Element.Tag tag()
Get this element's tag.

Returns:
The tag.


Copyright © 2012. All Rights Reserved.