A C D E F G I L M N P Q R S T U V X

A

analyzeReversibility(String, String, String, boolean, int, String, String, boolean) - Static method in class dk.brics.xsugar.Main
Analyzes reversibility.
analyzeValidity(String, String, String, String, String, boolean) - Static method in class dk.brics.xsugar.Main
Analyzes validity.
ASTEscaper - Class in dk.brics.xsugar.xml
Escapes special XML chars in all substring nodes of an AST.
ASTEscaper() - Constructor for class dk.brics.xsugar.xml.ASTEscaper
Constructs a new AST escaper.
ASTUnescaper - Class in dk.brics.xsugar.xml
Unescapes special XML chars in all substring nodes of an AST.
ASTUnescaper() - Constructor for class dk.brics.xsugar.xml.ASTUnescaper
Constructs a new AST unescaper.
Attribute - Class in dk.brics.xsugar.stylesheet
Attribute.
Attribute(Name, Value, Location) - Constructor for class dk.brics.xsugar.stylesheet.Attribute
Constructs a new attribute.

C

check(Grammar, Grammar, int, String, String, boolean) - Method in class dk.brics.xsugar.reversibility.ReversibilityChecker
Checks unambiguity of the given pair of stylesheet grammars.
check(Stylesheet) - Method in class dk.brics.xsugar.StylesheetChecker
Checks the given stylesheet.
construct(Stylesheet) - Method in class dk.brics.xsugar.validator.XMLGraphConstructor
Constructs an XML graph for the given stylesheet.
convert(Stylesheet) - Method in class dk.brics.xsugar.GrammarBuilder
Converts the given stylesheet.

D

dk.brics.xsugar - package dk.brics.xsugar
Main interface to the XSugar package.
dk.brics.xsugar.reversibility - package dk.brics.xsugar.reversibility
Reversibility analyzer for XSugar stylesheets.
dk.brics.xsugar.stylesheet - package dk.brics.xsugar.stylesheet
Representation of XSugar stylesheets.
dk.brics.xsugar.validator - package dk.brics.xsugar.validator
XML validator for XSugar stylesheets.
dk.brics.xsugar.xml - package dk.brics.xsugar.xml
XML normalization for XSugar stylesheets and input/output.

E

Element - Class in dk.brics.xsugar.stylesheet
Element.
Element(Name, List<Attribute>, List<Item>, boolean, Location) - Constructor for class dk.brics.xsugar.stylesheet.Element
Constructs a new element.
EndTagNameAdder - Class in dk.brics.xsugar.xml
Inserts names in end tags in an output string.
EndTagNameAdder() - Constructor for class dk.brics.xsugar.xml.EndTagNameAdder
Constructs a new end tag adder.
escape(AST) - Method in class dk.brics.xsugar.xml.ASTEscaper
Performs escaping for the given AST.
escape(String) - Static method in class dk.brics.xsugar.xml.Escaping
Escapes ", <, >, and & in the given string.
escape(Automaton) - Static method in class dk.brics.xsugar.xml.Escaping
Escapes ", <, >, and & in the given automaton.
Escaping - Class in dk.brics.xsugar.xml
Methods for escaping/unescaping special XML chars.

F

fix(String) - Method in class dk.brics.xsugar.xml.EndTagNameAdder
Fixes the given output string.
fix(String) - Method in class dk.brics.xsugar.xml.NamespaceAdder
Fixes the given output string.

G

