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

Method GetClassMethod

core/java/jdwp/helpers.go:51–61  ·  view source on GitHub ↗

GetClassMethod looks up the method with the specified signature on class.

(class ClassID, name, signature string)

Source from the content-addressed store, hash-verified

49
50// GetClassMethod looks up the method with the specified signature on class.
51func (c *Connection) GetClassMethod(class ClassID, name, signature string) (Method, error) {
52 methods, err := c.GetMethods(ReferenceTypeID(class))
53 if err != nil {
54 return Method{}, err
55 }
56 method := methods.FindBySignature(name, signature)
57 if method == nil {
58 return Method{}, fmt.Errorf("Method '%s%s' not found", name, signature)
59 }
60 return *method, nil
61}
62
63// WaitForClassPrepare blocks until a class with a name that matches the pattern
64// is prepared, and then returns the thread that prepared the class.

Callers 2

waitForOnCreateFunction · 0.80
waitForVulkanLoadFunction · 0.80

Calls 3

GetMethodsMethod · 0.95
ReferenceTypeIDTypeAlias · 0.85
FindBySignatureMethod · 0.45

Tested by

no test coverage detected