final class com.oracle.truffle.llvm.tests.interop.PyObjectTest$IntMatcher extends org.hamcrest.TypeSafeMatcher<org.graalvm.polyglot.Value>
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
this_class: com.oracle.truffle.llvm.tests.interop.PyObjectTest$IntMatcher
super_class: org.hamcrest.TypeSafeMatcher
{
private final int expected;
descriptor: I
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
final com.oracle.truffle.llvm.tests.interop.PyObjectTest this$0;
descriptor: Lcom/oracle/truffle/llvm/tests/interop/PyObjectTest;
flags: (0x1010) ACC_FINAL, ACC_SYNTHETIC
private void <init>(com.oracle.truffle.llvm.tests.interop.PyObjectTest, int);
descriptor: (Lcom/oracle/truffle/llvm/tests/interop/PyObjectTest;I)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=3, args_size=3
start local 0 start local 2 0: aload 0
aload 1
putfield com.oracle.truffle.llvm.tests.interop.PyObjectTest$IntMatcher.this$0:Lcom/oracle/truffle/llvm/tests/interop/PyObjectTest;
1: aload 0
ldc Lorg/graalvm/polyglot/Value;
invokespecial org.hamcrest.TypeSafeMatcher.<init>:(Ljava/lang/Class;)V
2: aload 0
iload 2
putfield com.oracle.truffle.llvm.tests.interop.PyObjectTest$IntMatcher.expected:I
3: return
end local 2 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lcom/oracle/truffle/llvm/tests/interop/PyObjectTest$IntMatcher;
0 4 2 expected I
MethodParameters:
Name Flags
this$0 final
expected
public boolean matchesSafely(org.graalvm.polyglot.Value);
descriptor: (Lorg/graalvm/polyglot/Value;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 1
invokevirtual org.graalvm.polyglot.Value.isNumber:()Z
ifeq 1
aload 1
invokevirtual org.graalvm.polyglot.Value.fitsInInt:()Z
ifeq 1
aload 1
invokevirtual org.graalvm.polyglot.Value.asInt:()I
aload 0
getfield com.oracle.truffle.llvm.tests.interop.PyObjectTest$IntMatcher.expected:I
if_icmpne 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/oracle/truffle/llvm/tests/interop/PyObjectTest$IntMatcher;
0 2 1 item Lorg/graalvm/polyglot/Value;
MethodParameters:
Name Flags
item
public void describeTo(org.hamcrest.Description);
descriptor: (Lorg/hamcrest/Description;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 1
aload 0
getfield com.oracle.truffle.llvm.tests.interop.PyObjectTest$IntMatcher.expected:I
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
invokeinterface org.hamcrest.Description.appendValue:(Ljava/lang/Object;)Lorg/hamcrest/Description;
pop
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/oracle/truffle/llvm/tests/interop/PyObjectTest$IntMatcher;
0 2 1 description Lorg/hamcrest/Description;
MethodParameters:
Name Flags
description
protected void describeMismatchSafely(org.graalvm.polyglot.Value, org.hamcrest.Description);
descriptor: (Lorg/graalvm/polyglot/Value;Lorg/hamcrest/Description;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
aload 2
invokespecial org.hamcrest.TypeSafeMatcher.describeMismatchSafely:(Ljava/lang/Object;Lorg/hamcrest/Description;)V
1: aload 1
invokevirtual org.graalvm.polyglot.Value.isNumber:()Z
ifne 4
2: aload 2
ldc " (not a number)"
invokeinterface org.hamcrest.Description.appendText:(Ljava/lang/String;)Lorg/hamcrest/Description;
pop
3: goto 6
StackMap locals:
StackMap stack:
4: aload 1
invokevirtual org.graalvm.polyglot.Value.fitsInInt:()Z
ifne 6
5: aload 2
ldc " (doesn't fit in int)"
invokeinterface org.hamcrest.Description.appendText:(Ljava/lang/String;)Lorg/hamcrest/Description;
pop
6: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lcom/oracle/truffle/llvm/tests/interop/PyObjectTest$IntMatcher;
0 7 1 item Lorg/graalvm/polyglot/Value;
0 7 2 description Lorg/hamcrest/Description;
MethodParameters:
Name Flags
item
description
public boolean matchesSafely(java.lang.Object);
descriptor: (Ljava/lang/Object;)Z
flags: (0x1041) ACC_PUBLIC, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=2, locals=2, args_size=2
0: aload 0
aload 1
checkcast org.graalvm.polyglot.Value
invokevirtual com.oracle.truffle.llvm.tests.interop.PyObjectTest$IntMatcher.matchesSafely:(Lorg/graalvm/polyglot/Value;)Z
ireturn
LocalVariableTable:
Start End Slot Name Signature
protected void describeMismatchSafely(java.lang.Object, org.hamcrest.Description);
descriptor: (Ljava/lang/Object;Lorg/hamcrest/Description;)V
flags: (0x1044) ACC_PROTECTED, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=3, locals=3, args_size=3
0: aload 0
aload 1
checkcast org.graalvm.polyglot.Value
aload 2
invokevirtual com.oracle.truffle.llvm.tests.interop.PyObjectTest$IntMatcher.describeMismatchSafely:(Lorg/graalvm/polyglot/Value;Lorg/hamcrest/Description;)V
return
LocalVariableTable:
Start End Slot Name Signature
}
Signature: Lorg/hamcrest/TypeSafeMatcher<Lorg/graalvm/polyglot/Value;>;
SourceFile: "PyObjectTest.java"
NestHost: com.oracle.truffle.llvm.tests.interop.PyObjectTest
InnerClasses:
final IntMatcher = com.oracle.truffle.llvm.tests.interop.PyObjectTest$IntMatcher of com.oracle.truffle.llvm.tests.interop.PyObjectTest