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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.petitparser.grammar.xml.ast.XmlNodecreateAttribute(org.petitparser.grammar.xml.ast.XmlName name, String text) org.petitparser.grammar.xml.ast.XmlNodecreateCDATA(String text) org.petitparser.grammar.xml.ast.XmlNodecreateComment(String text) org.petitparser.grammar.xml.ast.XmlNodecreateDoctype(String text) org.petitparser.grammar.xml.ast.XmlNodecreateDocument(Collection<org.petitparser.grammar.xml.ast.XmlNode> children) org.petitparser.grammar.xml.ast.XmlNodecreateElement(org.petitparser.grammar.xml.ast.XmlName name, Collection<org.petitparser.grammar.xml.ast.XmlAttribute> attributes, Collection<org.petitparser.grammar.xml.ast.XmlNode> children) org.petitparser.grammar.xml.ast.XmlNodecreateProcessing(String target, String text) org.petitparser.grammar.xml.ast.XmlNamecreateQualified(String name) org.petitparser.grammar.xml.ast.XmlNodecreateText(String text)
-
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:
createAttributein interfaceXmlCallback<org.petitparser.grammar.xml.ast.XmlName,org.petitparser.grammar.xml.ast.XmlNode, org.petitparser.grammar.xml.ast.XmlAttribute>
-
createComment
- Specified by:
createCommentin interfaceXmlCallback<org.petitparser.grammar.xml.ast.XmlName,org.petitparser.grammar.xml.ast.XmlNode, org.petitparser.grammar.xml.ast.XmlAttribute>
-
createCDATA
- Specified by:
createCDATAin interfaceXmlCallback<org.petitparser.grammar.xml.ast.XmlName,org.petitparser.grammar.xml.ast.XmlNode, org.petitparser.grammar.xml.ast.XmlAttribute>
-
createDoctype
- Specified by:
createDoctypein interfaceXmlCallback<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:
createDocumentin interfaceXmlCallback<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:
createElementin interfaceXmlCallback<org.petitparser.grammar.xml.ast.XmlName,org.petitparser.grammar.xml.ast.XmlNode, org.petitparser.grammar.xml.ast.XmlAttribute>
-
createProcessing
- Specified by:
createProcessingin interfaceXmlCallback<org.petitparser.grammar.xml.ast.XmlName,org.petitparser.grammar.xml.ast.XmlNode, org.petitparser.grammar.xml.ast.XmlAttribute>
-
createQualified
- Specified by:
createQualifiedin interfaceXmlCallback<org.petitparser.grammar.xml.ast.XmlName,org.petitparser.grammar.xml.ast.XmlNode, org.petitparser.grammar.xml.ast.XmlAttribute>
-
createText
- Specified by:
createTextin interfaceXmlCallback<org.petitparser.grammar.xml.ast.XmlName,org.petitparser.grammar.xml.ast.XmlNode, org.petitparser.grammar.xml.ast.XmlAttribute>
-