trait PartialFunction extends Term with WithCases with Tree.CasesBlock with Product

Annotations
@astClass() @leafClass()
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. PartialFunction
  2. CasesBlock
  3. Block
  4. WithCases
  5. WithExprs
  6. Term
  7. Stat
  8. Tree
  9. Serializable
  10. Ast
  11. Adt
  12. InternalTree
  13. Product
  14. Equals
  15. AnyRef
  16. Any
Implicitly
  1. by ImplicitTree
  2. by XtensionTreesStat
  3. by XtensionTreesTerm
  4. by ImplicitTree
  5. by any2stringadd
  6. by StringFormat
  7. by Ensuring
  8. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Abstract Value Members

  1. abstract def begComment: Option[Comments]
    Definition Classes
    PartialFunction → InternalTree
    Annotations
    @privateField()
  2. abstract def cases: List[scala.meta.Case] @org.scalameta.invariants.nonEmpty
    Definition Classes
    PartialFunction → CasesBlock → WithCases
    Annotations
    @astField()
  3. abstract def copy(cases: List[scala.meta.Case] @org.scalameta.invariants.nonEmpty = this.cases): PartialFunction
  4. abstract def copyWithComments(cases: List[scala.meta.Case] @org.scalameta.invariants.nonEmpty = this.cases, begComment: Option[Comments] = this.begComment, endComment: Option[Comments] = this.endComment): PartialFunction
  5. abstract def endComment: Option[Comments]
    Definition Classes
    PartialFunction → InternalTree
    Annotations
    @privateField()
  6. abstract def foreachChild(f: (Tree) => Unit): Unit

    Applies f to each direct child tree, in field order.

    Applies f to each direct child tree, in field order. Implemented per @ast node (allocation-free); children/childrenCount derive from it.

    Definition Classes
    InternalTree
  7. abstract def origin: Origin
    Definition Classes
    PartialFunction → InternalTree
    Annotations
    @privateField()
  8. abstract def parent: Option[Tree]
    Definition Classes
    InternalTree
  9. abstract def productArity: Int
    Definition Classes
    Product
  10. abstract def productElement(n: Int): Any
    Definition Classes
    Product
  11. abstract def productFields: List[String]
    Definition Classes
    InternalTree

