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
-
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 Conversion to any2stringadd[Conversion] performed by method any2stringadd in scala.Predef.
- Definition Classes
- any2stringadd
-
def
->[B](y: B): (Conversion, B)
- Implicit
- This member is added by an implicit conversion from Conversion to ArrowAssoc[Conversion] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc
- Annotations
- @inline()
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- val allFlags: String
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
- def badFlag(f: Char, msg: String): Unit
- def cc: Char
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
def
ensuring(cond: (Conversion) ⇒ Boolean, msg: ⇒ Any): Conversion
- Implicit
- This member is added by an implicit conversion from Conversion to Ensuring[Conversion] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
def
ensuring(cond: (Conversion) ⇒ Boolean): Conversion
- Implicit
- This member is added by an implicit conversion from Conversion to Ensuring[Conversion] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
def
ensuring(cond: Boolean, msg: ⇒ Any): Conversion
- Implicit
- This member is added by an implicit conversion from Conversion to Ensuring[Conversion] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
def
ensuring(cond: Boolean): Conversion
- Implicit
- This member is added by an implicit conversion from Conversion to Ensuring[Conversion] 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 errorAt(g: SpecifierGroups.Value, msg: String): Unit
- def errorAtOffset(g: SpecifierGroups.Value, i: Int, msg: String): Unit
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
- val flags: Option[String]
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- 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
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- val index: Option[Int]
- def indexed: Boolean
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def isLeading: Boolean
- def isLiteral: Boolean
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def noFlags: Boolean
- def noPrecision: Boolean
- def noWidth: Boolean
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
def
okFlags: String
- Attributes
- protected
- 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]
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
- def verify: Boolean
-
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()
- val width: Option[Int]
-
def
→[B](y: B): (Conversion, B)
- Implicit
- This member is added by an implicit conversion from Conversion to ArrowAssoc[Conversion] 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 Conversion to StringFormat[Conversion] 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,formattedresolves to the new method in String which has reversed parameters.
The Scala compiler and reflection APIs.