Class JavaMethod

  • All Implemented Interfaces:
    Comparable<JavaMethod>

    public class JavaMethod
    extends JavaElement
    implements Comparable<JavaMethod>
    Represents a method in a Java source file being generated for output. JavaMethods are created and added to a JavaFile, which can then output Java source code. In addition to normal methods, a JavaMethod can represent a constructor -- constructors should be named after their containing classes and have a return type of null.