|
Scala Library
|
|
scala/xml/Comment.scala]
case
class
Comment(val commentText : java.lang.String)
extends SpecialNode with ProductComment implements an XML node for comments.text - the text contained in this node, may not contain "--"| Method Summary | |
override def
|
buildString
(sb : StringBuilder) : StringBuilder
Appends "" to this string buffer.
|
override final def
|
doCollectNamespaces
: Boolean
The logic formerly found in typeTag$, as best I could infer it.
|
override final def
|
doTransform : Boolean |
def
|
label
: java.lang.String
label of this node. I.e. "foo" for <foo/>)
|
override def
|
productArity
: Int
return k for a product
A(x_1,...,x_k) |
override def
|
productElement
(arg0 : Int) : Any
for a product
A(x_1,...,x_k), returns x_(n+1)
for 0 <= n < k |
override def
|
productPrefix
: java.lang.String
By default the empty string. Implementations may override this
method in order to prepend a string prefix to the result of the
toString methods.
|
override def
|
text
: java.lang.String
Returns a text representation of this node. Note that this is not equivalent to
the XPath node-test called text(), it is rather an implementation of the
XPath function string()
Martin to Burak: to do: if you make this method abstract, the compiler will now
complain if there's no implementation in a subclass. Is this what we want? Note that
this would break doc/DocGenator and doc/ModelToXML, with an error message like:
doc\DocGenerator.scala:1219: error: object creation impossible, since there is a deferred declaration of method text in class Node of type => String which is not implemented in a subclass
new SpecialNode {
^
|
| Methods inherited from Product | |
| productIterator, productElements |
| Methods inherited from SpecialNode | |
| attributes, namespace, child |
| Methods inherited from Node | |
| prefix, isAtom, scope, getNamespace, attribute, attribute, descendant, descendant_or_self, equals, hashCode, theSeq, buildString, toString, nameToString, xmlType |
| Methods inherited from NodeSeq | |
| newBuilder, length, iterator, apply, apply, \, \\ |
| Methods inherited from Seq | |
| companion |
| Methods inherited from SeqLike | |
| thisCollection, toCollection, lengthCompare, size, isDefinedAt, segmentLength, prefixLength, indexWhere, indexWhere, findIndexOf, indexOf, indexOf, lastIndexOf, lastIndexOf, lastIndexWhere, lastIndexWhere, reverse, reverseMap, reverseIterator, reversedElements, startsWith, startsWith, endsWith, indexOfSeq, indexOfSeq, lastIndexOfSeq, lastIndexOfSeq, contains, union, diff, intersect, removeDuplicates, patch, updated, +:, :+, padTo, sortWith, sortWith, sortBy, toSeq, indices, view, view, findLastIndexOf, equalsWith, containsSlice, projection |
| Methods inherited from PartialFunction | |
| orElse, andThen |
| Methods inherited from Function1 | |
| compose |
| Methods inherited from IterableLike | |
| elements, foreach, forall, exists, find, isEmpty, foldRight, reduceRight, toIterable, head, take, slice, takeWhile, takeRight, dropRight, copyToArray, zip, zipAll, zipWithIndex, sameElements, toStream, canEqual, first, firstOption |
| Methods inherited from GenericTraversableTemplate | |
| genericBuilder, unzip, flatten, transpose |
| Methods inherited from TraversableLike | |
| repr, nonEmpty, hasDefiniteSize, ++, ++, map, flatMap, filter, filterNot, partialMap, remove, partition, groupBy, count, foldLeft, /:, :\, reduceLeft, reduceLeftOption, reduceRightOption, sum, product, min, max, headOption, tail, last, lastOption, init, drop, dropWhile, span, splitAt, copyToBuffer, copyToArray, toArray, toList, toIndexedSeq, toSet, mkString, mkString, mkString, addString, addString, addString, stringPrefix, withFilter |
| Methods inherited from AnyRef | |
| getClass, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized |
| Methods inherited from Any | |
| ==, !=, isInstanceOf, asInstanceOf |
| Method Details |
def
label : java.lang.String
override
def
text : java.lang.String
override final
def
doCollectNamespaces : Boolean
override final
def
doTransform : Boolean
override
def
buildString(sb : StringBuilder) : StringBuilder
override
def
productPrefix : java.lang.String
override
def
productArity : Int
A(x_1,...,x_k)A(x_1,...,x_k), returns x_(n+1)
for 0 <= n < kn - the index of the element to returnIndexOutOfBoundsException - n elements after the first element|
Scala Library
|
|