class ConstantPool extends AnyRef
Constructor of this class should not be called directly, use newConstantPool
instead.
- Attributes
- protected
- Source
- ClassfileParser.scala
- Alphabetic
- By Inheritance
- ConstantPool
- AnyRef
- Any
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new ConstantPool()
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 ConstantPool toany2stringadd[ConstantPool] performed by method any2stringadd in scala.Predef.
- Definition Classes
- any2stringadd
- def ->[B](y: B): (ConstantPool, B)
- Implicit
- This member is added by an implicit conversion from ConstantPool toArrowAssoc[ConstantPool] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc
- Annotations
- @inline()
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- val endBp: Int
- def ensuring(cond: (ConstantPool) => Boolean, msg: => Any): ConstantPool
- Implicit
- This member is added by an implicit conversion from ConstantPool toEnsuring[ConstantPool] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- def ensuring(cond: (ConstantPool) => Boolean): ConstantPool
- Implicit
- This member is added by an implicit conversion from ConstantPool toEnsuring[ConstantPool] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- def ensuring(cond: Boolean, msg: => Any): ConstantPool
- Implicit
- This member is added by an implicit conversion from ConstantPool toEnsuring[ConstantPool] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- def ensuring(cond: Boolean): ConstantPool
- Implicit
- This member is added by an implicit conversion from ConstantPool toEnsuring[ConstantPool] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def errorBadIndex(index: Int): Nothing
Throws an exception signaling a bad constant index.
Throws an exception signaling a bad constant index.
- Attributes
- protected
- def errorBadTag(start: Int): Nothing
Throws an exception signaling a bad tag at given address.
Throws an exception signaling a bad tag at given address.
- Attributes
- protected
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- def firstExpecting(index: Int, expected: Int): Int
- def getBytes(indices: List[Int]): Array[Byte]
Get an array of bytes stored in the classfile as an array of strings.
Get an array of bytes stored in the classfile as an array of strings. The data is encoded in the format described in object scala.reflect.internal.pickling.ByteCodecs. Used for the ScalaLongSignature annotation argument.
- def getBytes(index: Int): Array[Byte]
Get an array of bytes stored in the classfile as a string.
Get an array of bytes stored in the classfile as a string. The data is encoded in the format described in object scala.reflect.internal.pickling.ByteCodecs. Used for the ScalaSignature annotation argument.
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def getClassName(index: Int): NameOrString
Return the external name of the class info structure found at 'index'.
Return the external name of the class info structure found at 'index'. Use 'getClassSymbol' if the class is sure to be a top-level class.
- def getClassOrArrayType(index: Int): (symbolTable)#Type
Return the type of a class constant entry.
Return the type of a class constant entry. Since arrays are considered to be class types, they might appear as entries in 'newarray' or 'cast' opcodes.
- def getClassSymbol(index: Int): (symbolTable)#Symbol
- def getConstant(index: Int): (symbolTable)#Constant
- def getConstant(index: Char): (symbolTable)#Constant
- def getExternalName(index: Int): NameOrString
Return the name found at given index in the constant pool, with '/' replaced by '.'.
- def getName(index: Int): NameOrString
Return the name found at given index.
- def getNameAndType(index: Int, ownerTpe: (symbolTable)#Type): ((symbolTable)#Name, (symbolTable)#Type)
Return a name and a type at the given index.
Return a name and a type at the given index. If the type is a method type, a dummy symbol is created in
ownerTpe
, which is used as the owner of its value parameters. This might lead to inconsistencies, if a symbol of the given name already exists, and has a different type.- Attributes
- protected
- def getSuperClassName(index: Int): NameOrString
- def getType(sym: (symbolTable)#Symbol, index: Int): (symbolTable)#Type
- def getType(index: Int): (symbolTable)#Type
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- val initBp: Int
- val internalized: Array[NameOrString]
- Attributes
- protected
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val len: Int
- Attributes
- protected
- 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 recordAtIndex[T <: AnyRef](value: T, idx: Int): T
- val starts: Array[Int]
- Attributes
- protected
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- val values: Array[AnyRef]
- Attributes
- protected
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
Deprecated Value Members
- def formatted(fmtstr: String): String
- Implicit
- This member is added by an implicit conversion from ConstantPool toStringFormat[ConstantPool] performed by method StringFormat in scala.Predef.
- Definition Classes
- StringFormat
- Annotations
- @deprecated @inline()
- Deprecated
(Since version 2.12.16) Use
formatString.format(value)
instead ofvalue.formatted(formatString)
, or use thef""
string interpolator. In Java 15 and later,formatted
resolves to the new method in String which has reversed parameters.
- def →[B](y: B): (ConstantPool, B)
- Implicit
- This member is added by an implicit conversion from ConstantPool toArrowAssoc[ConstantPool] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc
- Annotations
- @deprecated
- Deprecated
(Since version 2.13.0) Use
->
instead. If you still wish to display it as one character, consider using a font with programming ligatures such as Fira Code.
The Scala compiler and reflection APIs.