dk.brics.xsugar.stylesheet
Class Stylesheet

java.lang.Object
  extended by dk.brics.xsugar.stylesheet.Unit
      extended by dk.brics.xsugar.stylesheet.Stylesheet

public class Stylesheet
extends Unit

Representation of XSugar stylesheet.


Constructor Summary
Stylesheet(String xsg, String xsg_file, List<String> includes, Map<String,String> xmlnss, Map<String,dk.brics.automaton.Automaton> automata, Set<String> max, Map<String,List<UnifyingProduction>> unifying_productions, String start)
          Constructs a new stylesheet.
 
Method Summary
 Map<String,dk.brics.automaton.Automaton> getAutomata()
          Returns the automaton map from this stylesheet.
 List<String> getIncludes()
          Returns the list of file inclusions.
 Set<String> getMax()
          Returns the set of regexp names with max flag set.
 Map<String,String> getNamespaces()
          Returns the namespace map of this stylesheet.
 String getSource()
          Returns the source contents of this stylesheet.
 String getSourceName()
          Returns the source name of this stylesheet.
 String getStart()
          Returns the start nonterminal name of this stylesheet.
 Map<String,List<UnifyingProduction>> getUnifyingProductions()
          Returns the productions of this stylesheet.
 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

Stylesheet

public Stylesheet(String xsg,
                  String xsg_file,
                  List<String> includes,
                  Map<String,String> xmlnss,
                  Map<String,dk.brics.automaton.Automaton> automata,
                  Set<String> max,
                  Map<String,List<UnifyingProduction>> unifying_productions,
                  String start)
Constructs a new stylesheet.

Parameters:
xsg - XSugar stylesheet
xsg_file - name of XSugar stylesheet
includes - file inclusions
xmlnss - map from namespace prefixes to URIs
automata - map from regexp names to automata
max - regexps with max flag set
unifying_productions - map from nonterminals to lists of productions
start - start nonterminal name
Method Detail

getAutomata

public Map<String,dk.brics.automaton.Automaton> getAutomata()
Returns the automaton map from this stylesheet.

Returns:
map from regexp name to automaton

getIncludes

public List<String> getIncludes()
Returns the list of file inclusions.

Returns:
file inclusions

getMax

public Set<String> getMax()
Returns the set of regexp names with max flag set.

Returns:
set of regexp names

getNamespaces

public Map<String,String> getNamespaces()
Returns the namespace map of this stylesheet.

Returns:
map from prefixes to URIs

getSource

public String getSource()
Returns the source contents of this stylesheet.

Returns:
source string

getSourceName

public String getSourceName()
Returns the source name of this stylesheet.

Returns:
source name

getStart

public String getStart()
Returns the start nonterminal name of this stylesheet.

Returns:
start nonterminal

getUnifyingProductions

public Map<String,List<UnifyingProduction>> getUnifyingProductions()
Returns the productions of this stylesheet.

Returns:
map from nonterminal name to list of productions

visit

public void visit(Visitor visitor)
Visits this node.

Parameters:
visitor - visitor


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