Class JavaMethodBuilder<MethodType extends JavaMethod>

java.lang.Object
com.github.tadukoo.java.method.JavaMethodBuilder<MethodType>
Direct Known Subclasses:
EditableJavaMethod.EditableJavaMethodBuilder, UneditableJavaMethod.UneditableJavaMethodBuilder

public abstract class JavaMethodBuilder<MethodType extends JavaMethod> extends Object
Java Method Builder is used to build a new JavaMethod. It contains the following parameters:
Java Method Parameters
Parameter Description Default or Required
javadoc The Javadoc on the method null
annotations The annotations on the method An empty list
visibility The Visibility of the method Visibility.NONE
isAbstract Whether the method is abstract or not Defaults to false
isStatic Whether the method is static or not Defaults to false
isFinal Whether the method is final or not Defaults to false
returnType The return type of the method Required
name The name of the method null (used for constructors)
parameters The parameters used in the method - pairs of type, then name An empty list
throwTypes The types that can be thrown by the method An empty list
lines The actual lines of code in the method An empty list
Since:
Alpha v.0.2 (within JavaMethod), Alpha v.0.4 (as a separate class)
Version:
Beta v.0.5
Author:
Logan Ferree (Tadukoo)
  • Field Details

    • javadoc

      protected Javadoc javadoc
      The Javadoc on the method
    • annotations

      protected List<JavaAnnotation> annotations
      The annotations on the method
    • visibility

      protected Visibility visibility
      The Visibility of the method
    • isAbstract

      protected boolean isAbstract
      Whether the method is abstract or not
    • isStatic

      protected boolean isStatic
      Whether the method is static or not
    • isFinal

      protected boolean isFinal
      Whether the method is final or not
    • returnType

      protected String returnType
      The return type of the method
    • name

      protected String name
      The name of the method
    • parameters

      protected List<com.github.tadukoo.util.tuple.Pair<String,String>> parameters
      The parameters used in the method - pairs of type, then name
    • throwTypes

      protected List<String> throwTypes
      The types that can be thrown by the method
    • lines

      protected List<String> lines
      The actual lines of code in the method
  • Constructor Details

    • JavaMethodBuilder

      protected JavaMethodBuilder()
      Constructs a new JavaMethodBuilder
  • Method Details