abstract
class
BytecodeTest extends ASMConverters
Instance Constructors
-
new
BytecodeTest()
Abstract Value Members
-
abstract
def
show(): Unit
Concrete Value Members
-
final
def
!=(arg0: AnyRef): Boolean
-
final
def
!=(arg0: Any): Boolean
-
final
def
##(): Int
-
def
+(other: String): String
-
-
final
def
==(arg0: AnyRef): Boolean
-
final
def
==(arg0: Any): Boolean
-
final
def
asInstanceOf[T0]: T0
-
lazy val
classpath: JavaClassPath
-
def
clone(): AnyRef
-
-
-
-
def
ensuring(cond: Boolean, msg: ⇒ Any): BytecodeTest
-
def
ensuring(cond: Boolean): BytecodeTest
-
final
def
eq(arg0: AnyRef): Boolean
-
def
equals(arg0: Any): Boolean
-
-
def
finalize(): Unit
-
def
formatted(fmtstr: String): String
-
final
def
getClass(): Class[_]
-
def
getMethod(classNode: ClassNode, name: String): MethodNode
-
def
hashCode(): Int
-
-
final
def
isInstanceOf[T0]: Boolean
-
def
loadClassNode(name: String, skipDebugInfo: Boolean = true): ClassNode
-
def
main(args: Array[String]): Unit
-
final
def
ne(arg0: AnyRef): Boolean
-
final
def
notify(): Unit
-
final
def
notifyAll(): Unit
-
def
sameBytecode(methA: MethodNode, methB: MethodNode): Unit
-
def
sameMethodAndFieldSignatures(clazzA: ClassNode, clazzB: ClassNode): Boolean
-
def
similarBytecode(methA: MethodNode, methB: MethodNode, similar: (Instruction, Instruction) ⇒ Boolean): Unit
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
-
def
toString(): String
-
final
def
wait(): Unit
-
final
def
wait(arg0: Long, arg1: Int): Unit
-
final
def
wait(arg0: Long): Unit
-
Provides utilities for inspecting bytecode using ASM library.
HOW TO USE 1. Create subdirectory in test/files/jvm for your test. Let's name it $TESTDIR. 2. Create $TESTDIR/BytecodeSrc_1.scala that contains Scala source file that you want to inspect the bytecode for. The '_1' suffix signals to partest that it should compile this file first. 3. Create $TESTDIR/Test.scala: import scala.tools.partest.BytecodeTest object Test extends BytecodeTest { def show { // your code that inspect ASM trees and prints values } } 4. Create corresponding check file.
EXAMPLE See test/files/jvm/bytecode-test-example for an example of bytecode test.