com.twitter.finagle

NameTree

object NameTree

The NameTree object comprises NameTree types as well as binding and evaluation routines.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. NameTree
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Type Members

  1. case class Alt[+T](trees: NameTree[T]*) extends NameTree[T] with Product with Serializable

    A NameTree representing fallback; it is evaluated by picking the first nonnegative (evaluated) subtree.

  2. case class Leaf[+T](value: T) extends NameTree[T] with Product with Serializable

  3. case class Union[+T](trees: NameTree[T]*) extends NameTree[T] with Product with Serializable

    A NameTree representing a union of trees.

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. object Alt extends Serializable

  7. object Empty extends NameTree[Nothing]

    An empty NameTree.

  8. object Neg extends NameTree[Nothing]

    A negative NameTree.

  9. object Union extends Serializable

  10. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  11. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  12. final def eq(arg0: AnyRef): Boolean

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

    Definition Classes
    AnyRef → Any
  14. implicit def equiv[T]: Equiv[NameTree[T]]

  15. def finalize(): Unit

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

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

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

    Definition Classes
    Any
  19. def map[T, U](f: (T) ⇒ U)(tree: NameTree[T]): NameTree[U]

    Rewrite the paths in a tree for values defined by the given partial function.

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

    Definition Classes
    AnyRef
  21. final def notify(): Unit

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

    Definition Classes
    AnyRef
  23. def read(s: String): NameTree[Path]

    Parse a NameTree from a string with concrete syntax

    Parse a NameTree from a string with concrete syntax

    tree       ::= name
                   weight '*' tree
                   tree '&' tree
                   tree '|' tree
                   '(' tree ')'
    
    name       ::= path | '~' | '$'
    
    weight     ::= -?([0-9]++(\.[0-9]+*)?|[0-9]+*\.[0-9]++)([eE][+-]?[0-9]++)?[fFdD]?

    For example:

    /foo & /bar | /baz | $

    parses in to the NameTree

    Alt(Union(Leaf(Path(foo)),Leaf(Path(bar))),Leaf(Path(baz)),Empty)

    The production path is documented at Path.read.

    Exceptions thrown
    IllegalArgumentException

    when the string does not represent a valid name tree.

  24. def show[T](tree: NameTree[T])(implicit arg0: Showable[T]): String

    A string parseable by NameTree.read.

  25. def simplify[T](tree: NameTree[T]): NameTree[T]

    Simplify the given NameTree, yielding a new NameTree which is evaluation-equivalent.

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

    Definition Classes
    AnyRef
  27. def toString(): String

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws()

Inherited from AnyRef

Inherited from Any

Ungrouped