dotty.tools.dotc.core.unpickleScala2

Scala2Unpickler

Related Docs: object Scala2Unpickler | package unpickleScala2

class Scala2Unpickler extends PickleBuffer with Embedded

Unpickle symbol table information descending from a class and/or module root from an array of bytes.

Linear Supertypes
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Scala2Unpickler
  2. Embedded
  3. PickleBuffer
  4. AnyRef
  5. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Scala2Unpickler(bytes: Array[Byte], classRoot: ClassDenotation, moduleClassRoot: ClassDenotation)(ictx: Context)

    bytes

    bytearray from which we unpickle

Type Members

  1. class ClassUnpickler extends LocalUnpickler with TypeParamsCompleter

  2. class LocalUnpickler extends LazyType

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 at[T <: AnyRef](i: Int, op: () ⇒ T): T

    If entry at i is undefined, define it by performing operation op with readIndex at start of i'th entry. Restore readIndex afterwards.

    If entry at i is undefined, define it by performing operation op with readIndex at start of i'th entry. Restore readIndex afterwards.

    Attributes
    protected
  6. def atReadPos[T](start: Int, op: () ⇒ T): T

    Attributes
    protected
  7. var bytes: Array[Byte]

    Definition Classes
    PickleBuffer
  8. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  9. def createIndex: Array[Int]

    Pickle = majorVersion_Nat minorVersion_Nat nbEntries_Nat {Entry} Entry = type_Nat length_Nat [actual entries]

    Pickle = majorVersion_Nat minorVersion_Nat nbEntries_Nat {Entry} Entry = type_Nat length_Nat [actual entries]

    Assumes that the ..Version_Nat are already consumed.

    returns

    an array mapping entry numbers to locations in the byte array where the entries start.

    Definition Classes
    PickleBuffer
  10. def deferredAnnot(end: Int)(implicit ctx: Context): Annotation

    A deferred annotation that can be completed by reading the bytes between readIndex and end.

    A deferred annotation that can be completed by reading the bytes between readIndex and end.

    Attributes
    protected
  11. def elimExistentials(boundSyms: List[Symbol], tp: Type)(implicit ctx: Context): Type

    Convert tp { type name = sym } forSome { sym >: L <: H } to tp { name >: L <: H } and tp { name: sym } forSome { sym <: T with Singleton } to tp { name: T }

  12. def ensureCapacity(capacity: Int): Unit

    Definition Classes
    PickleBuffer
  13. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  14. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  15. def errorBadSignature(msg: String, original: Option[RuntimeException] = None)(implicit ctx: Context): Nothing

    Attributes
    protected
  16. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  17. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  18. def handleRuntimeException(ex: RuntimeException)(implicit ctx: Context): Nothing

    Attributes
    protected
  19. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  20. def isChildrenEntry(i: Int): Boolean

    Does the entry represent children of a symbol?

    Does the entry represent children of a symbol?

    Attributes
    protected
  21. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  22. def isLocal(sym: Symbol)(implicit ctx: Context): Boolean

    Attributes
    protected
  23. def isNameEntry(i: Int): Boolean

    Does entry represent a name?

    Does entry represent a name?

    Attributes
    protected
  24. def isRefinementClass(sym: Symbol)(implicit ctx: Context): Boolean

    Attributes
    protected
  25. def isRefinementSymbolEntry(i: Int)(implicit ctx: Context): Boolean

    Does entry represent a refinement symbol? pre: Entry is a class symbol

    Does entry represent a refinement symbol? pre: Entry is a class symbol

    Attributes
    protected
  26. def isSymbolAnnotationEntry(i: Int): Boolean

    Does entry represent a symbol annotation?

    Does entry represent a symbol annotation?

    Attributes
    protected
  27. def isSymbolEntry(i: Int)(implicit ctx: Context): Boolean

    Does entry represent an (internal) symbol

    Does entry represent an (internal) symbol

    Attributes
    protected
  28. def isSymbolRef(i: Int): Boolean

    Does entry represent an (internal or external) symbol

    Does entry represent an (internal or external) symbol

    Attributes
    protected
  29. def isUnpickleRoot(sym: Symbol)(implicit ctx: Context): Boolean

    Attributes
    protected
  30. object localMemberUnpickler extends LocalUnpickler

  31. val moduleRoot: SymDenotation

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

    Definition Classes
    AnyRef
  33. def noSuchConstantTag(tag: Int, len: Int)(implicit ctx: Context): Constant

  34. def noSuchTreeTag(tag: Int, end: Int)(implicit ctx: Context): Nothing

  35. def noSuchTypeTag(tag: Int, end: Int)(implicit ctx: Context): Type

  36. final def notify(): Unit

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

    Definition Classes
    AnyRef
  38. def patchNat(pos: Int, x: Int): Unit

    Write a natural number x at position pos.

    Write a natural number x at position pos. If number is more than one byte, shift rest of array to make space.

    pos

    ...

    x

    ...

    Definition Classes
    PickleBuffer
  39. def peekByte(): Int

    Peek at the current byte without moving the read index

    Peek at the current byte without moving the read index

    Definition Classes
    PickleBuffer
  40. def readAnnotArg(i: Int)(implicit ctx: Context): ast.tpd.Tree

    Read an annotation argument, which is pickled either as a Constant or a Tree.

    Read an annotation argument, which is pickled either as a Constant or a Tree.

    Attributes
    protected
  41. def readAnnotation()(implicit ctx: Context): Annotation

    Read an annotation and return it.

    Read an annotation and return it. Used when unpickling an ANNOTATED(WSELF)tpe or a NestedAnnotArg

    Attributes
    protected
  42. def readAnnotationContents(end: Int)(implicit ctx: Context): ast.tpd.Tree

    Read an annotation's contents.

    Read an annotation's contents. Not to be called directly, use readAnnotation, readSymbolAnnotation, or readAnnotInfoArg

    Attributes
    protected
  43. def readAnnotationRef()(implicit ctx: Context): Annotation

    Attributes
    protected
  44. def readByte(): Int

    Read a byte

    Read a byte

    Definition Classes
    PickleBuffer
  45. def readCaseDefRef()(implicit ctx: Context): ast.tpd.CaseDef

    Attributes
    protected
  46. def readChildren()(implicit ctx: Context): Unit

    Read children and store them into the corresponding symbol.

    Read children and store them into the corresponding symbol.

    Attributes
    protected
  47. def readClassfileAnnotArg(i: Int)(implicit ctx: Context): ast.tpd.Tree

    Attributes
    protected
  48. def readConstant()(implicit ctx: Context): Constant

    Read a constant

    Read a constant

    Attributes
    protected
  49. def readConstantRef()(implicit ctx: Context): Constant

    Attributes
    protected
  50. def readDisambiguatedSymbol(p: (Symbol) ⇒ Boolean)()(implicit ctx: Context): Symbol

    Read a symbol, with possible disambiguation

    Read a symbol, with possible disambiguation

    Attributes
    protected
  51. def readDisambiguatedSymbolRef(p: (Symbol) ⇒ Boolean)(implicit ctx: Context): Symbol

    Attributes
    protected
  52. def readIdentRef()(implicit ctx: Context): ast.tpd.Ident

    Attributes
    protected
  53. var readIndex: Int

    Definition Classes
    PickleBuffer
  54. def readLong(len: Int): Long

    Read a long number in signed big endian format, base 256.

    Read a long number in signed big endian format, base 256.

    Definition Classes
    PickleBuffer
  55. def readLongNat(): Long

    Definition Classes
    PickleBuffer
  56. def readModifiers(isType: Boolean)(implicit ctx: Context): Modifiers

  57. def readModifiersRef(isType: Boolean)(implicit ctx: Context): Modifiers

    Attributes
    protected
  58. def readName()(implicit ctx: Context): Name

    Read a name

    Read a name

    Attributes
    protected
  59. def readNameRef()(implicit ctx: Context): Name

    Attributes
    protected
  60. def readNat(): Int

    Read a natural number in big endian format, base 128.

    Read a natural number in big endian format, base 128. All but the last digits have bit 0x80 set.

    Definition Classes
    PickleBuffer
  61. def readSymbol()(implicit ctx: Context): Symbol

    Read a symbol

    Read a symbol

    Attributes
    protected
  62. def readSymbolAnnotation()(implicit ctx: Context): Unit

    Read an annotation and as a side effect store it into the symbol it requests.

    Read an annotation and as a side effect store it into the symbol it requests. Called at top-level, for all (symbol, annotInfo) entries.

    Attributes
    protected
  63. def readSymbolRef()(implicit ctx: Context): Symbol

    Attributes
    protected
  64. def readTemplateRef()(implicit ctx: Context): ast.tpd.Template

    Attributes
    protected
  65. def readTermName()(implicit ctx: Context): TermName

    Attributes
    protected
  66. def readTermNameRef()(implicit ctx: Context): TermName

    Attributes
    protected
  67. def readTree()(implicit ctx: Context): ast.tpd.Tree

    Attributes
    protected
  68. def readTreeRef()(implicit ctx: Context): ast.tpd.Tree

    Attributes
    protected
  69. def readType()(implicit ctx: Context): Type

    Read a type

    Read a type

    Attributes
    protected
  70. def readTypeDefRef()(implicit ctx: Context): ast.tpd.TypeDef

    Attributes
    protected
  71. def readTypeName()(implicit ctx: Context): TypeName

    Attributes
    protected
  72. def readTypeNameRef()(implicit ctx: Context): TypeName

    Attributes
    protected
  73. def readTypeParams()(implicit ctx: Context): List[Symbol]

  74. def readTypeRef()(implicit ctx: Context): Type

    Attributes
    protected
  75. def readValDefRef()(implicit ctx: Context): ast.tpd.ValDef

    Attributes
    protected
  76. def rootClassUnpickler(start: Coord, cls: Symbol, module: Symbol, infoRef: Int): ClassUnpickler with SecondCompleter

  77. def run()(implicit ctx: Context): Unit

  78. def showPickled(): Unit

  79. def source(implicit ctx: Context): AbstractFile

  80. def symScope(sym: Symbol): Scope

    The decls scope associated with given symbol

    The decls scope associated with given symbol

    Attributes
    protected
  81. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  82. def times[T](n: Int, op: () ⇒ T): List[T]

    Perform operation op the number of times specified.

    Perform operation op the number of times specified. Concatenate the results into a list.

    Definition Classes
    PickleBuffer
  83. def toIndexedSeq: IndexedSeq[(Int, Array[Byte])]

    Returns the buffer as a sequence of (Int, Array[Byte]) representing (tag, data) of the individual entries.

    Returns the buffer as a sequence of (Int, Array[Byte]) representing (tag, data) of the individual entries. Saves and restores buffer state.

    Definition Classes
    PickleBuffer
  84. def toString(): String

    Definition Classes
    AnyRef → Any
  85. def unimplementedTree(what: String)(implicit ctx: Context): Nothing

  86. def until[T](end: Int, op: () ⇒ T): List[T]

    Perform operation op until the condition readIndex == end is satisfied.

    Perform operation op until the condition readIndex == end is satisfied. Concatenate results into a list.

    end

    ...

    op

    ...

    returns

    ...

    Definition Classes
    PickleBuffer
  87. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  90. def writeByte(b: Int): Unit

    Write a byte of data

    Write a byte of data

    Definition Classes
    PickleBuffer
  91. var writeIndex: Int

    Definition Classes
    PickleBuffer
  92. def writeLong(x: Long): Unit

    Write a long number x in signed big endian format, base 256.

    Write a long number x in signed big endian format, base 256.

    x

    The long number to be written.

    Definition Classes
    PickleBuffer
  93. def writeLongNat(x: Long): Unit

    Like writeNat, but for longs.

    Like writeNat, but for longs. This is not the same as writeLong, which writes in base 256. Note that the binary representation of LongNat is identical to Nat if the long value is in the range Int.MIN_VALUE to Int.MAX_VALUE.

    Definition Classes
    PickleBuffer
  94. def writeNat(x: Int): Unit

    Write a natural number in big endian format, base 128.

    Write a natural number in big endian format, base 128. All but the last digits have bit 0x80 set.

    Definition Classes
    PickleBuffer

Inherited from Embedded

Inherited from PickleBuffer

Inherited from AnyRef

Inherited from Any

Ungrouped