com.twitter.finagle

NameTree

Related Docs: trait NameTree | package finagle

object NameTree

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

Linear Supertypes
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: Weighted[T]*) extends NameTree[T] with Product with Serializable

    A NameTree representing a weighted union of trees.

    A NameTree representing a weighted union of trees. It is evaluated by returning the union of its (recursively evaluated) children, leaving corresponding weights unchanged. When all children are negative, the Union itself evaluates negative.

    NameTree gives no semantics to weights (they are interpreted higher in the stack) except to simplify away single-child Unions regardless of weight.

  4. case class Weighted[+T](weight: Double, tree: NameTree[T]) extends Product with Serializable

Value Members

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

    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

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

    Definition Classes
    AnyRef → Any
  4. object Alt extends Serializable

  5. object Empty extends NameTree[Nothing]

    An empty NameTree.

  6. object Fail extends NameTree[Nothing]

    A failing NameTree.

  7. object Neg extends NameTree[Nothing]

    A negative NameTree.

  8. object Union extends Serializable

  9. object Weighted 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( classOf[java.lang.Throwable] )
  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]+

    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