dk.brics.grammar
Class StringTerminalEntity

java.lang.Object
  extended by dk.brics.grammar.Entity
      extended by dk.brics.grammar.TerminalEntity
          extended by dk.brics.grammar.StringTerminalEntity

public class StringTerminalEntity
extends TerminalEntity

A string terminal.


Constructor Summary
StringTerminalEntity(String string)
          Constructs a new string terminal.
 
Method Summary
 String getString()
          Returns the string of this string terminal.
 String toString()
          Returns string representation of this entity.
<T> T
visitBy(EntityVisitor<T> v)
          Visits this entity with the given visitor.
 
Methods inherited from class dk.brics.grammar.Entity
getExample, getLabel, isExplicitlyLabeled, isLabeled, setLabel
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StringTerminalEntity

public StringTerminalEntity(String string)
Constructs a new string terminal.

Parameters:
string - the string
Method Detail

getString

public String getString()
Returns the string of this string terminal.

Returns:
the string

toString

public String toString()
Returns string representation of this entity.

Overrides:
toString in class Object

visitBy

public <T> T visitBy(EntityVisitor<T> v)
Description copied from class: Entity
Visits this entity with the given visitor.

Specified by:
visitBy in class Entity
Parameters:
v - entity visitor


Copyright © 2005-2008 Anders Møller.