What changes would need to be made to method finder in the


Question: The name find Method is somewhat inappropriate for the Method Finder's public method, because functions that return values should have names indicating the value returned. Since find Method returns a boolean value, a better name would be contains Method. If a method is named find Method, then it should return a method (that is, a Method Declaration node) or null.

a. What changes would need to be made to Method Finder in the ast3 package so that find Method returns a Method Declaration Node instead of a boolean value, and how can you use this new find Method to implement a boolean contains Method in the Method Finder class?

b. Implement these changes.

Request for Solution File

Ask an Expert for Answer!!
Basic Computer Science: What changes would need to be made to method finder in the
Reference No:- TGS02580363

Expected delivery within 24 Hours