object ClassToAPI
- Alphabetic
- By Inheritance
- ClassToAPI
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
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
- val ArrayRef: Type
- val Empty: EmptyType
- val NothingRef: Type
- val Private: Private
- val Protected: Protected
- val Public: Public
- val ThisRef: This
- val Throws: Type
- val Unqualified: Unqualified
- def access(i: Int, pkg: Option[String]): Access
- def annotated(t: Type, annots: Array[Annotation]): Type
- def annotation(a: Annotation): Annotation
- def annotations(a: Array[Annotation]): Array[Annotation]
- def apply(c: Seq[Class[_]]): Seq[ClassLike]
- def array(tpe: Type): Type
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
- def classCanonicalName(c: Class[_]): String
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
- def constructorToDef(enclPkg: Option[String])(c: Constructor[_]): Def
- def defLike[T <: GenericDeclaration](name: String, mods: Int, annots: Array[Annotation], tps: Array[TypeVariable[T]], paramAnnots: Array[Array[Annotation]], paramTypes: Array[Type], retType: Option[Type], exceptions: Array[Type], varArgs: Boolean, enclPkg: Option[String]): Def
- def emptyClassMap: ClassMap
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def exceptionAnnotations(exceptions: Array[Type]): Array[Annotation]
- def fieldToDef(c: Class[_], cf: ⇒ ClassFile, enclPkg: Option[String])(f: Field): FieldLike
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
handleMalformedNameOf(c: Class[_], isRecursive: Boolean = false): String
The binary name encoding for Scala has been broken for a while.
The binary name encoding for Scala has been broken for a while. It does not follow the Java source name rules because it does not append a
$after the mirror class of an object, which already ends in$.Zinc works around this fix in the only way it can: it gets the enclosing class, which is obtained from the
InnerClassesjava classfile metadata, and it reconstructs the path from there. It circumvents, by design, the core issue: it doesn't call Java's name parser at all.This issue has been fixed in the JDK9, but unfortunately it's going to be tormenting us for a while because 2.13 does not target Java 9, and we're still at 2.12.x.
In order to fully fix this issue, the Scala compiler should do the desired behaviour in 2.13.x. 2.12.x is already lost since this fix is binary incompatible. The appropriate issue is here: https://github.com/scala/bug/issues/2034.
- returns
The canonical name if not null, the blank string otherwise.
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def isStatic(a: Member): Boolean
- def isStatic(c: Class[_]): Boolean
- def isTopLevel(c: Class[_]): Boolean
- def javaAnnotation(s: String): AnnotationArgument
-
final
def
lzy[T <: AnyRef](t: ⇒ T): Lazy[T]
- Annotations
- @inline()
- def merge[T](of: Class[_], self: Seq[T], public: Seq[T], f: (T) ⇒ Seq[ClassDefinition], splitStatic: (Seq[T]) ⇒ (Seq[T], Seq[T]), isInherited: (T) ⇒ Boolean): Defs
- def mergeMap[T <: Member](of: Class[_], self: Seq[T], public: Seq[T], f: (T) ⇒ ClassDefinition): Defs
- def methodToDef(enclPkg: Option[String])(m: Method): Def
- def modifiers(i: Int): Modifiers
- def name(gd: GenericDeclaration): String
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def packageAndName(name: String): (Option[String], String)
- def packageAndName(c: Class[_]): (Option[String], String)
- def packageName(c: Class[_]): Option[String]
- def packagePrivate(pkg: Option[String]): Access
- def packages(c: Seq[Class[_]]): Set[String]
- def parameter(annots: Array[Annotation], parameter: Type, varArgs: Boolean): MethodParameter
- def pathFromString(s: String): Path
- def pathFromStrings(ss: Seq[String]): Path
- def primitive(name: String): Type
- def process(classes: Seq[Class[_]]): (Seq[ClassLike], Seq[String], Set[(Class[_], Class[_])])
- def reduceHash(in: Array[Byte]): Int
- def reference(t: Type): Type
- def reference(s: String): Type
- def reference(c: Class[_]): Type
- def referenceP(t: ParameterizedType): Parameterized
- def splitStatic[T <: Member](defs: Seq[T]): (Seq[T], Seq[T])
-
def
structure(c: Class[_], enclPkg: Option[String], cmap: ClassMap): (Structure, Structure)
Returns the (static structure, instance structure, inherited classes) for
c. -
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
- def toDefinitions(cmap: ClassMap)(c: Class[_]): Seq[ClassLikeDef]
- def toDefinitions0(c: Class[_], cmap: ClassMap): Seq[ClassLikeDef]
-
def
toString(): String
- Definition Classes
- AnyRef → Any
- def typeParameter[T <: GenericDeclaration](tp: TypeVariable[T]): TypeParameter
- def typeParameters[T <: GenericDeclaration](tps: Array[TypeVariable[T]]): Array[TypeParameter]
- def typeVariable[T <: GenericDeclaration](tv: TypeVariable[T]): String
- def types(ts: Seq[Type]): Array[Type]
- def upperBounds(ts: Array[Type]): Type
-
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
- @native() @throws( ... )