getArg() - Method in class dk.brics.xsugar.stylesheet.Nonterminal
Returns the argument name of this nonterminal.
getArg() - Method in class dk.brics.xsugar.stylesheet.RegexpTerminal
Returns the argument name of this regexp terminal.
getAttributes() - Method in class dk.brics.xsugar.stylesheet.Element
Returns the attributes of this element.
getAutomata() - Method in class dk.brics.xsugar.stylesheet.Stylesheet
Returns the automaton map from this stylesheet.
getContents() - Method in class dk.brics.xsugar.stylesheet.Element
Returns the contents of this element
getExample() - Method in class dk.brics.xsugar.stylesheet.Nonterminal
Returns the example string of this nonterminal.
getExample() - Method in class dk.brics.xsugar.stylesheet.RegexpTerminal
Returns the example string of this regexp terminal.
getIncludes() - Method in class dk.brics.xsugar.stylesheet.Stylesheet
Returns the list of file inclusions.
getLeftItems() - Method in class dk.brics.xsugar.stylesheet.UnifyingProduction
Returns the left items.
getLocalname() - Method in class dk.brics.xsugar.stylesheet.QName
Returns the localname of this QName.
getLocation() - Method in class dk.brics.xsugar.stylesheet.Unit
Returns the source location of this node.
getLocation() - Method in exception dk.brics.xsugar.XSugarException
Returns the source location of this XSugar exception.
getLocationMap() - Method in class dk.brics.xsugar.xml.InputNormalizer
Returns the location map from the previous normalization.
getMax() - Method in class dk.brics.xsugar.stylesheet.Stylesheet
Returns the set of regexp names with max flag set.
getName() - Method in class dk.brics.xsugar.stylesheet.Attribute
Returns the name of this attribute.
getName() - Method in class dk.brics.xsugar.stylesheet.Element
Returns the name of this element.
getNamespaces() - Method in class dk.brics.xsugar.stylesheet.Stylesheet
Returns the namespace map of this stylesheet.
getNonterminal() - Method in class dk.brics.xsugar.stylesheet.Nonterminal
Returns the nonterminal name of this nonterminal.
getNonterminal() - Method in class dk.brics.xsugar.stylesheet.UnifyingProduction
Returns the nonterminal name of this production.
getNonXMLGrammar() - Method in class dk.brics.xsugar.GrammarBuilder
Returns the non-XML grammar from the last conversion.
getParser() - Method in class dk.brics.xsugar.StylesheetParser
Returns the parser.
getPrefix() - Method in class dk.brics.xsugar.stylesheet.QName
Returns the prefix of this QName.
getPriority() - Method in class dk.brics.xsugar.stylesheet.UnifyingProduction
Returns the priority of this production.
getRightItems() - Method in class dk.brics.xsugar.stylesheet.UnifyingProduction
Returns the right items.
getSource() - Method in class dk.brics.xsugar.stylesheet.Stylesheet
Returns the source contents of this stylesheet.
getSourceName() - Method in class dk.brics.xsugar.stylesheet.Stylesheet
Returns the source name of this stylesheet.
getStart() - Method in class dk.brics.xsugar.stylesheet.Stylesheet
Returns the start nonterminal name of this stylesheet.
getTerminal() - Method in class dk.brics.xsugar.stylesheet.RegexpTerminal
Returns the regexp name of this regexp terminal.
getText() - Method in class dk.brics.xsugar.stylesheet.StringTerminal
Returns the string of this string terminal.
getUnifyingProductions() - Method in class dk.brics.xsugar.stylesheet.Stylesheet
Returns the productions of this stylesheet.
getValue() - Method in class dk.brics.xsugar.stylesheet.Attribute
Returns the value of this attribute.
getXMLGrammar() - Method in class dk.brics.xsugar.GrammarBuilder
Returns the XML grammar from the last conversion.
GrammarBuilder - Class in dk.brics.xsugar
Constructs two grammars (XML and non-XML) from an XSugar stylesheet.
GrammarBuilder(boolean) - Constructor for class dk.brics.xsugar.GrammarBuilder
Constructs a new grammar builder.

I

in_attribute - Variable in class dk.brics.xsugar.stylesheet.TraversalVisitor
True if currently processing an attribute.
in_name - Variable in class dk.brics.xsugar.stylesheet.TraversalVisitor
True if currently processing an element/attribute name.
in_toplevel_singleton_content - Variable in class dk.brics.xsugar.stylesheet.TraversalVisitor
True if currently processing an item at top-level of element content of size 1.
in_xml - Variable in class dk.brics.xsugar.stylesheet.TraversalVisitor
True if currently processing XML side of a production.
InputNormalizer - Class in dk.brics.xsugar.xml
Normalizes XML input (special chars, whitespace, and qnames).
InputNormalizer() - Constructor for class dk.brics.xsugar.xml.InputNormalizer
Constructs a new input normalizer.
isLeftUnordered() - Method in class dk.brics.xsugar.stylesheet.UnifyingProduction
Returns unordered flag for left side.
isRightUnordered() - Method in class dk.brics.xsugar.stylesheet.UnifyingProduction
Returns unordered flag for right side.
isUnordered() - Method in class dk.brics.xsugar.stylesheet.Element
Returns true if this element is at top-level of unordered production.
Item - Interface in dk.brics.xsugar.stylesheet
Interface for production items.

L

LocationMap - Class in dk.brics.xsugar.xml
Location map for keeping track of locations before/after input normalization.
LocationMap() - Constructor for class dk.brics.xsugar.xml.LocationMap
Constructs a new empty location map.
lookup(Location) - Method in class dk.brics.xsugar.xml.LocationMap
Find real location corresponding to the given index.

