Class JavaMethod.JavaMethodBuilder

java.lang.Object
com.github.tadukoo.parsing.code.java.JavaMethod.JavaMethodBuilder
Enclosing class:
JavaMethod

public static class JavaMethod.JavaMethodBuilder 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
annotations The annotations on the method An empty list
visibility The Visibility of the method Visibility.PUBLIC
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
Version:
Alpha v.0.3
Author:
Logan Ferree (Tadukoo)
  • Field Details

    • annotations

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

      private Visibility visibility
      The Visibility of the method
    • returnType

      private String returnType
      The return type of the method
    • name

      private String name
      The name of the method
    • parameters

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

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

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

    • JavaMethodBuilder

      private JavaMethodBuilder()
  • Method Details