Packages

abstract class ClassfileParser extends AnyRef

This abstract class implements a class file parser.

Source
ClassfileParser.scala
Linear Supertypes
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ClassfileParser
  2. AnyRef
  3. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new ClassfileParser(reader: ReusableInstance[ReusableDataReader])

Type Members

  1. case class InnerClassEntry(external: NameOrString, outer: NameOrString, name: NameOrString, jflags: JavaAccFlags) extends Product with Serializable

    An entry in the InnerClasses attribute of this class file.

  2. class LazyAliasType extends (symbolTable)#LazyType with (symbolTable)#FlagAgnosticCompleter
  3. class TypeParamsType extends (symbolTable)#LazyType with (symbolTable)#FlagAgnosticCompleter

Abstract Value Members

  1. abstract def classPath: ClassPath

    The compiler classpath.

  2. abstract val loaders: SymbolLoaders { val symbolTable: ClassfileParser.this.symbolTable.type }
  3. abstract val symbolTable: SymbolTable { def settings: scala.tools.nsc.Settings }

Concrete Value Members

  1. def addEnclosingTParams(clazz: (symbolTable)#Symbol): Unit

    Add type parameters of enclosing classes

  2. def addJavaFlagsAnnotations(sym: (symbolTable)#Symbol, flags: JavaAccFlags): Unit

    Apply @native/@transient/@volatile annotations to sym, if the corresponding flag is set in flags.

  3. def classNameToSymbol(name: String): (symbolTable)#Symbol

    Return the class symbol of the given name.

  4. def getClassSymbol(name: String): (symbolTable)#Symbol
  5. def parse(file: AbstractFile, clazz: (symbolTable)#ClassSymbol, module: (symbolTable)#ModuleSymbol): Unit

    clazz and module are the class and module symbols corresponding to the classfile being parsed.

    clazz and module are the class and module symbols corresponding to the classfile being parsed. Note that the ClassfileLoader unconditionally creates both of these symbols, they may may get invalidated later on (.exists).

    Note that using companionModule / companionClass does not always work to navigate between those two symbols, namely when they are shadowed by a type / value in the a package object (scala-dev#248).

  6. def parseAnnotArg(): Option[(symbolTable)#ClassfileAnnotArg]
  7. def parseAnnotation(attrNameIndex: Int): Option[(symbolTable)#AnnotationInfo]

    Parse and return a single annotation.

    Parse and return a single annotation. If it is malformed, return None.

  8. def parseClass(): Unit
  9. def parseField(): Unit
  10. def parseMethod(): Unit
  11. def skipAttributes(): Unit
  12. def skipMembers(): Unit
  13. def skipSuperclasses(): Unit
  14. def srcfile: Option[AbstractFile]
  15. def stubClassSymbol(name: (symbolTable)#Name): (symbolTable)#Symbol
  16. def unpickleOrParseInnerClasses(): Unit

    Either

    Either

    • set isScala and invoke the unpickler, or
    • set isScalaRaw, or
    • parse inner classes (for Java classfiles)

    Expects in.bp to point to the access_flags entry, restores the old bp.

  17. object TastyUniverse extends TastyUniverse
  18. object innerClasses

    Return the class symbol for the given name.

    Return the class symbol for the given name. It looks it up in its outer class. Forces all outer class symbols to be completed.

    If the given name is not an inner class, it returns the symbol found in definitions.