fields:
line 14: private String label;
constructors:
line 27: public DfaVertex(String label)
methods:
line 43: public void addTransition(String symbol, String dest)
line 57: public String getTransition(String symbol)
line 64: public String getLabel()
(This output was produced by using the input file DfaVertex.java from programming assignment 1.)
Let us agree to call a field, constructor, or method ordinary if it is declared using the simplest possible set of keywords: an access modifier, a datatype or return type if required, a name, and a parameter list if required. Specifically, ordinary fields and methods do not have additional keywords such as static or final. Additionally, ordinary declarations don't have any comments or other tricky syntax. For this question, you need only find matches for the ordinary declarations. Thus, the task for this question is to add code to the JavaAnalyzer class that will print out all the ordinary declarations in a manner similar to the output given above. You must use regular expressions to find the appropriate lines. To assist with grading, please do not alter any existing code, and only add code in places marked by the string "PROGASSIGNMENT2".