|
Scala
1.2.0.1 |
|||
Field Summary | |
protected
|
val cbuf: StringBuffer
character buffer, for names |
abstract
|
val handle: MarkupHandler[MarkupType]
the handler of the markup |
val lookupURI: Map[String,String]
|
|
final
|
val noAttribs: HashMap[String,AttribValue]
|
final
|
val noChildren: ListBuffer[MarkupType]
|
abstract
|
val preserveWS: Boolean
if true, does not remove surplus whitespace |
Method Summary | |
protected
|
var aMap: Map[String,AttribValue]
|
def appendText(pos: Int, ts: Buffer[MarkupType], txt: String): Unit
|
|
var ch: Char
holds the next character |
|
def content: Buffer[MarkupType]
|
|
var defaultURI: String
|
|
def element: Iterable[MarkupType]
|
|
def element1: Iterable[MarkupType]
'<' element ::= xmlTag1 '>' { xmlExpr | '{' simpleExpr '}' } ETag | xmlTag1 '/' '>' |
|
abstract
|
def init: Unit
this method should assign the first character of the input to ch |
abstract
|
def nextch: Unit
this method assign the next character to ch and advances in input |
var pos: Int
holds the position in the source file |
|
protected
|
def putChar(c: Char): StringBuffer
append Unicode character to name buffer |
abstract
|
def reportSyntaxError(str: String): Unit
report a syntax error |
var tmppos: Int
holds temporary values of pos |
|
def xAttributeValue(endch: Char): String
attribute value, terminated by either ' or ". |
|
def xAttributes: HashMap[String,AttribValue]
parse attribute and add it to listmap [41] Attributes ::= { S Name Eq AttValue } AttValue ::= `'` { _ } `'` | `"` { _ } `"` | `{` scalablock `}` |
|
def xCharData: Iterable[MarkupType]
'<! CharData ::= [CDATA[ ( {char} - {char}"]]>"{char} ) ']]>' see [15] |
|
def xCharRef: String
CharRef ::= "&#" '0'..'9' {'0'..'9'} ";" | "&#x" '0'..'9'|'A'..'F'|'a'..'f' { hexdigit } ";" see [66] |
|
def xComment: Iterable[MarkupType]
Comment ::= '<!--' ((Char - '-') | ('-' (Char - '-')))* '-->' see [15] |
|
def xEQ: Unit
scan [S] '=' [S] |
|
def xEndTag(n: String): Unit
[42] '<' xmlEndTag ::= '<' '/' Name S? '>' |
|
def xName: String
Name ::= (Letter | '_' | ':') (NameChar)* see [5] of XML 1.0 specification |
|
def xProcInstr: Iterable[MarkupType]
'<?' ProcInstr ::= Name [S ({Char} - ({Char}'>?' {Char})]'?>' see [15] |
|
def xSpace: Unit
scan [3] S ::= (#x20 | #x9 | #xD | #xA)+ |
|
def xSpaceOpt: Unit
skip optional space S? |
|
protected
|
def xTag: Tuple2[String,Map[String,AttribValue]]
parse a start or empty tag. |
def xText: String
parse character data. |
|
def xToken(that: Char): Unit
munch expected XML token, report syntax error for unexpected |
Methods inherited from java/lang/Object-class |
clone, eq, equals, finalize, getClass, hashCode, notify, notifyAll, synchronized, toString, wait, wait, wait |
Methods inherited from scala/Any-class |
!=, ==, asInstanceOf, isInstanceOf, match |
Field Detail |
abstract val handle: MarkupHandler[MarkupType]
abstract val preserveWS: Boolean
protected val cbuf: StringBuffer
final val noChildren: ListBuffer[MarkupType]
final val noAttribs: HashMap[String,AttribValue]
val lookupURI: Map[String,String]
Method Detail |
var pos: Int
var tmppos: Int
var ch: Char
protected def putChar(c: Char): StringBuffer
protected var aMap: Map[String,AttribValue]
var defaultURI: String
abstract def nextch: Unit
abstract def init: Unit
abstract def reportSyntaxError(str: String): Unit
def xToken(that: Char): Unit
def xAttributes: HashMap[String,AttribValue]
def xAttributeValue(endch: Char): String
endch
-
either ' or "
protected def xTag: Tuple2[String,Map[String,AttribValue]]
def xEndTag(n: String): Unit
def xCharData: Iterable[MarkupType]
def xCharRef: String
def xComment: Iterable[MarkupType]
def appendText(pos: Int, ts: Buffer[MarkupType], txt: String): Unit
def content: Buffer[MarkupType]
def element: Iterable[MarkupType]
def element1: Iterable[MarkupType]
def xName: String
def xEQ: Unit
def xSpaceOpt: Unit
def xSpace: Unit
def xProcInstr: Iterable[MarkupType]
def xText: String
|
Scala
1.2.0.1 |
|||