Concrete Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. def +(other: String): String
    Implicit
    This member is added by an implicit conversion from PartialFunction toany2stringadd[PartialFunction] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  4. def ->[B](y: B): (PartialFunction, B)
    Implicit
    This member is added by an implicit conversion from PartialFunction toArrowAssoc[PartialFunction] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  5. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  6. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  7. def begOffset: Int
    Definition Classes
    InternalTree
  8. final def canEqual(that: Any): Boolean
    Definition Classes
    PartialFunction → Tree → Equals
  9. def checkField(field: Tree, requirement: Boolean): Unit
    Attributes
    protected
    Definition Classes
    InternalTree
  10. def checkFields(f: => Boolean): Unit
    Attributes
    protected
    Definition Classes
    InternalTree
  11. def children: List[Tree]
    Definition Classes
    InternalTree
  12. def childrenCount: Int

    Number of direct child trees; overridden per @ast node to avoid the children builder.

    Number of direct child trees; overridden per @ast node to avoid the children builder.

    Definition Classes
    InternalTree
  13. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  14. def endOffset: Int
    Definition Classes
    InternalTree
  15. def ensuring(cond: (PartialFunction) => Boolean, msg: => Any): PartialFunction
    Implicit
    This member is added by an implicit conversion from PartialFunction toEnsuring[PartialFunction] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  16. def ensuring(cond: (PartialFunction) => Boolean): PartialFunction
    Implicit
    This member is added by an implicit conversion from PartialFunction toEnsuring[PartialFunction] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  17. def ensuring(cond: Boolean, msg: => Any): PartialFunction
    Implicit
    This member is added by an implicit conversion from PartialFunction toEnsuring[PartialFunction] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  18. def ensuring(cond: Boolean): PartialFunction
    Implicit
    This member is added by an implicit conversion from PartialFunction toEnsuring[PartialFunction] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  19. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  20. final def equals(that: Any): Boolean
    Definition Classes
    PartialFunction → Tree → Equals → AnyRef → Any
  21. final def exprs: List[Tree]
    Definition Classes
    WithCases → WithExprs
  22. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  23. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  24. final def hasComments: Boolean
    Definition Classes
    InternalTree
  25. final def hashCode(): Int
    Definition Classes
    PartialFunction → Tree → AnyRef → Any
  26. def isBlockStat: Boolean
    Implicit
    This member is added by an implicit conversion from PartialFunction toXtensionTreesStat performed by method XtensionTreesStat in scala.meta.internal.trees.
    Definition Classes
    XtensionTreesStat
  27. def isEarlyStat: Boolean
    Implicit
    This member is added by an implicit conversion from PartialFunction toXtensionTreesStat performed by method XtensionTreesStat in scala.meta.internal.trees.
    Definition Classes
    XtensionTreesStat
  28. def isExistentialStat: Boolean
    Implicit
    This member is added by an implicit conversion from PartialFunction toXtensionTreesStat performed by method XtensionTreesStat in scala.meta.internal.trees.
    Definition Classes
    XtensionTreesStat
  29. def isExtractor: Boolean
    Implicit
    This member is added by an implicit conversion from PartialFunction toXtensionTreesTerm performed by method XtensionTreesTerm in scala.meta.internal.trees.
    Definition Classes
    XtensionTreesTerm
    Annotations
    @tailrec()
  30. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  31. def isRefineStat: Boolean
    Implicit
    This member is added by an implicit conversion from PartialFunction toXtensionTreesStat performed by method XtensionTreesStat in scala.meta.internal.trees.
    Definition Classes
    XtensionTreesStat
  32. def isTemplateStat: Boolean
    Implicit
    This member is added by an implicit conversion from PartialFunction toXtensionTreesStat performed by method XtensionTreesStat in scala.meta.internal.trees.
    Definition Classes
    XtensionTreesStat
  33. def isTopLevelStat: Boolean
    Implicit
    This member is added by an implicit conversion from PartialFunction toXtensionTreesStat performed by method XtensionTreesStat in scala.meta.internal.trees.
    Definition Classes
    XtensionTreesStat
  34. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  35. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  36. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  37. final def originalPrototype(): Tree
    Definition Classes
    InternalTree
    Annotations
    @tailrec()
  38. def pos: Position
    Definition Classes
    InternalTree
  39. def printSyntaxFor(dialect: Dialect): String
    Definition Classes
    InternalTree
  40. def productElementName(n: Int): String
    Definition Classes
    Product
  41. def productElementNames: Iterator[String]
    Definition Classes
    Product
  42. def productIterator: Iterator[Any]
    Definition Classes
    Product
  43. def productPrefix: String
    Definition Classes
    Product
  44. def prototype: Option[Tree]
    Definition Classes
    InternalTree
  45. final def stats: List[Tree]

    brace- or indent-delimited container of statements

    brace- or indent-delimited container of statements

    Definition Classes
    CasesBlock → Block
  46. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  47. def text: String
    Definition Classes
    InternalTree
  48. final def toString(): String
    Definition Classes
    PartialFunction → Tree → AnyRef → Any
  49. def tokenizeFor(dialect: Dialect): Tokens
    Definition Classes
    InternalTree
  50. def tokens: Tokens
    Definition Classes
    InternalTree
  51. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  52. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  53. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Shadowed Implicit Value Members

  1. def ancestor(level: Int): Option[Tree]
    Implicit
    This member is added by an implicit conversion from PartialFunction toImplicitTree[PartialFunction] performed by method ImplicitTree in scala.meta.Tree.
    Shadowing
    This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
    To access this member you can use a type ascription:
    (partialFunction: ImplicitTree[PartialFunction]).ancestor(level)
    Definition Classes
    ImplicitTree
  2. def ancestor(level: Int): Option[Tree]
    Implicit
    This member is added by an implicit conversion from PartialFunction toImplicitTree[PartialFunction] performed by method ImplicitTree in scala.meta.Tree.
    Shadowing
    This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
    To access this member you can use a type ascription:
    (partialFunction: ImplicitTree[PartialFunction]).ancestor(level)
    Definition Classes
    ImplicitTree
  3. def ancestorOrNoTree(level: Int): Tree
    Implicit
    This member is added by an implicit conversion from PartialFunction toImplicitTree[PartialFunction] performed by method ImplicitTree in scala.meta.Tree.
    Shadowing
    This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
    To access this member you can use a type ascription:
    (partialFunction: ImplicitTree[PartialFunction]).ancestorOrNoTree(level)
    Definition Classes
    ImplicitTree
  4. def ancestorOrNoTree(level: Int): Tree
    Implicit
    This member is added by an implicit conversion from PartialFunction toImplicitTree[PartialFunction] performed by method ImplicitTree in scala.meta.Tree.
    Shadowing
    This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
    To access this member you can use a type ascription:
    (partialFunction: ImplicitTree[PartialFunction]).ancestorOrNoTree(level)
    Definition Classes
    ImplicitTree
  5. def ancestorOrNull(level: Int): Tree
    Implicit
    This member is added by an implicit conversion from PartialFunction toImplicitTree[PartialFunction] performed by method ImplicitTree in scala.meta.Tree.
    Shadowing
    This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
    To access this member you can use a type ascription:
    (partialFunction: ImplicitTree[PartialFunction]).ancestorOrNull(level)
    Definition Classes
    ImplicitTree
  6. def ancestorOrNull(level: Int): Tree
    Implicit
    This member is added by an implicit conversion from PartialFunction toImplicitTree[PartialFunction] performed by method ImplicitTree in scala.meta.Tree.
    Shadowing
    This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
    To access this member you can use a type ascription:
    (partialFunction: ImplicitTree[PartialFunction]).ancestorOrNull(level)
    Definition Classes
    ImplicitTree
  7. def parentOrNoTree: Tree

    The parent Tree, or the NoTree sentinel if there is none; never null.

    The parent Tree, or the NoTree sentinel if there is none; never null. Since NoTree.parentOrNoTree eq NoTree, walking a chain needs no null checks and terminates at the NoTree fixed point. Unlike parentOrNull it does not guard a null receiver: it never yields null, so a chain never calls it on one — do not call it on a literal null.

    Implicit
    This member is added by an implicit conversion from PartialFunction toImplicitTree[PartialFunction] performed by method ImplicitTree in scala.meta.Tree.
    Shadowing
    This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
    To access this member you can use a type ascription:
    (partialFunction: ImplicitTree[PartialFunction]).parentOrNoTree
    Definition Classes
    ImplicitTree
  8. def parentOrNoTree: Tree

    The parent Tree, or the NoTree sentinel if there is none; never null.

    The parent Tree, or the NoTree sentinel if there is none; never null. Since NoTree.parentOrNoTree eq NoTree, walking a chain needs no null checks and terminates at the NoTree fixed point. Unlike parentOrNull it does not guard a null receiver: it never yields null, so a chain never calls it on one — do not call it on a literal null.

    Implicit
    This member is added by an implicit conversion from PartialFunction toImplicitTree[PartialFunction] performed by method ImplicitTree in scala.meta.Tree.
    Shadowing
    This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
    To access this member you can use a type ascription:
    (partialFunction: ImplicitTree[PartialFunction]).parentOrNoTree
    Definition Classes
    ImplicitTree
  9. def parentOrNull: Tree

    The parent Tree, or null if there is none (also null for a null receiver).

    The parent Tree, or null if there is none (also null for a null receiver).

    Implicit
    This member is added by an implicit conversion from PartialFunction toImplicitTree[PartialFunction] performed by method ImplicitTree in scala.meta.Tree.
    Shadowing
    This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
    To access this member you can use a type ascription:
    (partialFunction: ImplicitTree[PartialFunction]).parentOrNull
    Definition Classes
    ImplicitTree
  10. def parentOrNull: Tree

    The parent Tree, or null if there is none (also null for a null receiver).

    The parent Tree, or null if there is none (also null for a null receiver).

    Implicit
    This member is added by an implicit conversion from PartialFunction toImplicitTree[PartialFunction] performed by method ImplicitTree in scala.meta.Tree.
    Shadowing
    This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
    To access this member you can use a type ascription:
    (partialFunction: ImplicitTree[PartialFunction]).parentOrNull
    Definition Classes
    ImplicitTree

