File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -8,4 +8,5 @@ interface InvokerInterface
88 public function __construct (JavaClassInvoker $ javaClassInvoker , array $ methods );
99 public function call (string $ name , ...$ arguments );
1010 public function isDynamic (): bool ;
11+ public function getList (): array ;
1112}
Original file line number Diff line number Diff line change @@ -165,6 +165,18 @@ public function __construct(JavaClassReader $reader)
165165 $ this ->invoker = new JavaClassInvoker ($ this );
166166 }
167167
168+ public function __debugInfo ()
169+ {
170+ return [
171+ 'className ' => $ this ->getClassName (),
172+ 'superClass ' => get_class ($ this ->getSuperClass ()),
173+ 'methods ' => [
174+ 'static ' => array_keys ($ this ->invoker ->getStatic ()->getMethods ()->getList ()),
175+ 'dynamic ' => array_keys ($ this ->invoker ->getDynamic ()->getMethods ()->getList ()),
176+ ],
177+ ];
178+ }
179+
168180 public function getClassName (bool $ shortName = false ): string
169181 {
170182 if ($ shortName === true ) {
You can’t perform that action at this time.
0 commit comments