Packages

class PrettyType extends Type

A Type with custom pretty-printing representation, not used for typechecking.

NOTE(olafur) Creating a new Type subclass is a hack, a better long-term solution would be to implement a custom pretty-printer for types so that we don't have to rely on Type.toString.

Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. PrettyType
  2. Type
  3. Annotatable
  4. TypeApiImpl
  5. TypeApi
  6. AnyRef
  7. Any
Implicitly
  1. by XtensionSyntax
  2. by XtensionClassifiable
  3. by XtensionTokenizeInputLike
  4. by XtensionStructure
  5. by XtensionShow
  6. by XtensionParseInputLike
  7. by any2stringadd
  8. by StringFormat
  9. by Ensuring
  10. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new PrettyType(string: String)
  2. new PrettyType(prefixString: String, safeToString: String)

Type Members

  1. class FilterMapForeach extends reflect.internal.SymbolTable.FilterTypeCollector
    Definition Classes
    Type

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 PrettyType to any2stringadd[PrettyType] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  4. def ->[B](y: B): (PrettyType, B)
    Implicit
    This member is added by an implicit conversion from PrettyType to ArrowAssoc[PrettyType] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  5. def <:<(that: ScalafixGlobal.Type): Boolean
    Definition Classes
    Type → TypeApi
  6. def =:=(that: ScalafixGlobal.Type): Boolean
    Definition Classes
    Type → TypeApi
  7. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  8. def addThrowsAnnotation(throwableSym: ScalafixGlobal.Symbol): ScalafixGlobal.Type
    Definition Classes
    Annotatable
  9. def annotations: List[ScalafixGlobal.AnnotationInfo]
    Definition Classes
    Type → Annotatable
  10. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  11. def asSeenFrom(pre: ScalafixGlobal.Type, clazz: ScalafixGlobal.Symbol): ScalafixGlobal.Type
    Definition Classes
    Type → TypeApi
  12. def atOwner(owner: ScalafixGlobal.Symbol): ScalafixGlobal.Type
    Definition Classes
    Type
  13. def baseClasses: List[ScalafixGlobal.Symbol]
    Definition Classes
    Type → TypeApi
  14. def baseType(clazz: ScalafixGlobal.Symbol): ScalafixGlobal.Type
    Definition Classes
    Type → TypeApi
  15. def baseTypeIndex(sym: ScalafixGlobal.Symbol): Int
    Definition Classes
    Type
  16. def baseTypeSeq: ScalafixGlobal.BaseTypeSeq
    Definition Classes
    Type
  17. def baseTypeSeqDepth: Depth
    Definition Classes
    Type
  18. def betaReduce: ScalafixGlobal.Type
    Definition Classes
    Type
  19. def bounds: ScalafixGlobal.TypeBounds
    Definition Classes
    Type
  20. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  21. def cloneInfo(owner: ScalafixGlobal.Symbol): ScalafixGlobal.Type
    Definition Classes
    Type
  22. def collect[T](pf: PartialFunction[ScalafixGlobal.Type, T]): List[T]
    Definition Classes
    Type
  23. def companion: ScalafixGlobal.Type
    Definition Classes
    TypeApiImpl → TypeApi
  24. def complete(sym: ScalafixGlobal.Symbol): Unit
    Definition Classes
    Type
  25. def computeMemberType(sym: ScalafixGlobal.Symbol): ScalafixGlobal.Type
    Definition Classes
    Type
  26. def contains(sym: ScalafixGlobal.Symbol): Boolean
    Definition Classes
    Type → TypeApi
  27. def dealias: ScalafixGlobal.Type
    Definition Classes
    Type → TypeApi
  28. def dealiasWiden: ScalafixGlobal.Type
    Definition Classes
    Type
  29. def dealiasWidenChain: List[ScalafixGlobal.Type]
    Definition Classes
    Type
  30. def decl(name: ScalafixGlobal.Name): ScalafixGlobal.Symbol
    Definition Classes
    Type → TypeApi
  31. def declaration(name: ScalafixGlobal.Name): ScalafixGlobal.Symbol
    Definition Classes
    TypeApiImpl → TypeApi
  32. def declarations: ScalafixGlobal.Scope
    Definition Classes
    TypeApiImpl → TypeApi
  33. def decls: ScalafixGlobal.Scope
    Definition Classes
    Type → TypeApi
  34. def deconst: ScalafixGlobal.Type
    Definition Classes
    Type
  35. def deferredMembers: ScalafixGlobal.Scope
    Definition Classes
    Type
  36. def directObjectString: String
    Definition Classes
    Type
  37. def dummyArgs: List[ScalafixGlobal.Type]
    Attributes
    protected
    Definition Classes
    Type
  38. def ensuring(cond: (PrettyType) ⇒ Boolean, msg: ⇒ Any): PrettyType
    Implicit
    This member is added by an implicit conversion from PrettyType to Ensuring[PrettyType] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  39. def ensuring(cond: (PrettyType) ⇒ Boolean): PrettyType
    Implicit
    This member is added by an implicit conversion from PrettyType to Ensuring[PrettyType] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  40. def ensuring(cond: Boolean, msg: ⇒ Any): PrettyType
    Implicit
    This member is added by an implicit conversion from PrettyType to Ensuring[PrettyType] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  41. def ensuring(cond: Boolean): PrettyType
    Implicit
    This member is added by an implicit conversion from PrettyType to Ensuring[PrettyType] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  42. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  43. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  44. def erasure: ScalafixGlobal.Type
    Definition Classes
    TypeApiImpl → TypeApi
  45. def etaExpand: ScalafixGlobal.Type
    Definition Classes
    Type → TypeApi
  46. def exists(p: (ScalafixGlobal.Type) ⇒ Boolean): Boolean
    Definition Classes
    Type → TypeApi
  47. def filterAnnotations(p: (ScalafixGlobal.AnnotationInfo) ⇒ Boolean): ScalafixGlobal.Type
    Definition Classes
    Type → Annotatable
  48. final def finalResultType: ScalafixGlobal.Type
    Definition Classes
    Type → TypeApi
  49. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  50. def find(p: (ScalafixGlobal.Type) ⇒ Boolean): Option[ScalafixGlobal.Type]
    Definition Classes
    Type → TypeApi
  51. def findMember(name: ScalafixGlobal.Name, excludedFlags: Long, requiredFlags: Long, stableOnly: Boolean): ScalafixGlobal.Symbol
    Definition Classes
    Type
  52. def findMembers(excludedFlags: Long, requiredFlags: Long): ScalafixGlobal.Scope
    Definition Classes
    Type
  53. def firstParent: ScalafixGlobal.Type
    Definition Classes
    Type
  54. def forceDirectSuperclasses: Unit
    Definition Classes
    Type
  55. def foreach(f: (ScalafixGlobal.Type) ⇒ Unit): Unit
    Definition Classes
    Type → TypeApi
  56. def formatted(fmtstr: String): String
    Implicit
    This member is added by an implicit conversion from PrettyType to StringFormat[PrettyType] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  57. def getAnnotation(cls: ScalafixGlobal.Symbol): Option[ScalafixGlobal.AnnotationInfo]
    Definition Classes
    Annotatable
  58. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  59. def hasAnnotation(cls: ScalafixGlobal.Symbol): Boolean
    Definition Classes
    Annotatable
  60. def hasNonPrivateMember(name: ScalafixGlobal.Name): Boolean
    Definition Classes
    Type
  61. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  62. def implicitMembers: ScalafixGlobal.Scope
    Definition Classes
    Type
  63. def instantiateTypeParams(formals: List[ScalafixGlobal.Symbol], actuals: List[ScalafixGlobal.Type]): ScalafixGlobal.Type
    Definition Classes
    Type
  64. def is[U](implicit classifier: Classifier[PrettyType, U]): Boolean
    Implicit
    This member is added by an implicit conversion from PrettyType to meta.XtensionClassifiable[PrettyType] performed by method XtensionClassifiable in scala.meta.classifiers.Api. This conversion will take place only if an implicit value of type Classifiable[PrettyType] is in scope.
    Definition Classes
    XtensionClassifiable
  65. def isComplete: Boolean
    Definition Classes
    Type
  66. def isDependentMethodType: Boolean
    Definition Classes
    Type
  67. def isErroneous: Boolean
    Definition Classes
    Type
  68. def isError: Boolean
    Definition Classes
    Type
  69. def isFinalType: Boolean
    Definition Classes
    Type
  70. def isGround: Boolean
    Definition Classes
    Type
  71. def isHigherKinded: Boolean
    Definition Classes
    Type
  72. def isImmediatelyDependent: Boolean
    Definition Classes
    Type
  73. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  74. def isNot[U](implicit classifier: Classifier[PrettyType, U]): Boolean
    Implicit
    This member is added by an implicit conversion from PrettyType to meta.XtensionClassifiable[PrettyType] performed by method XtensionClassifiable in scala.meta.classifiers.Api. This conversion will take place only if an implicit value of type Classifiable[PrettyType] is in scope.
    Definition Classes
    XtensionClassifiable
  75. def isShowAsInfixType: Boolean
    Definition Classes
    Type
  76. def isSpliceable: Boolean
    Definition Classes
    TypeApiImpl
  77. final def isStable: Boolean
    Definition Classes
    Type
  78. def isStructuralRefinement: Boolean
    Definition Classes
    Type
  79. def isTrivial: Boolean
    Definition Classes
    Type
  80. final def isVolatile: Boolean
    Definition Classes
    Type
  81. def isWildcard: Boolean
    Definition Classes
    Type
  82. def kind: String
    Definition Classes
    Type
  83. def load(sym: ScalafixGlobal.Symbol): Unit
    Definition Classes
    Type
  84. def looselyMatches(that: ScalafixGlobal.Type): Boolean
    Definition Classes
    Type
  85. def lowerBound: ScalafixGlobal.Type
    Definition Classes
    Type
  86. def map(f: (ScalafixGlobal.Type) ⇒ ScalafixGlobal.Type): ScalafixGlobal.Type
    Definition Classes
    Type → TypeApi
  87. def matches(that: ScalafixGlobal.Type): Boolean
    Definition Classes
    Type
  88. def matchesPattern(that: ScalafixGlobal.Type): Boolean
    Definition Classes
    Type
  89. def member(name: ScalafixGlobal.Name): ScalafixGlobal.Symbol
    Definition Classes
    Type → TypeApi
  90. def memberBasedOnName(name: ScalafixGlobal.Name, excludedFlags: Long): ScalafixGlobal.Symbol
    Definition Classes
    Type
  91. def memberInfo(sym: ScalafixGlobal.Symbol): ScalafixGlobal.Type
    Definition Classes
    Type
  92. def memberType(sym: ScalafixGlobal.Symbol): ScalafixGlobal.Type
    Definition Classes
    Type
  93. def members: ScalafixGlobal.Scope
    Definition Classes
    Type → TypeApi
  94. def membersBasedOnFlags(excludedFlags: Long, requiredFlags: Long): ScalafixGlobal.Scope
    Definition Classes
    Type
  95. def nameAndArgsString: String
    Definition Classes
    Type
  96. def narrow: ScalafixGlobal.Type
    Definition Classes
    Type
  97. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  98. def nonLocalMember(name: ScalafixGlobal.Name): ScalafixGlobal.Symbol
    Definition Classes
    Type
  99. def nonPrivateDecl(name: ScalafixGlobal.Name): ScalafixGlobal.Symbol
    Definition Classes
    Type
  100. def nonPrivateDecls: List[ScalafixGlobal.Symbol]
    Definition Classes
    Type
  101. def nonPrivateMember(name: ScalafixGlobal.Name): ScalafixGlobal.Symbol
    Definition Classes
    Type
  102. def nonPrivateMemberAdmitting(name: ScalafixGlobal.Name, admit: Long): ScalafixGlobal.Symbol
    Definition Classes
    Type
  103. def nonPrivateMembers: ScalafixGlobal.Scope
    Definition Classes
    Type
  104. def nonPrivateMembersAdmitting(admit: Long): ScalafixGlobal.Scope
    Definition Classes
    Type
  105. def normalize: ScalafixGlobal.Type
    Definition Classes
    Type → TypeApi
  106. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  107. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  108. def objectPrefix: String
    Attributes
    protected
    Definition Classes
    Type
  109. final def orElse(alt: ⇒ ScalafixGlobal.Type): ScalafixGlobal.Type
    Definition Classes
    Type → TypeApi
    Annotations
    @inline()
  110. def packageObject: ScalafixGlobal.Symbol
    Definition Classes
    Type
  111. def packagePrefix: String
    Attributes
    protected
    Definition Classes
    Type
  112. def paramLists: List[List[ScalafixGlobal.Symbol]]
    Definition Classes
    TypeApiImpl → TypeApi
  113. def paramSectionCount: Int
    Definition Classes
    Type
  114. def paramTypes: List[ScalafixGlobal.Type]
    Definition Classes
    Type
  115. def params: List[ScalafixGlobal.Symbol]
    Definition Classes
    Type
  116. def paramss: List[List[ScalafixGlobal.Symbol]]
    Definition Classes
    Type → TypeApi
  117. def parents: List[ScalafixGlobal.Type]
    Definition Classes
    Type
  118. def parse[U](implicit convert: Convert[PrettyType, inputs.Input], parse: Parse[U], dialect: Dialect): parsers.Parsed[U]
    Implicit
    This member is added by an implicit conversion from PrettyType to meta.XtensionParseInputLike[PrettyType] performed by method XtensionParseInputLike in scala.meta.parsers.Api.
    Definition Classes
    XtensionParseInputLike
  119. def prefix: ScalafixGlobal.Type
    Definition Classes
    Type
  120. def prefixChain: List[ScalafixGlobal.Type]
    Definition Classes
    Type
  121. val prefixString: String
    Definition Classes
    PrettyType → Type
  122. def removeAnnotation(cls: ScalafixGlobal.Symbol): ScalafixGlobal.Type
    Definition Classes
    Annotatable
  123. def resultApprox: ScalafixGlobal.Type
    Definition Classes
    Type
  124. def resultType(actuals: List[ScalafixGlobal.Type]): ScalafixGlobal.Type
    Definition Classes
    Type
  125. def resultType: ScalafixGlobal.Type
    Definition Classes
    Type → TypeApi
  126. val safeToString: String
    Definition Classes
    PrettyType → Type
  127. def setAnnotations(annots: List[ScalafixGlobal.AnnotationInfo]): ScalafixGlobal.Type
    Definition Classes
    Type → Annotatable
  128. def show[Style[X] <: Show[X]](implicit style: Style[PrettyType]): String
    Implicit
    This member is added by an implicit conversion from PrettyType to meta.XtensionShow[PrettyType] performed by method XtensionShow in scala.meta.prettyprinters.Api.
    Definition Classes
    XtensionShow
  129. def skolemizeExistential: ScalafixGlobal.Type
    Definition Classes
    Type
  130. def skolemizeExistential(owner: ScalafixGlobal.Symbol, origin: AnyRef): ScalafixGlobal.Type
    Definition Classes
    Type
  131. def skolemsExceptMethodTypeParams: List[ScalafixGlobal.Symbol]
    Definition Classes
    Type
  132. def stat_<:<(that: ScalafixGlobal.Type): Boolean
    Definition Classes
    Type
  133. def staticAnnotations: collection.immutable.List[ScalafixGlobal.AnnotationInfo]
    Definition Classes
    Annotatable
  134. def structure: String
    Implicit
    This member is added by an implicit conversion from PrettyType to meta.XtensionStructure[PrettyType] performed by method XtensionStructure in scala.meta.prettyprinters.Api. This conversion will take place only if an implicit value of type prettyprinters.Structure[PrettyType] is in scope.
    Definition Classes
    XtensionStructure
  135. def subst(from: List[ScalafixGlobal.Symbol], to: List[ScalafixGlobal.Type]): ScalafixGlobal.Type
    Definition Classes
    Type
  136. def substSym(from: List[ScalafixGlobal.Symbol], to: List[ScalafixGlobal.Symbol]): ScalafixGlobal.Type
    Definition Classes
    Type
  137. def substThis(from: ScalafixGlobal.Symbol, to: ScalafixGlobal.Symbol): ScalafixGlobal.Type
    Definition Classes
    Type
  138. def substThis(from: ScalafixGlobal.Symbol, to: ScalafixGlobal.Type): ScalafixGlobal.Type
    Definition Classes
    Type
  139. def substThisAndSym(from: ScalafixGlobal.Symbol, to: ScalafixGlobal.Type, symsFrom: List[ScalafixGlobal.Symbol], symsTo: List[ScalafixGlobal.Symbol]): ScalafixGlobal.Type
    Definition Classes
    Type
  140. def substituteSymbols(from: List[ScalafixGlobal.Symbol], to: List[ScalafixGlobal.Symbol]): ScalafixGlobal.Type
    Definition Classes
    TypeApiImpl → TypeApi
  141. def substituteTypes(from: List[ScalafixGlobal.Symbol], to: List[ScalafixGlobal.Type]): ScalafixGlobal.Type
    Definition Classes
    TypeApiImpl → TypeApi
  142. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  143. def syntax: String
    Implicit
    This member is added by an implicit conversion from PrettyType to meta.XtensionSyntax[PrettyType] performed by method XtensionSyntax in scala.meta.prettyprinters.Api. This conversion will take place only if an implicit value of type prettyprinters.Syntax[PrettyType] is in scope.
    Definition Classes
    XtensionSyntax
  144. def takesTypeArgs: Boolean
    Definition Classes
    Type → TypeApi
  145. def termSymbol: ScalafixGlobal.Symbol
    Definition Classes
    Type → TypeApi
  146. def termSymbolDirect: ScalafixGlobal.Symbol
    Definition Classes
    Type
  147. def toLongString: String
    Definition Classes
    Type
  148. final def toString(): String
    Definition Classes
    Type → AnyRef → Any
  149. def tokenize(implicit convert: Convert[PrettyType, inputs.Input], tokenize: Tokenize, dialect: Dialect): tokenizers.Tokenized
    Implicit
    This member is added by an implicit conversion from PrettyType to meta.XtensionTokenizeInputLike[PrettyType] performed by method XtensionTokenizeInputLike in scala.meta.tokenizers.Api.
    Definition Classes
    XtensionTokenizeInputLike
  150. def trimPrefix(str: String): String
    Definition Classes
    Type
  151. def typeArgs: List[ScalafixGlobal.Type]
    Definition Classes
    Type → TypeApi
  152. def typeArguments: List[ScalafixGlobal.Type]
    Definition Classes
    TypeApiImpl
  153. def typeConstructor: ScalafixGlobal.Type
    Definition Classes
    Type → TypeApi
  154. def typeOfThis: ScalafixGlobal.Type
    Definition Classes
    Type
  155. def typeParams: List[ScalafixGlobal.Symbol]
    Definition Classes
    Type → TypeApi
  156. def typeSymbol: ScalafixGlobal.Symbol
    Definition Classes
    Type → TypeApi
  157. def typeSymbolDirect: ScalafixGlobal.Symbol
    Definition Classes
    Type
  158. def underlying: ScalafixGlobal.Type
    Definition Classes
    Type
  159. def upperBound: ScalafixGlobal.Type
    Definition Classes
    Type
  160. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  161. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  162. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  163. def weak_<:<(that: ScalafixGlobal.Type): Boolean
    Definition Classes
    Type → TypeApi
  164. def widen: ScalafixGlobal.Type
    Definition Classes
    Type → TypeApi
  165. final def withAnnotation(annot: ScalafixGlobal.AnnotationInfo): ScalafixGlobal.Type
    Definition Classes
    Annotatable
  166. def withAnnotations(annots: List[ScalafixGlobal.AnnotationInfo]): ScalafixGlobal.Type
    Definition Classes
    Type → Annotatable
  167. def withFilter(p: (ScalafixGlobal.Type) ⇒ Boolean): FilterMapForeach
    Definition Classes
    Type
  168. def withoutAnnotations: ScalafixGlobal.Type
    Definition Classes
    Type → Annotatable
  169. def [B](y: B): (PrettyType, B)
    Implicit
    This member is added by an implicit conversion from PrettyType to ArrowAssoc[PrettyType] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc

