in scala/xml/parsing
class ConstructingHandler
-
abstract class ConstructingHandler()
- extends MarkupHandler
- with ScalaObject
-
Implementing classes or objects:
-
class ConstructingParser(inp: Source, presWS: Boolean)
-
implementation of MarkupHandler that constructs nodes
Method Summary
|
|
def comment(pos: Int, txt: String): Comment
callback method invoked by MarkupParser after parsing comment.
|
|
def elem(pos: Int, pre: String, label: String, attrs: MetaData, pscope: NamespaceBinding, nodes: NodeSeq): NodeSeq
callback method invoked by MarkupParser after parsing an elementm,
between the elemStart and elemEnd callbacks
|
|
def entityRef(pos: Int, n: String): EntityRef
callback method invoked by MarkupParser after parsing entity ref.
|
|
def procInstr(pos: Int, target: String, txt: String): ProcInstr
callback method invoked by MarkupParser after parsing PI.
|
|
def text(pos: Int, txt: String): Text
callback method invoked by MarkupParser after parsing text.
|
Methods inherited from java/lang/Object-class
|
clone, eq, equals, finalize, getClass, hashCode, ne, notify, notifyAll, synchronized, toString, wait, wait, wait |
Methods inherited from scala/xml/parsing/MarkupHandler-class
|
attListDecl, decls, elemDecl, elemEnd, elemStart, endDTD, ent, isValidating, lookupElemDecl, notationDecl, parameterEntityDecl, parsedEntityDecl, peReference, replacementText, reportSyntaxError, unparsedEntityDecl |
preserveWS
abstract val preserveWS: Boolean
elem
def elem(pos: Int, pre: String, label: String, attrs: MetaData, pscope: NamespaceBinding, nodes: NodeSeq): NodeSeq
-
callback method invoked by MarkupParser after parsing an elementm,
between the elemStart and elemEnd callbacks
- Parameters:
pos
-
the position in the sourcefile
pre
-
the prefix
label
-
the local name
attrs
-
the attributes (metadata)
args
-
the children of this element
procInstr
def procInstr(pos: Int, target: String, txt: String): ProcInstr
-
callback method invoked by MarkupParser after parsing PI.
comment
def comment(pos: Int, txt: String): Comment
-
callback method invoked by MarkupParser after parsing comment.
entityRef
def entityRef(pos: Int, n: String): EntityRef
-
callback method invoked by MarkupParser after parsing entity ref.
- Todo:
- expanding entity references
text
def text(pos: Int, txt: String): Text
-
callback method invoked by MarkupParser after parsing text.