class ImportSimplifyingTypeEmitter extends DefaultTypeEmitter
Simplifies the names of all imported types and packages.
Simplifies "java.lang._", "scala._", "scala.Predef._" and the current compilation unit's package by default, since Scala imports these namespaces by default.
- Alphabetic
- By Inheritance
- ImportSimplifyingTypeEmitter
- DefaultTypeEmitter
- TypeEmitter
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new ImportSimplifyingTypeEmitter()
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
apply(ref: TypeReference)(implicit context: CompilationUnit): String
Turns a type reference into a raw type string.
Turns a type reference into a raw type string. The context can be used to make additional decisions based on the
- Definition Classes
- DefaultTypeEmitter → TypeEmitter
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
classes(implicit context: CompilationUnit): Set[String]
- Attributes
- protected
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate() @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
def
simplifyOwnerName(ownerName: OwnerName)(implicit context: CompilationUnit): Option[OwnerName]
- returns
The shortest version of the owner name possible based on imported packages.
- Attributes
- protected
-
def
stringifyFullName(ownerName: Option[OwnerName], typeName: String)(implicit context: CompilationUnit): String
Stringifies the full name of the current type.
Stringifies the full name of the current type.
Override this definition if you need to change how the T part of a raw type T[A, B, ...] is stringified.
- Definition Classes
- ImportSimplifyingTypeEmitter → DefaultTypeEmitter
-
def
stringifyTypeArguments(typeArguments: Seq[TypeReference])(implicit context: CompilationUnit): Seq[String]
Stringifies each type argument of the current type.
Stringifies each type argument of the current type.
Override this definition if you need to change how the A, B, ... parts of a raw type T[A, B, ...] are stringified.
- typeArguments
Most of the time, the sequence is empty for types without type arguments, so don't assume the sequence has elements!
- Attributes
- protected
- Definition Classes
- DefaultTypeEmitter
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
def
wildcards(implicit context: CompilationUnit): Set[String]
- Attributes
- protected