class ExtractorCallRegular extends ExtractorCall
- Source
- MatchTranslation.scala
- Alphabetic
- By Inheritance
- ExtractorCallRegular
- ExtractorCall
- ExtractorAlignment
- ExtractorSubPatternAlignment
- AnyRef
- Any
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- All
Instance Constructors
-
new
ExtractorCallRegular(fun: Global.Tree, args: List[Global.Tree])(unapplyAppliedToDummy: Global.Tree)
- fun
reference to the unapply method
- args
the subpatterns
- unapplyAppliedToDummy
an application of the unapply method to the (dummy) unapply selector
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
def
+(other: String): String
- Implicit
- This member is added by an implicit conversion from ExtractorCallRegular to any2stringadd[ExtractorCallRegular] performed by method any2stringadd in scala.Predef.
- Definition Classes
- any2stringadd
-
def
->[B](y: B): (ExtractorCallRegular, B)
- Implicit
- This member is added by an implicit conversion from ExtractorCallRegular to ArrowAssoc[ExtractorCallRegular] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc
- Annotations
- @inline()
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
val
args: List[Global.Tree]
Args will be broken down into the concatenation of:
productArity
product patterns (fixed length, corresponding to fields in case class or tuple components in classic unapply, or product selectors in product-based unapply)elementArity
element patterns (explicit patterns that pick off the prefix of the final sequence-valued component of the unapply, or a repeated case constructor arg)starArity
star patterns (0 or 1, absorbs the remaining variable-length components)Args will be broken down into the concatenation of:
productArity
product patterns (fixed length, corresponding to fields in case class or tuple components in classic unapply, or product selectors in product-based unapply)elementArity
element patterns (explicit patterns that pick off the prefix of the final sequence-valued component of the unapply, or a repeated case constructor arg)starArity
star patterns (0 or 1, absorbs the remaining variable-length components)- Definition Classes
- ExtractorAlignment → ExtractorSubPatternAlignment
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
checkedLength: Option[Int]
- Definition Classes
- ExtractorCall
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
def
elementArity: Int
- Definition Classes
- ExtractorAlignment
-
def
ensuring(cond: (ExtractorCallRegular) ⇒ Boolean, msg: ⇒ Any): ExtractorCallRegular
- Implicit
- This member is added by an implicit conversion from ExtractorCallRegular to Ensuring[ExtractorCallRegular] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
def
ensuring(cond: (ExtractorCallRegular) ⇒ Boolean): ExtractorCallRegular
- Implicit
- This member is added by an implicit conversion from ExtractorCallRegular to Ensuring[ExtractorCallRegular] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
def
ensuring(cond: Boolean, msg: ⇒ Any): ExtractorCallRegular
- Implicit
- This member is added by an implicit conversion from ExtractorCallRegular to Ensuring[ExtractorCallRegular] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
def
ensuring(cond: Boolean): ExtractorCallRegular
- Implicit
- This member is added by an implicit conversion from ExtractorCallRegular to Ensuring[ExtractorCallRegular] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
expectedExtractedType: Global.Type
- Definition Classes
- ExtractorAlignment
-
def
expectedLength: Int
- Attributes
- protected
- Definition Classes
- ExtractorCall
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
firstIndexingBinder: Int
- Attributes
- protected
- Definition Classes
- ExtractorCall
-
val
fun: Global.Tree
- Definition Classes
- ExtractorAlignment
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
lazy val
ignoredSubPatBinders: Set[Global.Symbol]
- Definition Classes
- ExtractorCall
-
def
isBool: Boolean
- Definition Classes
- ExtractorAlignment
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
isSeq: Boolean
- Definition Classes
- ExtractorAlignment
-
def
isSingle: Boolean
- Definition Classes
- ExtractorAlignment
-
val
isStar: Boolean
- Definition Classes
- ExtractorSubPatternAlignment
-
def
lastIndexingBinder: Int
- Attributes
- protected
- Definition Classes
- ExtractorCall
-
def
lengthCompareSym: Global.Symbol
- Definition Classes
- ExtractorAlignment
-
def
lengthGuard(binder: Global.Symbol): Option[Global.Tree]
- Attributes
- protected
- Definition Classes
- ExtractorCall
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
val
nonStarArity: Int
- Definition Classes
- ExtractorSubPatternAlignment
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
def
productArity: Int
- Definition Classes
- ExtractorAlignment
-
def
resultInMonad(extractedBinder: Global.Symbol): Global.Type
- Definition Classes
- ExtractorAlignment
-
def
seqTree(binder: Global.Symbol): Global.Tree
- Attributes
- protected
- Definition Classes
- ExtractorCallRegular → ExtractorCall
-
def
spliceApply(pos: Global.Position, binder: Global.Symbol): (Global.Tree, Boolean)
- Attributes
- protected
-
def
starArity: Int
- Definition Classes
- ExtractorSubPatternAlignment
-
lazy val
subBoundTrees: List[BoundTree]
- Definition Classes
- ExtractorCall
-
def
subPatBinders: collection.immutable.List[Global.Symbol]
- Definition Classes
- ExtractorCall
-
def
subPatRefs(binder: Global.Symbol): List[Global.Tree]
- Attributes
- protected
- Definition Classes
- ExtractorCallRegular → ExtractorCall
-
def
subPatRefsSeq(binder: Global.Symbol): List[Global.Tree]
- Attributes
- protected
- Definition Classes
- ExtractorCall
-
def
subPatTypes(extractedBinder: Global.Symbol): List[Global.Type]
- Definition Classes
- ExtractorAlignment
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
def
totalArity: Int
- Definition Classes
- ExtractorSubPatternAlignment
-
def
treeMakers(patBinderOrCasted: Global.Symbol, binderKnownNonNull: Boolean, pos: Global.Position): List[MatchTranslator.TreeMaker]
Create the TreeMaker that embodies this extractor call
Create the TreeMaker that embodies this extractor call
binder
has been casted toparamType
if necessarybinderKnownNonNull
is not used in this subclassTODO: implement review feedback by @retronym: Passing the pair of values around suggests: case class Binder(sym: Symbol, knownNotNull: Boolean). Perhaps it hasn't reached critical mass, but it would already clean things up a touch.
- Definition Classes
- ExtractorCallRegular → ExtractorCall
-
def
tupleSel(binder: Global.Symbol)(i: Int): Global.Tree
- Attributes
- protected
- Definition Classes
- ExtractorCall
-
def
unapplyFormals: List[Global.Type]
- Definition Classes
- ExtractorAlignment
-
lazy val
unapplySelector: Global.Symbol
- Definition Classes
- ExtractorCallRegular → ExtractorAlignment
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
def
→[B](y: B): (ExtractorCallRegular, B)
- Implicit
- This member is added by an implicit conversion from ExtractorCallRegular to ArrowAssoc[ExtractorCallRegular] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc
Deprecated Value Members
-
def
formatted(fmtstr: String): String
- Implicit
- This member is added by an implicit conversion from ExtractorCallRegular to StringFormat[ExtractorCallRegular] performed by method StringFormat in scala.Predef.
- Definition Classes
- StringFormat
- Annotations
- @deprecated @inline()
- Deprecated
(Since version 2.12.16) Use
formatString.format(value)
instead ofvalue.formatted(formatString)
, or use thef""
string interpolator. In Java 15 and later,formatted
resolves to the new method in String which has reversed parameters.
The Scala compiler and reflection APIs.