MCPcopy Create free account
hub / github.com/google/gapid / InvokeMethod

Method InvokeMethod

core/java/jdwp/cmdset_objectreference.go:41–53  ·  view source on GitHub ↗

InvokeMethod invokes the specified static method.

(object ObjectID, class ClassID, method MethodID, thread ThreadID, options InvokeOptions, args ...Value)

Source from the content-addressed store, hash-verified

39
40// InvokeMethod invokes the specified static method.
41func (c *Connection) InvokeMethod(object ObjectID, class ClassID, method MethodID, thread ThreadID, options InvokeOptions, args ...Value) (InvokeResult, error) {
42 req := struct {
43 Object ObjectID
44 Thread ThreadID
45 Class ClassID
46 Method MethodID
47 Args []Value
48 Options InvokeOptions
49 }{object, thread, class, method, args, options}
50 var res InvokeResult
51 err := c.get(cmdObjectReferenceInvokeMethod, req, &res)
52 return res, err
53}
54
55// DisableGC disables garbage collection for the specified object.
56func (c *Connection) DisableGC(object ObjectID) error {

Callers 2

callMethod · 0.80
TestInvokeMethodFunction · 0.80

Calls 1

getMethod · 0.95

Tested by 1

TestInvokeMethodFunction · 0.64