Class XmlBuilder

java.lang.Object
org.petitparser.grammar.xml.XmlBuilder
All Implemented Interfaces:
XmlCallback<org.petitparser.grammar.xml.ast.XmlName,org.petitparser.grammar.xml.ast.XmlNode,org.petitparser.grammar.xml.ast.XmlAttribute>

public class XmlBuilder extends Object implements XmlCallback<org.petitparser.grammar.xml.ast.XmlName,org.petitparser.grammar.xml.ast.XmlNode,org.petitparser.grammar.xml.ast.XmlAttribute>
Builds the XML AST.
  • Constructor Details

    • XmlBuilder

      public XmlBuilder()
  • Method Details

    • createAttribute

      public org.petitparser.grammar.xml.ast.XmlNode createAttribute(org.petitparser.grammar.xml.ast.XmlName name, String text)
      Specified by:
      createAttribute in interface XmlCallback<org.petitparser.grammar.xml.ast.XmlName,org.petitparser.grammar.xml.ast.XmlNode,org.petitparser.grammar.xml.ast.XmlAttribute>
    • createComment

      public org.petitparser.grammar.xml.ast.XmlNode createComment(String text)
      Specified by:
      createComment in interface XmlCallback<org.petitparser.grammar.xml.ast.XmlName,org.petitparser.grammar.xml.ast.XmlNode,org.petitparser.grammar.xml.ast.XmlAttribute>
    • createCDATA

      public org.petitparser.grammar.xml.ast.XmlNode createCDATA(String text)
      Specified by:
      createCDATA in interface XmlCallback<org.petitparser.grammar.xml.ast.XmlName,org.petitparser.grammar.xml.ast.XmlNode,org.petitparser.grammar.xml.ast.XmlAttribute>
    • createDoctype

      public org.petitparser.grammar.xml.ast.XmlNode createDoctype(String text)
      Specified by:
      createDoctype in interface XmlCallback<org.petitparser.grammar.xml.ast.XmlName,org.petitparser.grammar.xml.ast.XmlNode,org.petitparser.grammar.xml.ast.XmlAttribute>
    • createDocument

      public org.petitparser.grammar.xml.ast.XmlNode createDocument(Collection<org.petitparser.grammar.xml.ast.XmlNode> children)
      Specified by:
      createDocument in interface XmlCallback<org.petitparser.grammar.xml.ast.XmlName,org.petitparser.grammar.xml.ast.XmlNode,org.petitparser.grammar.xml.ast.XmlAttribute>
    • createElement

      public org.petitparser.grammar.xml.ast.XmlNode createElement(org.petitparser.grammar.xml.ast.XmlName name, Collection<org.petitparser.grammar.xml.ast.XmlAttribute> attributes, Collection<org.petitparser.grammar.xml.ast.XmlNode> children)
      Specified by:
      createElement in interface XmlCallback<org.petitparser.grammar.xml.ast.XmlName,org.petitparser.grammar.xml.ast.XmlNode,org.petitparser.grammar.xml.ast.XmlAttribute>
    • createProcessing

      public org.petitparser.grammar.xml.ast.XmlNode createProcessing(String target, String text)
      Specified by:
      createProcessing in interface XmlCallback<org.petitparser.grammar.xml.ast.XmlName,org.petitparser.grammar.xml.ast.XmlNode,org.petitparser.grammar.xml.ast.XmlAttribute>
    • createQualified

      public org.petitparser.grammar.xml.ast.XmlName createQualified(String name)
      Specified by:
      createQualified in interface XmlCallback<org.petitparser.grammar.xml.ast.XmlName,org.petitparser.grammar.xml.ast.XmlNode,org.petitparser.grammar.xml.ast.XmlAttribute>
    • createText

      public org.petitparser.grammar.xml.ast.XmlNode createText(String text)
      Specified by:
      createText in interface XmlCallback<org.petitparser.grammar.xml.ast.XmlName,org.petitparser.grammar.xml.ast.XmlNode,org.petitparser.grammar.xml.ast.XmlAttribute>