Get functions / variables / classes from Processing and user

I am sorry, how can I get a list of the functions of a Sketgch and a list of the methods of a class therein?

Is there a documentation for this?

Can I analyze another Sketch B by giving the path of B in the Analyzing Sketch A? (when the Sketch A contains
getClass().getDeclaredMethods() etc.)

Thank you all!

Also, can I get the functions that are called by a certain class?