Deprecated Value Members

  1. def boundSyms: Set[ScalafixGlobal.Symbol]
    Definition Classes
    Type
    Annotations
    @deprecated
    Deprecated

    (Since version 2.12.3) No longer used in the compiler implementation

Inherited from ScalafixGlobal.Type

Inherited from ScalafixGlobal.TypeApi

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion XtensionSyntax from PrettyType to meta.XtensionSyntax[PrettyType]

Inherited by implicit conversion XtensionClassifiable from PrettyType to meta.XtensionClassifiable[PrettyType]

Inherited by implicit conversion XtensionTokenizeInputLike from PrettyType to meta.XtensionTokenizeInputLike[PrettyType]

Inherited by implicit conversion XtensionStructure from PrettyType to meta.XtensionStructure[PrettyType]

Inherited by implicit conversion XtensionShow from PrettyType to meta.XtensionShow[PrettyType]

Inherited by implicit conversion XtensionParseInputLike from PrettyType to meta.XtensionParseInputLike[PrettyType]

Inherited by implicit conversion any2stringadd from PrettyType to any2stringadd[PrettyType]

Inherited by implicit conversion StringFormat from PrettyType to StringFormat[PrettyType]

Inherited by implicit conversion Ensuring from PrettyType to Ensuring[PrettyType]

Inherited by implicit conversion ArrowAssoc from PrettyType to ArrowAssoc[PrettyType]

Ungrouped