M

Main - Class in dk.brics.xsugar
Command-line interface.
main(String[]) - Static method in class dk.brics.xsugar.Main
Main method.
makeStylesheet(AST, String, String) - Method in class dk.brics.xsugar.StylesheetBuilder
Converts the given stylesheet in AST representation into XSugar representation.
mid1Element(Element) - Method in class dk.brics.xsugar.stylesheet.TraversalVisitor
Invoked after processing the name of an Element.
mid2Element(Element) - Method in class dk.brics.xsugar.stylesheet.TraversalVisitor
Invoked after processing the attributes of an Element.
midAttribute(Attribute) - Method in class dk.brics.xsugar.stylesheet.TraversalVisitor
Invoked after processing the name of an Attribute.
midUnifyingProduction(UnifyingProduction) - Method in class dk.brics.xsugar.stylesheet.TraversalVisitor
Invoked between processing of left and right side of a UnifyingProduction.

N

Name - Interface in dk.brics.xsugar.stylesheet
Interface for element/attribute names.
NamespaceAdder - Class in dk.brics.xsugar.xml
Inserts XML namespace declarations in the first start tag in an output string.
NamespaceAdder(Stylesheet) - Constructor for class dk.brics.xsugar.xml.NamespaceAdder
Constructs a new namespace adder.
Nonterminal - Class in dk.brics.xsugar.stylesheet
Nonterminal.
Nonterminal(String, String, String, Location) - Constructor for class dk.brics.xsugar.stylesheet.Nonterminal
Constructs a new nonterminal.
normalize(String, String) - Method in class dk.brics.xsugar.xml.InputNormalizer
Normalizes the given XML input
normalize(Stylesheet) - Method in class dk.brics.xsugar.xml.StylesheetNormalizer
Normalizes the given stylesheet.

P

parse(String, String, String) - Method in class dk.brics.xsugar.StylesheetParser
Parses the given XSugar stylesheet.
postAttribute(Attribute) - Method in class dk.brics.xsugar.stylesheet.TraversalVisitor
Invoked after processing an Attribute.
postElement(Element) - Method in class dk.brics.xsugar.stylesheet.TraversalVisitor
Invoked after processing an Element.
postStylesheet(Stylesheet) - Method in class dk.brics.xsugar.stylesheet.TraversalVisitor
Invoked after processing a Stylesheet.
postUnifyingProduction(UnifyingProduction) - Method in class dk.brics.xsugar.stylesheet.TraversalVisitor
Invoked after processing a UnifyingProduction.
preAttribute(Attribute) - Method in class dk.brics.xsugar.stylesheet.TraversalVisitor
Invoked before processing an Attribute.
preElement(Element) - Method in class dk.brics.xsugar.stylesheet.TraversalVisitor
Invoked before processing an Element.
preStylesheet(Stylesheet) - Method in class dk.brics.xsugar.stylesheet.TraversalVisitor
Invoked before processing a Stylesheet.
preUnifyingProduction(UnifyingProduction) - Method in class dk.brics.xsugar.stylesheet.TraversalVisitor
Invoked before processing a UnifyingProduction.
print(Stylesheet) - Method in class dk.brics.xsugar.StylesheetPrinter
Prints the given stylesheet.
processAttributes(Element) - Method in class dk.brics.xsugar.stylesheet.TraversalVisitor
Processes the attributes of the given element.
processContents(Element) - Method in class dk.brics.xsugar.stylesheet.TraversalVisitor
Processes the contents of the given element.
processName(Name) - Method in class dk.brics.xsugar.stylesheet.TraversalVisitor
Processes the given element/attribute name.
put(int, int, int) - Method in class dk.brics.xsugar.xml.LocationMap
Puts a new entry into the map.

Q

QName - Class in dk.brics.xsugar.stylesheet
QName.
QName(String, String, Location) - Constructor for class dk.brics.xsugar.stylesheet.QName
Constructs a new QName.

R

RegexpTerminal - Class in dk.brics.xsugar.stylesheet
Regexp terminal.
RegexpTerminal(String, String, String, Location) - Constructor for class dk.brics.xsugar.stylesheet.RegexpTerminal
Constructs a new regexp terminal.
ReversibilityChecker - Class in dk.brics.xsugar.reversibility
Reversibility analyzer for XSugar stylesheets.
ReversibilityChecker(PrintWriter, boolean) - Constructor for class dk.brics.xsugar.reversibility.ReversibilityChecker
Constructs a new reversibility analyzer.

