Update Class.java

Add methods to get methods and attributes.