Packages

object Code

Defines constants useful when analyzing a method's code.

Source
Code.scala
Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Code
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

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 val KindId: Int(6)

    The unique id associated with attributes of kind: Code.

    The unique id associated with attributes of kind: Code.

    KindIds can be used for efficient branching on attributes.

  5. def apply(maxStack: Int, maxLocals: Int, instructions: Array[Instruction], exceptionHandlers: ExceptionHandlers = NoExceptionHandlers, attributes: Attributes = NoAttributes): Code
  6. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  7. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native() @IntrinsicCandidate()
  8. def computeCFG(instructions: Array[Instruction], exceptionHandlers: ExceptionHandlers = NoExceptionHandlers, classHierarchy: ClassHierarchy = ...): CFG[Instruction, Code]
  9. def computeMaxLocals(isInstanceMethod: Boolean, descriptor: MethodDescriptor, instructions: Array[Instruction]): Int
  10. def computeMaxLocalsRequiredByCode(instructions: Array[Instruction]): Int

    The maximum number of registers required to execute the code - independent of the number of parameters.

    The maximum number of registers required to execute the code - independent of the number of parameters.

    Note

    The method's descriptor may actually require

  11. def computeMaxStack(instructions: Array[Instruction], exceptionHandlers: ExceptionHandlers, cfg: CFG[Instruction, Code]): Int

    Computes the maximum stack size required when executing this code block.

    Computes the maximum stack size required when executing this code block.

    Annotations
    @throws( ... )
    Exceptions thrown

    java.lang.ClassFormatError If the stack size differs between execution paths.

  12. def computeMaxStack(instructions: Array[Instruction], classHierarchy: ClassHierarchy = ..., exceptionHandlers: ExceptionHandlers = NoExceptionHandlers): Int

    Computes the maximum stack size required when executing this code block.

    Computes the maximum stack size required when executing this code block.

    Annotations
    @throws( ... )
    Exceptions thrown

    java.lang.ClassFormatError If the stack size differs between execution paths.

    Note

    If the cfg is available, call the respective computeMaxStack method.

  13. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  14. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  15. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  16. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  17. def invalidBytecode(descriptor: MethodDescriptor, isInstanceMethod: Boolean, message: Option[String] = None): Code

    Creates a method body which throws a java.lang.Error with the given message or that states that the underlying bytecode is invalid if the message is empty.

  18. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  19. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  20. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  21. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  22. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  23. def toString(): String
    Definition Classes
    AnyRef → Any
  24. def unapply(code: Code): Option[(Int, Int, Array[Instruction], ExceptionHandlers, Attributes)]
  25. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  26. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  27. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] ) @Deprecated
    Deprecated

Inherited from AnyRef

Inherited from Any

Ungrouped