Class Constituent

java.lang.Object
  extended byConstituent
Direct Known Subclasses:
AugmentedConstituent

public class Constituent
extends java.lang.Object

A constituent of a parse represents a syntactic element.


Field Summary
(package private)  Symbol category
          Main syntactic category for this Constituent.
 
Constructor Summary
Constituent(Symbol category)
          Create a new Constituent with the given attributes.
 
Method Summary
 Symbol getCategory()
          Returns the syntactic category of this Constituent.
 java.lang.String toString()
          Returns the printable representation of this Constituent as a String.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

category

Symbol category
Main syntactic category for this Constituent.

Constructor Detail

Constituent

public Constituent(Symbol category)
Create a new Constituent with the given attributes.

Method Detail

getCategory

public Symbol getCategory()
Returns the syntactic category of this Constituent.


toString

public java.lang.String toString()
Returns the printable representation of this Constituent as a String.