org.specs2.matcher

PathFunction

case class PathFunction(node: Node, function: (Node, String) ⇒ NodeSeq, attributes: List[String], attributeValues: Map[String, String], exactMatch: Boolean, textMessage: Option[String], textMatcher: Matcher[String]) extends (Seq[Node]) ⇒ Seq[Node] with XPathFunctions with Product with Serializable

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
Serializable, Serializable, Product, Equals, XPathFunctions, (Seq[Node]) ⇒ Seq[Node], AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Hide All
  2. Show all
  1. PathFunction
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. XPathFunctions
  7. Function1
  8. AnyRef
  9. Any
Visibility
  1. Public
  2. All

Instance Constructors

  1. new PathFunction(node: Node, function: (Node, String) ⇒ NodeSeq, attributes: List[String] = immutable.this.Nil, attributeValues: Map[String, String] = ..., exactMatch: Boolean = false, textMessage: Option[String] = scala.None, textMatcher: Matcher[String] = ...)

Type Members

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

    Definition Classes
    XPathFunctions

Value Members

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

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

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

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

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

    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. final def asInstanceOf[T0]: T0

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

  10. val attributes: List[String]

  11. def canEqual(arg0: Any): Boolean

    Definition Classes
    PathFunction → Equals
  12. def clone(): AnyRef

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

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

    returns

    the \\ XPath function

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

    Definition Classes
    AnyRef
  16. def equals(arg0: Any): Boolean

    Definition Classes
    PathFunction → Equals → AnyRef → Any
  17. val exactMatch: Boolean

  18. def exactly: PathFunction

  19. def finalize(): Unit

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

    returns

    the \ XPath function

    Definition Classes
    XPathFunctions
  21. val function: (Node, String) ⇒ NodeSeq

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

    Definition Classes
    AnyRef → Any
  23. def hashCode(): Int

    Definition Classes
    PathFunction → AnyRef → Any
  24. final def isInstanceOf[T0]: Boolean

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

    Definition Classes
    AnyRef
  26. val node: Node

  27. def nodeLabel: String

    returns

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

  28. final def notify(): Unit

    Definition Classes
    AnyRef
  29. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  30. def productArity: Int

    Definition Classes
    PathFunction → Product
  31. def productElement(arg0: Int): Any

    Definition Classes
    PathFunction → Product
  32. def productIterator: Iterator[Any]

    Definition Classes
    Product
  33. def productPrefix: String

    Definition Classes
    PathFunction → Product
  34. def searchedAttributes: String

    returns

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

  35. def searchedElements: String

    returns

    a string representing the searched nodes, attributes, attribute values

  36. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  37. def textIs(t: String): PathFunction

    add a matcher for the node text

  38. val textMatcher: Matcher[String]

  39. def textMatches(regexp: String): PathFunction

    add a matcher for the node text with a regular exp

  40. val textMessage: Option[String]

  41. def toString(): String

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws()

Deprecated Value Members

  1. def productElements: Iterator[Any]

    Definition Classes
    Product
    Annotations
    @deprecated
    Deprecated

    (Since version 2.8.0) use productIterator instead

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from XPathFunctions

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

Inherited from AnyRef

Inherited from Any