You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Main.java 525B

1234567891011121314151617181920212223242526272829303132
  1. import java.io.Serializable;
  2. @InjectName
  3. @MarkMyMethods
  4. public class Main {
  5. public String name;
  6. public Main() {
  7. name = "jack";
  8. }
  9. public String testMethod() {
  10. return "Test";
  11. }
  12. protected String testMethodProtected() {
  13. return "Blah!";
  14. }
  15. /**
  16. * @param args
  17. */
  18. public static void main(String[] args) {
  19. // TODO Auto-generated method stub
  20. Main m = new Main();
  21. Class[] cls = Main.class.getInterfaces();
  22. for(Class cl:cls) {
  23. System.out.println("Interface : " + cl.getCanonicalName());
  24. }
  25. }
  26. }