scala.reflect.generic.Trees

LabelDef

class LabelDef(name: Name, params: List[Ident], rhs: Tree) extends DefTree with TermTree with Product

Labelled expression - the symbols in the array (must be Idents!) are those the label takes as argument

The symbol that is given to the labeldef should have a MethodType (as if it were a nested function)

Jumps are apply nodes attributed with label symbol, the arguments will get assigned to the idents.

Note: on 2005-06-09 Martin, Iuli, Burak agreed to have forward jumps within a Block.

go to: companion
source: Trees.scala

Inherited

  1. Hide All
  2. Show all
  1. TermTree
  2. DefTree
  3. SymTree
  4. Tree
  5. Product
  6. Equals
  7. AnyRef
  8. Any

Visibility

  1. Public
  2. All

Instance constructors

  1. new LabelDef(name: Name, params: List[Ident], rhs: Tree)

Value Members

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

  2. def !=(arg0: Any): Boolean

    o != arg0 is the same as !(o == (arg0)).

  3. def ##(): Int

  4. def $asInstanceOf[T0](): T0

  5. def $isInstanceOf[T0](): Boolean

  6. def ==(arg0: AnyRef): Boolean

    o == arg0 is the same as if (o eq null) arg0 eq null else o.equals(arg0).

  7. def ==(arg0: Any): Boolean

    o == arg0 is the same as o.equals(arg0).

  8. def asInstanceOf[T0]: T0

    This method is used to cast the receiver object to be of type T0.

  9. def canEqual(arg0: Any): Boolean

    A method that should be called from every well-designed equals method that is open to be overridden in a subclass .

  10. def children: List[Tree]

    The direct child trees of this tree EmptyTrees are always omitted .

  11. def clone(): AnyRef

    This method creates and returns a copy of the receiver object .

  12. def defineType(tp: Type): Tree

    Like setType, but if this is a previously empty TypeTree that fact is remembered so that resetType will snap back.

  13. def eq(arg0: AnyRef): Boolean

    This method is used to test whether the argument (arg0) is a reference to the receiver object (this).

  14. def equals(that: Any): Boolean

    The equality method defined in AnyRef.

  15. def finalize(): Unit

    This method is called by the garbage collector on the receiver object when garbage collection determines that there are no more references to the object .

  16. def getClass(): java.lang.Class[_ <: java.lang.Object]

    Returns a representation that corresponds to the dynamic class of the receiver object .

  17. def hasSymbol: Boolean

  18. def hashCode(): Int

    Returns a hash code value for the object .

  19. val id: Int

  20. def isDef: Boolean

  21. def isEmpty: Boolean

  22. def isInstanceOf[T0]: Boolean

    This method is used to test whether the dynamic type of the receiver object is T0.

  23. val name: Name

  24. def ne(arg0: AnyRef): Boolean

    o.ne(arg0) is the same as !(o.eq(arg0)).

  25. def notify(): Unit

    Wakes up a single thread that is waiting on the receiver object's monitor .

  26. def notifyAll(): Unit

    Wakes up all threads that are waiting on the receiver object's monitor .

  27. val params: List[Ident]

  28. def pos: Position

  29. def pos_=(pos: Position): Unit

  30. def productArity: Int

    return k for a product A(x_1, .

  31. def productElement(arg0: Int): Any

    For a product A(x_1, .

  32. def productElementName(n: Int): String

    Returns the name of the field at the given index from the definition of the class .

  33. def productElements: Iterator[Any]

  34. def productIterator: Iterator[Any]

    An iterator that returns all fields of this product

  35. def productPrefix: String

    By default the empty string .

  36. val rhs: Tree

  37. def setPos(pos: Position): Tree

  38. def setSymbol(sym: Symbol): Tree

  39. def setType(tp: Type): Tree

    Set tpe to give tp and return this.

  40. var symbol: Symbol

  41. def synchronized[T0](arg0: T0): T0

  42. def toString(): String

    Returns a string representation of the object .

  43. def tpe: Type

  44. def tpe_=(t: Type): Unit

  45. def wait(): Unit

  46. def wait(arg0: Long, arg1: Int): Unit

  47. def wait(arg0: Long): Unit