scala.xml

ProcInstr

class ProcInstr(target: String, proctext: String) extends SpecialNode with Product

an XML node for processing instructions (PI)

target

target name of this PI

Go to: companion

Inherits

  1. Product
  2. SpecialNode
  3. XMLEvent
  4. Node
  5. NodeSeq
  6. Seq
  7. Seq
  8. SeqLike
  9. PartialFunction
  10. Function1
  11. Iterable
  12. Iterable
  13. IterableLike
  14. Equals
  15. Traversable
  16. Immutable
  17. Traversable
  18. GenericTraversableTemplate
  19. TraversableLike
  20. HasNewBuilder
  21. AnyRef
  22. Any

Type Members

  1. class WithFilter extends AnyRef

    A class supporting filtered operations

Value Members

  1. def ++(that: Iterator[Node]): Traversable[Node]

    [use case] Concatenates this sequence with the elements of an iterator

  2. def ++[B >: Node, That](that: Iterator[B])(bf: CanBuildFrom[NodeSeq, B, That]): That

    Concatenates this sequence with the elements of an iterator

  3. def ++(that: Traversable[Node]): Traversable[Node]

    [use case] Concatenates this sequence with the elements of a traversable collection

  4. def ++[B >: Node, That](that: Traversable[B])(bf: CanBuildFrom[NodeSeq, B, That]): That

    Concatenates this sequence with the elements of a traversable collection

  5. def +:(elem: Node): Seq[Node]

    [use case] Prepends an element to this sequence

  6. def +:[B >: Node, That](elem: B)(bf: CanBuildFrom[NodeSeq, B, That]): That

    Prepends an element to this sequence

  7. def /:[B](z: B)(op: (B, Node) ⇒ B): B

    Applies a binary operator to a start value and all elements of this sequence, going left to right

  8. def :+(elem: Node): Seq[Node]

    [use case] Appends an element to this sequence

  9. def :+[B >: Node, That](elem: B)(bf: CanBuildFrom[NodeSeq, B, That]): That

    Appends an element to this sequence

  10. def :\[B](z: B)(op: (Node, B) ⇒ B): B

    Applies a binary operator to all elements of this sequence and a start value, going right to left

  11. def \(that: String): NodeSeq

    Projection function

  12. def \\(that: String): NodeSeq

    projection function

  13. def addString(b: StringBuilder): StringBuilder

    Appends all elements of this sequence to a string builder

  14. def addString(b: StringBuilder, sep: String): StringBuilder

    Appends all elements of this sequence to a string builder using a separator string

  15. def addString(b: StringBuilder, start: String, sep: String, end: String): StringBuilder

    Appends all elements of this sequence to a string builder using start, end, and separator strings

  16. def andThen[C](k: (Node) ⇒ C): PartialFunction[Int, C]

    Composes this partial function with a transformation function that gets applied to results of this partial function

  17. def apply(f: (Node) ⇒ Boolean): NodeSeq

  18. def apply(i: Int): Node

    Selects an element by its index in the sequence

  19. def buildString(sb: StringBuilder): StringBuilder

    appends "<?" target (" "+text)?+"?>" to this stringbuffer

  20. def buildString(stripComments: Boolean): String

    String representation of this node

  21. def canEqual(that: Any): Boolean

    Method called from equality methods, so that user-defined subclasses can refuse to be equal to other collections of the same kind

  22. def companion: GenericCompanion[Seq[A][A]]

    The factory companion object that builds instances of class Seq

  23. def compose[A](g: (A) ⇒ Int): (A) ⇒ Node

    (f compose g)(x) == f(g(x))

  24. def contains(elem: Any): Boolean

    Tests whether this sequence contains a given value as an element

  25. def containsSlice[B](that: Seq[B]): Boolean

    Tests whether this sequence contains a given sequence as a slice

  26. def copyToArray(xs: Array[Node], start: Int, len: Int): Unit

    [use case] Copies elements of this sequence to an array

  27. def copyToArray[B >: Node](xs: Array[B], start: Int, len: Int): Unit

    Copies elements of this sequence to an array

  28. def copyToArray(xs: Array[Node], start: Int): Unit

    [use case] Copies elements of this sequence to an array

  29. def copyToArray[B >: Node](xs: Array[B]): Unit

    Copies elements of this sequence to an array

  30. def copyToArray(xs: Array[Node], start: Int): Unit

    [use case] Copies elements of this sequence to an array

  31. def copyToArray[B >: Node](xs: Array[B], start: Int): Unit

    Copies elements of this sequence to an array

  32. def copyToBuffer[B >: Node](dest: Buffer[B]): Unit

    Copies all elements of this sequence to a buffer

  33. def corresponds[B](that: Seq[B])(p: (Node, B) ⇒ Boolean): Boolean

    Tests whether every element of this sequence relates to the corresponding element of another sequence by satisfying a test predicate

  34. def count(p: (Node) ⇒ Boolean): Int

    Counts the number of elements in the sequence which satisfy a predicate

  35. def descendant: List[Node]

    Descendant axis (all descendants of this node, not including node itself) includes all text nodes, element nodes, comments and processing instructions

  36. def descendant_or_self: List[Node]

    Descendant axis (all descendants of this node, including thisa node) includes all text nodes, element nodes, comments and processing instructions

  37. def diff[B >: Node, That](that: Seq[B]): NodeSeq

    Computes the multiset difference between this sequence and another sequence

  38. def drop(n: Int): NodeSeq

    Selects all elements except first n ones

  39. def dropRight(n: Int): NodeSeq

    Selects all elements except first n ones

  40. def dropWhile(p: (Node) ⇒ Boolean): NodeSeq

    Drops longest prefix of elements that satisfy a predicate

  41. def elements: Iterator[Node]

  42. def endsWith[B](that: Seq[B]): Boolean

    Tests whether this sequence ends with the given sequence

  43. def equals(x: Any): Boolean

    Returns true if x is structurally equal to this node

  44. def equalsWith[B](that: Seq[B])(f: (Node, B) ⇒ Boolean): Boolean

    Tests whether every element of this sequence relates to the corresponding element of another sequence by satisfying a test predicate

  45. def exists(p: (Node) ⇒ Boolean): Boolean

    Tests whether a predicate holds for some of the elements of this sequence

  46. def filter(p: (Node) ⇒ Boolean): NodeSeq

    Selects all elements of this sequence which satisfy a predicate

  47. def filterNot(p: (Node) ⇒ Boolean): NodeSeq

    Selects all elements of this sequence which do not satisfy a predicate

  48. def find(p: (Node) ⇒ Boolean): Option[Node]

    Finds the first element of the sequence satisfying a predicate, if any

  49. def findIndexOf(p: (Node) ⇒ Boolean): Int

    Returns index of the first element satisying a predicate, or -1

  50. def findLastIndexOf(p: (Node) ⇒ Boolean): Int

    Returns index of the last element satisying a predicate, or -1

  51. def first: Node

  52. def firstOption: Option[Node]

    None if iterable is empty

  53. def flatMap[B](f: (Node) ⇒ Traversable[B]): Traversable[B]

    [use case] Builds a new collection by applying a function to all elements of this sequence and concatenating the results

  54. def flatMap[B, That](f: (Node) ⇒ Traversable[B])(bf: CanBuildFrom[NodeSeq, B, That]): That

    Builds a new collection by applying a function to all elements of this sequence and concatenating the results

  55. def flatten[B]: CC[B]

    [use case] Converts this sequence of traversable collections into a sequence in which all element collections are concatenated

  56. def flatten[B](asTraversable: (Node) ⇒ Traversable[B]): Seq[B]

    Converts this sequence of traversable collections into a sequence in which all element collections are concatenated

  57. def foldLeft[B](z: B)(op: (B, Node) ⇒ B): B

    Applies a binary operator to a start value and all elements of this sequence, going left to right

  58. def foldRight[B](z: B)(op: (Node, B) ⇒ B): B

    Applies a binary operator to all elements of this sequence and a start value, going right to left

  59. def forall(p: (Node) ⇒ Boolean): Boolean

    Tests whether a predicate holds for all elements of this sequence

  60. def foreach(f: (Node) ⇒ Unit): Unit

    [use case] Applies a function f to all elements of this sequence

  61. def foreach[U](f: (Node) ⇒ U): Unit

    Applies a function f to all elements of this sequence

  62. def genericBuilder[B]: Builder[B, Seq[B]]

    The generic builder that builds instances of Seq at arbitrary element types

  63. def getNamespace(pre: String): String

    Convenience method, same as scope

  64. def groupBy[K](f: (Node) ⇒ K): Map[K, NodeSeq]

    Partitions this sequence into a map of sequences according to some discriminator function

  65. def grouped(size: Int): Iterator[NodeSeq]

    Partitions elements in fixed size sequences

  66. def hasDefiniteSize: Boolean

    Tests whether this sequence is known to have a finite size

  67. def hashCode(): Int

    Returns a hashcode

  68. def head: Node

    Selects the first element of this sequence

  69. def headOption: Option[Node]

    Optionally selects the first element

  70. def indexOf(elem: Node): Int

    [use case] Finds index of first occurrence of some value in this sequence after or at some start index

  71. def indexOf[B >: Node](elem: B, from: Int): Int

    Finds index of first occurrence of some value in this sequence after or at some start index

  72. def indexOf(elem: Node): Int

    [use case] Finds index of first occurrence of some value in this sequence

  73. def indexOf[B >: Node](elem: B): Int

    Finds index of first occurrence of some value in this sequence

  74. def indexOfSlice[B >: Node](that: Seq[B], from: Int): Int

    Finds first index after or at a start index where this sequence contains a given sequence as a slice

  75. def indexOfSlice[B >: Node](that: Seq[B]): Int

    Finds first index where this sequence contains a given sequence as a slice

  76. def indexWhere(p: (Node) ⇒ Boolean, from: Int): Int

    Finds index of the first element satisfying some predicate after or at some start index

  77. def indexWhere(p: (Node) ⇒ Boolean): Int

    Finds index of first element satisfying some predicate

  78. def indices: Range

    Produces the range of all indices of this sequence

  79. def init: NodeSeq

    Selects all elements except the last

  80. def intersect[B >: Node, That](that: Seq[B]): NodeSeq

    Computes the multiset intersection between this sequence and another sequence

  81. def isAtom: Boolean

    used internally

  82. def isDefinedAt(idx: Int): Boolean

    Tests whether this sequence contains given index

  83. def isEmpty: Boolean

    Tests whether this sequence is empty

  84. def iterator: Iterator[Node]

    Creates a new iterator over all elements contained in this iterable object

  85. def last: Node

    Selects the last element

  86. def lastIndexOf(elem: Node): Int

    [use case] Finds index of last occurrence of some value in this sequence before or at a given end index

  87. def lastIndexOf[B >: Node](elem: B, end: Int): Int

    Finds index of last occurrence of some value in this sequence before or at a given end index

  88. def lastIndexOf(elem: Node): Int

    [use case] Finds index of last occurrence of some value in this sequence

  89. def lastIndexOf[B >: Node](elem: B): Int

    Finds index of last occurrence of some value in this sequence

  90. def lastIndexOfSlice[B >: Node](that: Seq[B], end: Int): Int

    Finds last index before or at a given end index where this sequence contains a given sequence as a slice

  91. def lastIndexOfSlice[B >: Node](that: Seq[B]): Int

    Finds last index where this sequence contains a given sequence as a slice

  92. def lastIndexWhere(p: (Node) ⇒ Boolean, end: Int): Int

    Finds index of last element satisfying some predicate before or at given end index

  93. def lastIndexWhere(p: (Node) ⇒ Boolean): Int

    Finds index of last element satisfying some predicate

  94. def lastOption: Option[Node]

    Optionally selects the last element

  95. def length: Int

    The length of the sequence

  96. def lengthCompare(len: Int): Int

    Compares the length of this sequence to a test value

  97. def lift: (Int) ⇒ Option[Node]

    Turns this partial function into an plain function returning an Option result

  98. def map[B](f: (Node) ⇒ B): Traversable[B]

    [use case] Builds a new collection by applying a function to all elements of this sequence

  99. def map[B, That](f: (Node) ⇒ B)(bf: CanBuildFrom[NodeSeq, B, That]): That

    Builds a new collection by applying a function to all elements of this sequence

  100. def max[B >: Node](cmp: Ordering[B]): Node

    Finds the largest element

  101. def min: Node

    [use case] Finds the largest element

  102. def min: Node

    [use case] Finds the smallest element

  103. def min[B >: Node](cmp: Ordering[B]): Node

    Finds the smallest element

  104. def mkString: String

    Displays all elements of this sequence in a string

  105. def mkString(sep: String): String

    Displays all elements of this sequence in a string using a separator string

  106. def mkString(start: String, sep: String, end: String): String

    Displays all elements of this sequence in a string using start, end, and separator strings

  107. def nameToString(sb: StringBuilder): StringBuilder

    Appends qualified name of this node to StringBuilder

  108. def nonEmpty: Boolean

    Tests whether the sequence is not empty

  109. def orElse[A1 <: Int, B1 >: Node](that: PartialFunction[A1, B1]): PartialFunction[A1, B1]

    Composes this partial function with a fallback partial function which gets applied where this partial function is not defined

  110. def padTo(len: Int, elem: Node): Seq[Node]

    [use case] Appends an element value to this sequence until a given target length is reached

  111. def padTo[B >: Node, That](len: Int, elem: B)(bf: CanBuildFrom[NodeSeq, B, That]): That

    Appends an element value to this sequence until a given target length is reached

  112. def partialMap[B](pf: PartialFunction[Node, B]): Traversable[B]

    [use case] Builds a new collection by applying a partial function to all elements of this sequence on which the function is defined

  113. def partialMap[B, That](pf: PartialFunction[Node, B])(bf: CanBuildFrom[NodeSeq, B, That]): That

    Builds a new collection by applying a partial function to all elements of this sequence on which the function is defined

  114. def partition(p: (Node) ⇒ Boolean): (NodeSeq, NodeSeq)

    Partitions this sequence in two sequences according to a predicate

  115. def patch(from: Int, that: Seq[Node], replaced: Int): Seq[Node]

    [use case] Produces a new sequence where a slice of elements in this sequence is replaced by another sequence

  116. def patch[B >: Node, That](from: Int, patch: Seq[B], replaced: Int)(bf: CanBuildFrom[NodeSeq, B, That]): That

    Produces a new sequence where a slice of elements in this sequence is replaced by another sequence

  117. def prefix: String

    prefix of this node

  118. def prefixLength(p: (Node) ⇒ Boolean): Int

    Returns the length of the longest prefix whose elements all satisfy some preficate

  119. val proctext: String

  120. def product: Int

    [use case] Multiplies up the elements of this collection

  121. def product[B >: Node](num: Numeric[B]): B

    Multiplies up the elements of this collection

  122. def productArity: Int

    return k for a product A(x_1,

  123. def productElement(arg0: Int): Any

    for a product A(x_1,

  124. def productElements: Iterator[Any]

  125. def productIterator: Iterator[Any]

    An iterator that returns all fields of this product

  126. def productPrefix: String

    By default the empty string

  127. def projection: SeqView[Node, NodeSeq]

    returns a projection that can be used to call non-strict filter, map, and flatMap methods that build projections of the collection

  128. def reduceLeft[B >: Node](op: (B, Node) ⇒ B): B

    Applies a binary operator to all elements of this sequence, going left to right

  129. def reduceLeftOption[B >: Node](op: (B, Node) ⇒ B): Option[B]

    Optionally applies a binary operator to all elements of this sequence, going left to right

  130. def reduceRight[B >: Node](op: (Node, B) ⇒ B): B

    Applies a binary operator to all elements of this sequence, going right to left

  131. def reduceRightOption[B >: Node](op: (Node, B) ⇒ B): Option[B]

    Optionally applies a binary operator to all elements of this sequence, going right to left

  132. def removeDuplicates: NodeSeq

    Builds a new sequence from this sequence without any duplicate elements

  133. def repr: NodeSeq

    The collection of type sequence underlying this TraversableLike object

  134. def reverse: NodeSeq

    Returns new sequence wih elements in reversed order

  135. def reverseIterator: Iterator[Node]

    An iterator yielding elements in reversed order

  136. def reverseMap[B](f: (Node) ⇒ B): Seq[B]

    [use case] Builds a new collection by applying a function to all elements of this sequence and collecting the results in reversed order

  137. def reverseMap[B, That](f: (Node) ⇒ B)(bf: CanBuildFrom[NodeSeq, B, That]): That

    Builds a new collection by applying a function to all elements of this sequence and collecting the results in reversed order

  138. def reversedElements: Iterator[Node]

  139. def sameElements(that: Iterable[Node]): Boolean

    [use case] Checks if the other iterable collection contains the same elements in the same order as this sequence

  140. def sameElements[B >: Node](that: Iterable[B]): Boolean

    Checks if the other iterable collection contains the same elements in the same order as this sequence

  141. def scope: NamespaceBinding

    method returning the namespace bindings of this node

  142. def segmentLength(p: (Node) ⇒ Boolean, from: Int): Int

    Computes length of longest segment whose elements all satisfy some preficate

  143. def size: Int

    The size of this sequence, equivalent to length

  144. def slice(from: Int, until: Int): NodeSeq

    Selects an interval of elements

  145. def sliding[B >: Node](size: Int, step: Int): Iterator[NodeSeq]

  146. def sliding[B >: Node](size: Int): Iterator[NodeSeq]

    Groups elements in fixed size blocks by passing a "sliding window" over them (as opposed to partitioning them, as is done in grouped

  147. def sortBy[B](f: (Node) ⇒ B)(ord: Ordering[B]): NodeSeq

    Sorts this Seq according to the Ordering which results from transforming an implicitly given Ordering with a transformation function

  148. def sortWith[B >: Node](ord: Ordering[B]): NodeSeq

    Sorts this sequence according to an Ordering

  149. def sortWith(lt: (Node, Node) ⇒ Boolean): NodeSeq

    Sorts this sequence according to a comparison function

  150. def span(p: (Node) ⇒ Boolean): (NodeSeq, NodeSeq)

    Spits this sequence into a prefix/suffix pair according to a predicate

  151. def splitAt(n: Int): (NodeSeq, NodeSeq)

    Splits this sequence into two at a given position

  152. def startsWith[B](that: Seq[B]): Boolean

    Tests whether this sequence starts with the given sequence

  153. def startsWith[B](that: Seq[B], offset: Int): Boolean

    Tests whether this sequence contains the given sequence at a given index

  154. def stringPrefix: String

    Defines the prefix of this object's toString representation

  155. def sum: Int

    [use case] Sums up the elements of this collection

  156. def sum[B >: Node](num: Numeric[B]): B

    Sums up the elements of this collection

  157. def tail: NodeSeq

    Selects all elements except the first

  158. def take(n: Int): NodeSeq

    Selects first n elements

  159. def takeRight(n: Int): NodeSeq

    Selects last n elements

  160. def takeWhile(p: (Node) ⇒ Boolean): NodeSeq

    Takes longest prefix of elements that satisfy a predicate

  161. val target: String

  162. def text: String

    Returns a text representation of this node

  163. def theSeq: Seq[Node]

    returns a sequence consisting of only this node

  164. def toArray: Array[Node]

    [use case] Converts this sequence to an array

  165. def toArray[B >: Node](arg0: ClassManifest[B]): Array[B]

    Converts this sequence to an array

  166. def toIndexedSeq[B >: Node]: IndexedSeq[B]

    Converts this sequence to an indexed sequence

  167. def toIterable: Iterable[Node]

    Converts this sequence to an iterable collection

  168. def toList: List[Node]

    Converts this sequence to a list

  169. def toMap[T, U](ev: <:<[Node, (T, U)]): Map[T, U]

    Converts this sequence to a map

  170. def toSeq: Seq[Node]

    Converts this sequence to a sequence

  171. def toSet[B >: Node]: Set[B]

    Converts this sequence to a set

  172. def toStream: Stream[Node]

    Converts this sequence to a stream

  173. def toString(): String

    Same as toString(false)

  174. def transpose[B](asTraversable: (Node) ⇒ Traversable[B]): Seq[Seq[B]]

    Transposes this sequence of traversable collections into

  175. def union(that: Seq[Node]): Seq[Node]

    [use case] Computes the multiset intersection between this sequence and another sequence

  176. def union(that: Seq[Node]): Seq[Node]

    [use case] Computes the multiset difference between this sequence and another sequence

  177. def union(that: Seq[Node]): Seq[Node]

    [use case] Produces a new sequence which contains all elements of this sequence and also all elements of a given sequence

  178. def union[B >: Node, That](that: Seq[B])(bf: CanBuildFrom[NodeSeq, B, That]): That

    Produces a new sequence which contains all elements of this sequence and also all elements of a given sequence

  179. def unzip[A1, A2](asPair: (Node) ⇒ (A1, A2)): (Seq[A1], Seq[A2])

    Converts this sequence of pairs into two collections of the first and second halfs of each pair

  180. def updated(index: Int, elem: Node): Seq[Node]

    [use case] A copy of this sequence with one single replaced element

  181. def updated[B >: Node, That](index: Int, elem: B)(bf: CanBuildFrom[NodeSeq, B, That]): That

    A copy of this sequence with one single replaced element

  182. def view(from: Int, until: Int): SeqView[Node, NodeSeq]

    Creates a non-strict view of a slice of this sequence

  183. def view: SeqView[Node, NodeSeq]

    Creates a non-strict view of this sequence

  184. def withFilter(p: (Node) ⇒ Boolean): WithFilter

    Creates a non-strict filter of this sequence

  185. def xmlType(): TypeSymbol

    Returns a type symbol (e

  186. def zip[B](that: Iterable[B]): Iterable[(Node, B)]

    [use case] Returns a sequence formed from this sequence and another iterable collection by combining corresponding elements in pairs

  187. def zip[A1 >: Node, B, That](that: Iterable[B])(bf: CanBuildFrom[NodeSeq, (A1, B), That]): That

    Returns a sequence formed from this sequence and another iterable collection by combining corresponding elements in pairs

  188. def zipAll[B](that: Iterable[B], thisElem: Node, thatElem: B): Iterable[(Node, B)]

    [use case] Returns a sequence formed from this sequence and another iterable collection by combining corresponding elements in pairs

  189. def zipAll[B, A1 >: Node, That](that: Iterable[B], thisElem: A1, thatElem: B)(bf: CanBuildFrom[NodeSeq, (A1, B), That]): That

    Returns a sequence formed from this sequence and another iterable collection by combining corresponding elements in pairs

  190. def zipWithIndex: Iterable[(Node, Int)]

    [use case] Zips this sequence with its indices

  191. def zipWithIndex[A1 >: Node, That](bf: CanBuildFrom[NodeSeq, (A1, Int), That]): That

    Zips this sequence with its indices

Instance constructors

  1. new ProcInstr(target: String, proctext: String)

  2. new ProcInstr()