dk.brics.xsugar.stylesheet
Class RegexpTerminal

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

public class RegexpTerminal
extends Unit
implements Item, Name, Value

Regexp terminal.


Constructor Summary
RegexpTerminal(String terminal, String arg, String example, Location loc)
          Constructs a new regexp terminal.
 
Method Summary
 String getArg()
          Returns the argument name of this regexp terminal.
 String getExample()
          Returns the example string of this regexp terminal.
 String getTerminal()
          Returns the regexp name of this regexp terminal.
 void setTerminal(String terminal)
          Sets the regexp name of this regexp 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

RegexpTerminal

public RegexpTerminal(String terminal,
                      String arg,
                      String example,
                      Location loc)
Constructs a new regexp terminal.

Parameters:
terminal - regexp name
arg - argument name, null if absent
example - example string, null if absent
loc - source location
Method Detail

getArg

public String getArg()
Returns the argument name of this regexp terminal.

Returns:
argument name, null if absent

getExample

public String getExample()
Returns the example string of this regexp terminal.

Returns:
example string, null if absent

getTerminal

public String getTerminal()
Returns the regexp name of this regexp terminal.

Returns:
regexp name

setTerminal

public void setTerminal(String terminal)
Sets the regexp name of this regexp terminal.

Parameters:
terminal - regexp name

visit

public void visit(Visitor visitor)
Visits this node.

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


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