dk.brics.xsugar.stylesheet
Class StringTerminal

java.lang.Object
  extended by dk.brics.xsugar.stylesheet.Unit
      extended by dk.brics.xsugar.stylesheet.StringTerminal
All Implemented Interfaces:
Item, Value

public class StringTerminal
extends Unit
implements Item, Value

String terminal.


Constructor Summary
StringTerminal(String text, Location loc)
          Constructs a new string terminal.
 
Method Summary
 String getText()
          Returns the string of this string terminal.
 void setText(String text)
          Sets the string of this string terminal.
 void visit(Visitor visitor)
          Visits this node.
 
Methods inherited from class dk.brics.xsugar.stylesheet.Unit
getLocation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StringTerminal

public StringTerminal(String text,
                      Location loc)
Constructs a new string terminal.

Parameters:
text - string
loc - source location
Method Detail

getText

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

Returns:
string

setText

public void setText(String text)
Sets the string of this string terminal.

Parameters:
text - string

visit

public void visit(Visitor visitor)
Visits this node.

Specified by:
visit in interface Item
Specified by:
visit in interface Value
Parameters:
visitor - visitor


Copyright © 2004-2007 Anders Møller & Claus Brabrand.