Interface ValueCoercible.JavaBaseMembers
- Enclosing interface:
ValueCoercible
public static interface ValueCoercible.JavaBaseMembers
The Java base class members of a generated class that extends a Java class.
The Python object of such a class has the Java base stripped from its bases: the generated
Java class is the only instance of the base. A Python call of an inherited method
(self.baseMethod(...), super().baseMethod(...)) reaches the base implementation
through this contract, which the generated class implements with a non-virtual call for every
accessible instance method of the base.
-
Method Summary
Modifier and TypeMethodDescription@Nullable ObjectmicronautInvokeJavaBaseMethod(String name, List<org.graalvm.polyglot.Value> arguments) Invokes a method of the Java base class on this instance, bypassing a Python override.
-
Method Details
-
micronautInvokeJavaBaseMethod
@Nullable Object micronautInvokeJavaBaseMethod(String name, List<org.graalvm.polyglot.Value> arguments) throws Exception Invokes a method of the Java base class on this instance, bypassing a Python override.- Parameters:
name- The Java method namearguments- The Python arguments- Returns:
- The result, or
nullfor a void method - Throws:
Exception- The checked exception the base method declares
-