Deprecated Value Members

  1. def formatted(fmtstr: String): String
    Implicit
    This member is added by an implicit conversion from PartialFunction toStringFormat[PartialFunction] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @deprecated @inline()
    Deprecated

    (Since version 2.12.16) Use formatString.format(value) instead of value.formatted(formatString), or use the f"" string interpolator. In Java 15 and later, formatted resolves to the new method in String which has reversed parameters.

  2. def →[B](y: B): (PartialFunction, B)
    Implicit
    This member is added by an implicit conversion from PartialFunction toArrowAssoc[PartialFunction] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @deprecated
    Deprecated

    (Since version 2.13.0) Use -> instead. If you still wish to display it as one character, consider using a font with programming ligatures such as Fira Code.

Inherited from Tree.CasesBlock

Inherited from Tree.Block

Inherited from WithCases

Inherited from WithExprs

Inherited from Term

Inherited from Stat

Inherited from Tree

Inherited from java.io.Serializable

Inherited from Ast

Inherited from Adt

Inherited from InternalTree

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion ImplicitTree fromPartialFunction to ImplicitTree[PartialFunction]

Inherited by implicit conversion XtensionTreesStat fromPartialFunction to XtensionTreesStat

Inherited by implicit conversion XtensionTreesTerm fromPartialFunction to XtensionTreesTerm

Inherited by implicit conversion ImplicitTree fromPartialFunction to ImplicitTree[PartialFunction]

Inherited by implicit conversion any2stringadd fromPartialFunction to any2stringadd[PartialFunction]

Inherited by implicit conversion StringFormat fromPartialFunction to StringFormat[PartialFunction]

Inherited by implicit conversion Ensuring fromPartialFunction to Ensuring[PartialFunction]

Inherited by implicit conversion ArrowAssoc fromPartialFunction to ArrowAssoc[PartialFunction]

Ungrouped