org.allenai.nlpstack.core.graph.pattern

Pattern

class Pattern[T] extends (Graph[T]) ⇒ List[Match[T]]

Represents a pattern with which graphs can be searched. A pattern will start and end with a node matcher, and every matcher (necessarily) alternates between a NodeMatcher and and EdgeMatcher.

Linear Supertypes
(Graph[T]) ⇒ List[Match[T]], AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Pattern
  2. Function1
  3. AnyRef
  4. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Pattern(edgeMatchers: List[EdgeMatcher[T]], nodeMatchers: List[NodeMatcher[T]])

  2. new Pattern(matchers: List[Matcher[T]])

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: (List[Match[T]]) ⇒ A): (Graph[T]) ⇒ A

    Definition Classes
    Function1
    Annotations
    @unspecialized()
  7. def apply(graph: Graph[T], vertex: T): List[Match[T]]

    Find all matches of this pattern in the graph starting at vertex.

  8. def apply(graph: Graph[T]): List[Match[T]]

    Find all matches of this pattern in the graph.

    Find all matches of this pattern in the graph.

    Definition Classes
    Pattern → Function1
  9. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  10. def baseEdgeMatchers: List[BaseEdgeMatcher[T]]

  11. def baseNodeMatchers: List[BaseNodeMatcher[T]]

  12. def canEqual(that: Any): Boolean

  13. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  14. def compose[A](g: (A) ⇒ Graph[T]): (A) ⇒ List[Match[T]]

    Definition Classes
    Function1
    Annotations
    @unspecialized()
  15. def edgeMatchers: List[EdgeMatcher[T]]

    A list of just the edge matchers, in order.

  16. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  17. def equals(that: Any): Boolean

    Definition Classes
    Pattern → AnyRef → Any
  18. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  19. final def getClass(): Class[_]

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

    Definition Classes
    Pattern → AnyRef → Any
  21. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  22. val matchers: List[Matcher[T]]

  23. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  24. def nodeMatchers: List[NodeMatcher[T]]

    A list of just the node matchers, in order.

  25. final def notify(): Unit

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

    Definition Classes
    AnyRef
  27. def reflection: Pattern[T]

  28. def serialize: String

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

    Definition Classes
    AnyRef
  30. def toString(): String

    Definition Classes
    Pattern → Function1 → AnyRef → Any
  31. def toStringF(f: (String) ⇒ String): String

  32. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from (Graph[T]) ⇒ List[Match[T]]

Inherited from AnyRef

Inherited from Any

Ungrouped