final class ScalaSigBytes extends AnyRef
Helpers for encoding a Scala signature (array of bytes) into a String or, if too large, an array of Strings.
The encoding is as described in scala.reflect.internal.pickling.ByteCodecs. However, the special encoding of 0x00 as 0xC0 0x80 is not done here, as the resulting String(s) are passed as annotation argument to ASM, which will perform this step.
- Source
- BCodeHelpers.scala
- Alphabetic
- By Inheritance
- ScalaSigBytes
- AnyRef
- Any
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- All
Instance Constructors
- new ScalaSigBytes(bytes: Array[Byte])
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
def
+(other: String): String
- Implicit
- This member is added by an implicit conversion from ScalaSigBytes to any2stringadd[ScalaSigBytes] performed by method any2stringadd in scala.Predef.
- Definition Classes
- any2stringadd
-
def
->[B](y: B): (ScalaSigBytes, B)
- Implicit
- This member is added by an implicit conversion from ScalaSigBytes to ArrowAssoc[ScalaSigBytes] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc
- Annotations
- @inline()
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def arrEncode: Array[String]
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
def
ensuring(cond: (ScalaSigBytes) ⇒ Boolean, msg: ⇒ Any): ScalaSigBytes
- Implicit
- This member is added by an implicit conversion from ScalaSigBytes to Ensuring[ScalaSigBytes] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
def
ensuring(cond: (ScalaSigBytes) ⇒ Boolean): ScalaSigBytes
- Implicit
- This member is added by an implicit conversion from ScalaSigBytes to Ensuring[ScalaSigBytes] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
def
ensuring(cond: Boolean, msg: ⇒ Any): ScalaSigBytes
- Implicit
- This member is added by an implicit conversion from ScalaSigBytes to Ensuring[ScalaSigBytes] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
def
ensuring(cond: Boolean): ScalaSigBytes
- Implicit
- This member is added by an implicit conversion from ScalaSigBytes to Ensuring[ScalaSigBytes] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
- def fitsInOneString: Boolean
-
def
formatted(fmtstr: String): String
- Implicit
- This member is added by an implicit conversion from ScalaSigBytes to StringFormat[ScalaSigBytes] performed by method StringFormat in scala.Predef.
- Definition Classes
- StringFormat
- Annotations
- @inline()
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
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()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
lazy val
sevenBitsMayBeZero: Array[Byte]
The data in
bytes
mapped to 7-bit bytes and then each element incremented by 1 (modulo 0x80).The data in
bytes
mapped to 7-bit bytes and then each element incremented by 1 (modulo 0x80). This implements parts of the encoding documented in ByteCodecs. 0x00 values are NOT mapped to the overlong encoding (0xC0 0x80) but left as-is. When creating a String from this array and writing it to a classfile as annotation argument using ASM, the ASM library will replace 0x00 values by the overlong encoding. So the data in the classfile will have the format documented in ByteCodecs. - def strEncode: String
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- ScalaSigBytes → AnyRef → Any
-
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
→[B](y: B): (ScalaSigBytes, B)
- Implicit
- This member is added by an implicit conversion from ScalaSigBytes to ArrowAssoc[ScalaSigBytes] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc
The Scala compiler and reflection APIs.