dotty.tools.dotc.core.Constants

Constant

Related Doc: package Constants

case class Constant(value: Any) extends Showable with Product with Serializable

Linear Supertypes
Serializable, Serializable, Product, Equals, Showable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Constant
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. Showable
  7. AnyRef
  8. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Constant(value: Any)

Value Members

  1. final def !=(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  5. def booleanValue: Boolean

  6. def byteValue: Byte

  7. def charValue: Char

  8. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  9. def convertTo(pt: Type)(implicit ctx: Context): Constant

    Convert constant value to conform to given type.

  10. def doubleValue: Double

  11. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  12. def equals(other: Any): Boolean

    We need the equals method to take account of tags as well as values.

    We need the equals method to take account of tags as well as values.

    Definition Classes
    Constant → Equals → AnyRef → Any
  13. def fallbackToText(printer: Printer): Text

    A fallback text representation, if the pattern matching in Printers does not have a case for this showable element

    A fallback text representation, if the pattern matching in Printers does not have a case for this showable element

    Definition Classes
    Showable
  14. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  15. def floatValue: Float

  16. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  17. def hashCode(): Int

    Definition Classes
    Constant → AnyRef → Any
  18. def intValue: Int

  19. def isAnyVal: Boolean

  20. def isByteRange: Boolean

  21. def isCharRange: Boolean

  22. def isFloatRange: Boolean

  23. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  24. def isIntRange: Boolean

  25. def isLongRange: Boolean

  26. def isNaN: Boolean

  27. def isNonUnitAnyVal: Boolean

  28. def isNumeric: Boolean

  29. def isShortRange: Boolean

  30. def longValue: Long

  31. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  32. final def notify(): Unit

    Definition Classes
    AnyRef
  33. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  34. def shortValue: Short

  35. def show(implicit ctx: Context): String

    The string representation of this showable element.

    The string representation of this showable element.

    Definition Classes
    Showable
  36. def showSummary(implicit ctx: Context): String

    Definition Classes
    Showable
  37. def showSummary(depth: Int)(implicit ctx: Context): String

    The summarized string representation of this showable element.

    The summarized string representation of this showable element. Recursion depth is limited to some smallish value. Default is Config.summarizeDepth.

    Definition Classes
    Showable
  38. def stringValue: String

  39. def symbolValue: Symbol

  40. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  41. val tag: Int

  42. def toText(printer: Printer): Text

    The text representation of this showable element.

    The text representation of this showable element. This normally dispatches to a pattern matching method in Printers.

    Definition Classes
    ConstantShowable
  43. def tpe(implicit ctx: Context): Type

  44. def typeValue: Type

  45. val value: Any

  46. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  47. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  48. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from Showable

Inherited from AnyRef

Inherited from Any

Ungrouped