class Scan extends PickleBuffer
- Alphabetic
- By Inheritance
- Scan
- PickleBuffer
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new Scan(_bytes: Array[Byte], offset: Int, classRoot: SymbolTable.ClassSymbol, moduleRoot: SymbolTable.ModuleSymbol, filename: String)
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
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
at[T <: AnyRef](i: Int, op: () ⇒ T): T
If entry at
i
is undefined, define it by performing operationop
withreadIndex
at start of i'th entry.If entry at
i
is undefined, define it by performing operationop
withreadIndex
at start of i'th entry. RestorereadIndex
afterwards.- Attributes
- protected
-
var
bytes: Array[Byte]
- Definition Classes
- PickleBuffer
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
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
-
def
debug: Boolean
- Attributes
- protected
-
def
ensureCapacity(capacity: Int): Unit
- Definition Classes
- PickleBuffer
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
errorBadSignature(msg: String): Nothing
- Attributes
- protected
-
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
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def inferMethodAlternative(fun: SymbolTable.Tree, argtpes: List[SymbolTable.Type], restpe: SymbolTable.Type): Unit
-
def
isChildrenEntry(i: Int): Boolean
Does the entry represent children of a symbol?
Does the entry represent children of a symbol?
- Attributes
- protected
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
isNameEntry(i: Int): Boolean
Does entry represent a name?
Does entry represent a name?
- Attributes
- protected
-
def
isRefinementSymbolEntry(i: Int): 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
-
def
isSymbolAnnotationEntry(i: Int): Boolean
Does entry represent a symbol annotation?
Does entry represent a symbol annotation?
- Attributes
- protected
-
def
isSymbolEntry(i: Int): Boolean
Does entry represent an (internal) symbol
Does entry represent an (internal) symbol
- Attributes
- protected
-
def
isSymbolRef(i: Int): Boolean
Does entry represent an (internal or external) symbol
Does entry represent an (internal or external) symbol
- Attributes
- protected
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def newLazyTypeRef(i: Int): SymbolTable.LazyType
- def newLazyTypeRefAndAlias(i: Int, j: Int): SymbolTable.LazyType
- def noSuchConstantTag(tag: Int, len: Int): SymbolTable.Constant
- def noSuchTreeTag(tag: Int, end: Int): Nothing
- def noSuchTypeTag(tag: Int, end: Int): SymbolTable.Type
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
def
patchNat(pos: Int, x: Int): Unit
Write a natural number
x
at positionpos
.Write a natural number
x
at positionpos
. If number is more than one byte, shift rest of array to make space.- Definition Classes
- PickleBuffer
-
def
readAnnotArg(i: Int): SymbolTable.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
-
def
readAnnotation(): SymbolTable.AnnotationInfo
Read an annotation and return it.
Read an annotation and return it. Used when unpickling an ANNOTATED(WSELF)tpe or a NestedAnnotArg
- Attributes
- protected
-
def
readAnnotationInfo(end: Int): SymbolTable.AnnotationInfo
Read an AnnotationInfo.
Read an AnnotationInfo. Not to be called directly, use readAnnotation or readSymbolAnnotation
- Attributes
- protected
-
def
readAnnotationRef(): SymbolTable.AnnotationInfo
- Attributes
- protected
-
def
readByte(): Int
Read a byte
Read a byte
- Definition Classes
- PickleBuffer
-
def
readCaseDefRef(): SymbolTable.CaseDef
- Attributes
- protected
-
def
readChildren(): Unit
Read children and store them into the corresponding symbol.
Read children and store them into the corresponding symbol.
- Attributes
- protected
-
def
readClassfileAnnotArg(i: Int): SymbolTable.ClassfileAnnotArg
- Attributes
- protected
-
def
readConstant(): SymbolTable.Constant
Read a constant
Read a constant
- Attributes
- protected
-
def
readConstantRef(): SymbolTable.Constant
- Attributes
- protected
-
def
readIdentRef(): SymbolTable.Ident
- Attributes
- protected
-
var
readIndex: Int
- Definition Classes
- PickleBuffer
-
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
-
def
readLongNat(): Long
- Definition Classes
- PickleBuffer
-
def
readMemberDefRef(): SymbolTable.MemberDef
- Attributes
- protected
- def readModifiers(): SymbolTable.Modifiers
-
def
readModifiersRef(): SymbolTable.Modifiers
- Attributes
- protected
-
def
readName(): SymbolTable.Name
Read a name
Read a name
- Attributes
- protected
-
def
readNameRef(): SymbolTable.Name
- Attributes
- protected
-
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
-
def
readSymbol(): SymbolTable.Symbol
Read a symbol
Read a symbol
- Attributes
- protected
-
def
readSymbolAnnotation(): 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
-
def
readSymbolRef(): SymbolTable.Symbol
- Attributes
- protected
-
def
readTemplateRef(): SymbolTable.Template
- Attributes
- protected
-
def
readTree(): SymbolTable.Tree
- Attributes
- protected
-
def
readTreeRef(): SymbolTable.Tree
- Attributes
- protected
-
def
readType(forceProperType: Boolean = false): SymbolTable.Type
- Attributes
- protected
-
def
readTypeDefRef(): SymbolTable.TypeDef
- Attributes
- protected
-
def
readTypeNameRef(): SymbolTable.TypeName
- Attributes
- protected
-
def
readTypeRef(): SymbolTable.Type
- Attributes
- protected
-
def
readValDefRef(): SymbolTable.ValDef
- Attributes
- protected
- def run(): Unit
-
def
symScope(sym: SymbolTable.Symbol): SymbolTable.Scope
The
decls
scope associated with given symbolThe
decls
scope associated with given symbol- Attributes
- protected
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
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
-
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
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
def
toTypeError(e: MissingRequirementError): SymbolTable.TypeError
Convert to a type error, that is printed gracefully instead of crashing.
Convert to a type error, that is printed gracefully instead of crashing.
Similar in intent to what SymbolLoader does (but here we don't have access to error reporting, so we rely on the typechecker to report the error).
-
def
until[T](end: Int, op: () ⇒ T): List[T]
Perform operation
op
until the conditionreadIndex == end
is satisfied.Perform operation
op
until the conditionreadIndex == end
is satisfied. Concatenate results into a list.- Definition Classes
- PickleBuffer
-
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( ... )
-
def
writeByte(b: Int): Unit
Write a byte of data
Write a byte of data
- Definition Classes
- PickleBuffer
-
var
writeIndex: Int
- Definition Classes
- PickleBuffer
-
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
-
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
-
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