S

setOut(PrintWriter) - Static method in class dk.brics.xsugar.Main
Sets output print writer.
setPrefix(String) - Method in class dk.brics.xsugar.stylesheet.QName
Sets the prefix of this QName.
setTerminal(String) - Method in class dk.brics.xsugar.stylesheet.RegexpTerminal
Sets the regexp name of this regexp terminal.
setText(String) - Method in class dk.brics.xsugar.stylesheet.StringTerminal
Sets the string of this string terminal.
StringTerminal - Class in dk.brics.xsugar.stylesheet
String terminal.
StringTerminal(String, Location) - Constructor for class dk.brics.xsugar.stylesheet.StringTerminal
Constructs a new string terminal.
Stylesheet - Class in dk.brics.xsugar.stylesheet
Representation of XSugar stylesheet.
Stylesheet(String, String, List<String>, Map<String, String>, Map<String, Automaton>, Set<String>, Map<String, List<UnifyingProduction>>, String) - Constructor for class dk.brics.xsugar.stylesheet.Stylesheet
Constructs a new stylesheet.
StylesheetBuilder - Class in dk.brics.xsugar
Converter from grammar AST to XSugar stylesheet.
StylesheetBuilder() - Constructor for class dk.brics.xsugar.StylesheetBuilder
Constructs a new converter.
StylesheetChecker - Class in dk.brics.xsugar
Consistency checker for XSugar stylesheets.
StylesheetChecker() - Constructor for class dk.brics.xsugar.StylesheetChecker
Constructs a new checker.
StylesheetNormalizer - Class in dk.brics.xsugar.xml
Normalizes a stylesheet (special chars).
StylesheetNormalizer() - Constructor for class dk.brics.xsugar.xml.StylesheetNormalizer
Constructs a new normalizer.
StylesheetParser - Class in dk.brics.xsugar
Parser for XSugar stylesheets.
StylesheetParser() - Constructor for class dk.brics.xsugar.StylesheetParser
Constructs a new parser.
StylesheetPrinter - Class in dk.brics.xsugar
Pretty-printer for XSugar stylesheets.
StylesheetPrinter(PrintWriter) - Constructor for class dk.brics.xsugar.StylesheetPrinter
Constructs a new printer.

T

toString() - Method in class dk.brics.xsugar.stylesheet.QName
 
transformFromXML(String, String, String, String, boolean) - Static method in class dk.brics.xsugar.Main
Transforms from XML to non-XML.
transformToXML(String, String, String, String, boolean) - Static method in class dk.brics.xsugar.Main
Transforms from non-XML to XML.
TraversalVisitor - Class in dk.brics.xsugar.stylesheet
In-order, left-to-right traversal visitor.
TraversalVisitor() - Constructor for class dk.brics.xsugar.stylesheet.TraversalVisitor
Constructs a new traversal visitor.

U

unescape(AST) - Method in class dk.brics.xsugar.xml.ASTUnescaper
Performs unescaping for the given AST.
unescape(String) - Static method in class dk.brics.xsugar.xml.Escaping
Unescapes ", <, >, &, and character references in the given string.
unescape(String, int, int) - Static method in class dk.brics.xsugar.xml.Escaping
Unescapes a single ", <, >, &, or character reference.
UnifyingProduction - Class in dk.brics.xsugar.stylesheet
Unifying production.
UnifyingProduction(String, boolean, List<Item>, boolean, List<Item>, int, Location) - Constructor for class dk.brics.xsugar.stylesheet.UnifyingProduction
Constructs a new production.
Unit - Class in dk.brics.xsugar.stylesheet
Abstract base class for all stylesheet nodes.

V

