| 67 | } |
| 68 | |
| 69 | void JavaInterfaceClassDelegate::setMethod( |
| 70 | size_t index, const AnyJavaMethod& method, jobject javaMethod, bool isOptional, bool isPropertyLike) { |
| 71 | Valdi::InlineContainerAllocator<JavaInterfaceClassDelegate, JavaInterfaceClassDelegateMethod> allocator; |
| 72 | auto& entry = allocator.getContainerStartPtr(this)[index]; |
| 73 | entry.method = method; |
| 74 | if (isOptional && !isPropertyLike) { |
| 75 | entry.javaMethodRef = IndirectJavaGlobalRef::make(javaMethod, "Optional Java Method"); |
| 76 | } else { |
| 77 | entry.javaMethodRef = IndirectJavaGlobalRef(); |
| 78 | } |
| 79 | entry.isOptional = isOptional; |
| 80 | entry.isPropertyLike = isPropertyLike; |
| 81 | } |
| 82 | |
| 83 | Valdi::Ref<Valdi::ValueTypedProxyObject> JavaInterfaceClassDelegate::newProxy( |
| 84 | const JavaValue& object, |
no test coverage detected