diff options
author | michelou <michelou@epfl.ch> | 2004-10-01 15:10:39 +0000 |
---|---|---|
committer | michelou <michelou@epfl.ch> | 2004-10-01 15:10:39 +0000 |
commit | 57d20057ab1ef6f4f9e9d52c0a686b95b2c4d72f (patch) | |
tree | a1a7e55bee03d7321c9efaa90dfb07dcca779561 /sources | |
parent | acf705fe9de6d5d6ab3c18194ac51e075e18b517 (diff) | |
download | scala-57d20057ab1ef6f4f9e9d52c0a686b95b2c4d72f.tar.gz scala-57d20057ab1ef6f4f9e9d52c0a686b95b2c4d72f.tar.bz2 scala-57d20057ab1ef6f4f9e9d52c0a686b95b2c4d72f.zip |
- changed comment formatting.
Diffstat (limited to 'sources')
-rw-r--r-- | sources/scala/xml/NodeBuffer.scala | 37 |
1 files changed, 27 insertions, 10 deletions
diff --git a/sources/scala/xml/NodeBuffer.scala b/sources/scala/xml/NodeBuffer.scala index ea50aedf34..9fedfdb683 100644 --- a/sources/scala/xml/NodeBuffer.scala +++ b/sources/scala/xml/NodeBuffer.scala @@ -7,21 +7,38 @@ ** $Id$ \* */ -package scala.xml ; +package scala.xml; -/** this class acts as a Buffer for nodes. If it is used as a sequence - * of nodes Seq[Node], it must be ensured that no updates occur after - * that point, because scala.xml.Node is assumed to be immutable. +/** + * This class acts as a Buffer for nodes. If it is used as a sequence + * of nodes <code>Seq[Node]</code>, it must be ensured that no updates + * occur after that point, because <code>scala.xml.Node</code> is assumed + * to be immutable. */ class NodeBuffer extends scala.collection.mutable.ArrayBuffer[Node] { - /** append a single node to this buffer, returns reference on this NodeBuffer for convenience. */ - override def +(n:Node):NodeBuffer = { super.+( n ); this } + /** + * Append a single node to this buffer, returns reference on this + * NodeBuffer for convenience. + * + * @param n + */ + override def +(n: Node): NodeBuffer = { super.+(n); this } - /** append a sequence of nodes to this buffer, returns reference on this NodeBuffer for convenience. */ - def +(ns:Iterable[Node]):NodeBuffer = { super.++( ns ); this } + /** + * Append a sequence of nodes to this buffer, returns reference on + * this NodeBuffer for convenience. + * + * @param ns + */ + def +(ns: Iterable[Node]): NodeBuffer = { super.++(ns); this } - /** append given string as a scala.xml.Text node to this buffer, returns reference on this NodeBuffer for convenience. */ - def +(t:String):NodeBuffer = { super.+( Text( t ) ); this } + /** + * Append given string as a <code>scala.xml.Text</code> node to this + * buffer, returns reference on this NodeBuffer for convenience. + * + * @param t + */ + def +(t :String): NodeBuffer = { super.+(Text(t)); this } } |