dk.brics.xsugar.stylesheet
Class Nonterminal

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

public class Nonterminal
extends Unit
implements Item, Value

Nonterminal.


Constructor Summary
Nonterminal(String nonterminal, String arg, String example, Location loc)
          Constructs a new nonterminal.
 
Method Summary
 String getArg()
          Returns the argument name of this nonterminal.
 String getExample()
          Returns the example string of this nonterminal.
 String getNonterminal()
          Returns the nonterminal name of this nonterminal.
 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

Nonterminal

public Nonterminal(String nonterminal,
                   String arg,
                   String example,
                   Location loc)
Constructs a new nonterminal.

Parameters:
nonterminal - nonterminal 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 nonterminal.

Returns:
atgument name, null if absent

getExample

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

Returns:
example string, null if absent

getNonterminal

public String getNonterminal()
Returns the nonterminal name of this nonterminal.

Returns:
nonterminal name

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.