sealed trait Conversion extends AnyRef
A conversion specifier matched by m
in the string part at pos
,
with argc
arguments to interpolate.
- Source
- FormatInterpolator.scala
Linear Supertypes
Known Subclasses
Ordering
- Alphabetic
- By Inheritance
Inherited
- Conversion
- AnyRef
- Any
Implicitly
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
Visibility
- Public
- All
Abstract Value Members
- abstract def accepts(arg: nsc.Global.Tree): Option[nsc.Global.Type]
- abstract def argc: Int
- abstract def m: Match
- abstract def pos: nsc.Global.Position
Concrete Value Members
- val allFlags: String
- def badFlag(f: Char, msg: String): Unit
- def cc: Char
- def errorAt(g: SpecifierGroups.Value, msg: String): Unit
- def errorAtOffset(g: SpecifierGroups.Value, i: Int, msg: String): Unit
- val flags: Option[String]
- def goodFlags: Boolean
- def goodIndex: Boolean
- def groupPos(g: SpecifierGroups.Value): Position
- def groupPosAt(g: SpecifierGroups.Value, i: Int): Position
- def hasAnyFlag(fs: String): Boolean
- def hasFlag(f: Char): Boolean
- val index: Option[Int]
- def indexed: Boolean
- def isLeading: Boolean
- def isLiteral: Boolean
- def noFlags: Boolean
- def noPrecision: Boolean
- def noWidth: Boolean
- def only_-(msg: String): Boolean
- val op: String
-
def
pickAcceptable(arg: nsc.Global.Tree, variants: nsc.Global.Type*): Option[nsc.Global.Type]
Pick the type of an arg to format from among the variants supported by a conversion.
Pick the type of an arg to format from among the variants supported by a conversion. This is the type of the temporary, so failure results in an erroneous assignment to the first variant. A more complete message would be nice.
- val precision: Option[Int]
- def verify: Boolean
- val width: Option[Int]
The Scala compiler and reflection APIs.