org.specs2.matcher

PathFunction

class PathFunction extends (Seq[Node]) ⇒ Seq[Node] with XPathFunctions

The PathFunction object encapsulate a search for a node and/or attributes or attributeValues with an XPath function If node has some children, then they are searched using equality

Linear Supertypes
XPathFunctions, (Seq[Node]) ⇒ Seq[Node], AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Hide All
  2. Show all
  1. PathFunction
  2. XPathFunctions
  3. Function1
  4. AnyRef
  5. Any
Visibility
  1. Public
  2. All

Instance Constructors

  1. new PathFunction (node: Node, function: XPathFunction, attributes: List[String], attributeValues: Map[String, String], exactMatch: Boolean)

Type Members

  1. type XPathFunction = (Node, String) ⇒ NodeSeq

    Definition Classes
    XPathFunctions

Value Members

  1. def != (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  2. def != (arg0: Any): Boolean

    Attributes
    final
    Definition Classes
    Any
  3. def ## (): Int

    Attributes
    final
    Definition Classes
    AnyRef → Any
  4. def == (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  5. def == (arg0: Any): Boolean

    Attributes
    final
    Definition Classes
    Any
  6. def andThen [A] (g: (Seq[Node]) ⇒ A): (Seq[Node]) ⇒ A

    Definition Classes
    Function1
  7. def apply (nodes: Seq[Node]): Seq[Node]

    returns

    the node if it is found and matching the searched attributes and/or attribute values when specified

    Definition Classes
    PathFunction → Function1
  8. def asInstanceOf [T0] : T0

    Attributes
    final
    Definition Classes
    Any
  9. val attributeValues : Map[String, String]

  10. val attributes : List[String]

  11. def clone (): AnyRef

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  12. def compose [A] (g: (A) ⇒ Seq[Node]): (A) ⇒ Seq[Node]

    Definition Classes
    Function1
  13. def deepNodeSearch (node: Node, label: String): NodeSeq

    returns

    the \\ XPath function

    Definition Classes
    XPathFunctions
  14. def eq (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  15. def equals (arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  16. def exactly : PathFunction

  17. def finalize (): Unit

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  18. def firstNodeSearch (node: Node, label: String): NodeSeq

    returns

    the \ XPath function

    Definition Classes
    XPathFunctions
  19. val function : XPathFunction

  20. def getClass (): java.lang.Class[_]

    Attributes
    final
    Definition Classes
    AnyRef → Any
  21. def hashCode (): Int

    Definition Classes
    AnyRef → Any
  22. def isInstanceOf [T0] : Boolean

    Attributes
    final
    Definition Classes
    Any
  23. def ne (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  24. val node : Node

  25. def nodeLabel : String

    returns

    "subnode" or "node" depending on the type of search a direct child search or a general search

  26. def notify (): Unit

    Attributes
    final
    Definition Classes
    AnyRef
  27. def notifyAll (): Unit

    Attributes
    final
    Definition Classes
    AnyRef
  28. def searchedAttributes : String

    returns

    a string representation of attributes or attributeValues (one of them being empty by construction)

  29. def searchedElements : String

    returns

    a string representing the searched nodes, attributes, attribute values

  30. def synchronized [T0] (arg0: ⇒ T0): T0

    Attributes
    final
    Definition Classes
    AnyRef
  31. def toString (): String

    Definition Classes
    Function1 → AnyRef → Any
  32. def wait (): Unit

    Attributes
    final
    Definition Classes
    AnyRef
    Annotations
    @throws()
  33. def wait (arg0: Long, arg1: Int): Unit

    Attributes
    final
    Definition Classes
    AnyRef
    Annotations
    @throws()
  34. def wait (arg0: Long): Unit

    Attributes
    final
    Definition Classes
    AnyRef
    Annotations
    @throws()

Inherited from XPathFunctions

Inherited from (Seq[Node]) ⇒ Seq[Node]

Inherited from AnyRef

Inherited from Any