validate(XMLGraph) - Method in class dk.brics.xsugar.validator.XMLValidator
Validates the given XML graph (constructed from an XSugar stylesheet).
Value - Interface in dk.brics.xsugar.stylesheet
Interface for attribute values.
visit(Visitor) - Method in class dk.brics.xsugar.stylesheet.Attribute
Visits this node.
visit(Visitor) - Method in class dk.brics.xsugar.stylesheet.Element
Visits this node.
visit(Visitor) - Method in interface dk.brics.xsugar.stylesheet.Item
Invoked for visiting this node.
visit(Visitor) - Method in interface dk.brics.xsugar.stylesheet.Name
Invoked for visiting this node.
visit(Visitor) - Method in class dk.brics.xsugar.stylesheet.Nonterminal
Visits this node.
visit(Visitor) - Method in class dk.brics.xsugar.stylesheet.QName
Visits this node.
visit(Visitor) - Method in class dk.brics.xsugar.stylesheet.RegexpTerminal
Visits this node.
visit(Visitor) - Method in class dk.brics.xsugar.stylesheet.StringTerminal
Visits this node.
visit(Visitor) - Method in class dk.brics.xsugar.stylesheet.Stylesheet
Visits this node.
visit(Visitor) - Method in class dk.brics.xsugar.stylesheet.UnifyingProduction
Visits this node.
visit(Visitor) - Method in interface dk.brics.xsugar.stylesheet.Value
Visits this node.
visitAttribute(Attribute) - Method in class dk.brics.xsugar.stylesheet.TraversalVisitor
Invokes preAttribute, then processes the attribute name, invokes midAttribute, then processes the attribute value, and finally invokes postAttribute.
visitAttribute(Attribute) - Method in interface dk.brics.xsugar.stylesheet.Visitor
Invoked for processing an attribute.
visitElement(Element) - Method in class dk.brics.xsugar.stylesheet.TraversalVisitor
Invokes preElement, then processes the element name, invokes mid1Element, processes all attributes, invokes mid2Element, processes the contents, and finally invokes postElement/code>.
visitElement(Element) - Method in interface dk.brics.xsugar.stylesheet.Visitor
Invoked for processing an element.
visitNonterminal(Nonterminal) - Method in class dk.brics.xsugar.stylesheet.TraversalVisitor
Processes a nonterminal.
visitNonterminal(Nonterminal) - Method in interface dk.brics.xsugar.stylesheet.Visitor
Invoked for processing a nonterminal.
Visitor - Interface in dk.brics.xsugar.stylesheet
Visitor for XSugar stylesheet structure.
visitQName(QName) - Method in class dk.brics.xsugar.stylesheet.TraversalVisitor
Processes a QName.
visitQName(QName) - Method in interface dk.brics.xsugar.stylesheet.Visitor
Invoked for processing a QName.
visitRegexpTerminal(RegexpTerminal) - Method in class dk.brics.xsugar.stylesheet.TraversalVisitor
Processes a regexp terminal.
visitRegexpTerminal(RegexpTerminal) - Method in interface dk.brics.xsugar.stylesheet.Visitor
Invoked for processing a regexp terminal.
visitStringTerminal(StringTerminal) - Method in class dk.brics.xsugar.stylesheet.TraversalVisitor
Processes a string terminal.
visitStringTerminal(StringTerminal) - Method in interface dk.brics.xsugar.stylesheet.Visitor
Invoked for processing a string terminal.
visitStylesheet(Stylesheet) - Method in class dk.brics.xsugar.stylesheet.TraversalVisitor
Invokes preStylesheet, then processes all productions, and finally invokes postStylesheet.
visitStylesheet(Stylesheet) - Method in interface dk.brics.xsugar.stylesheet.Visitor
Invoked for processing a stylesheet.
visitUnifyingProduction(UnifyingProduction) - Method in class dk.brics.xsugar.stylesheet.TraversalVisitor
Invokes preUnifyingProduction, then processes all left items, invokes midUnifyingProduction, then processes all right items, and finally invokes postUnifyingProduction.
visitUnifyingProduction(UnifyingProduction) - Method in interface dk.brics.xsugar.stylesheet.Visitor
Invoked for processing a production.

X

XMLGraphConstructor - Class in dk.brics.xsugar.validator
Constructs XML graph from XML-side of an XSugar stylesheet.
XMLGraphConstructor() - Constructor for class dk.brics.xsugar.validator.XMLGraphConstructor
Constructs a new converter.
XMLValidator - Class in dk.brics.xsugar.validator
Validator for XML graphs.
XMLValidator(String, String, PrintWriter) - Constructor for class dk.brics.xsugar.validator.XMLValidator
Constructs a new validator for the given schema.
XSugarException - Exception in dk.brics.xsugar
Exception caused by illegal XSugar stylesheet.
XSugarException(String, Location) - Constructor for exception dk.brics.xsugar.XSugarException
Constructs a new XSugar exception.
XSugarException(String) - Constructor for exception dk.brics.xsugar.XSugarException
Constructs a new XSugar exception.
XSugarException(Exception) - Constructor for exception dk.brics.xsugar.XSugarException
Constructs a chained XSugar exception.

A C D E F G I L M N P Q R S T U V X

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