Class InfoBuilder

java.lang.Object
lib.reports.info.InfoBuilder

public class InfoBuilder extends Object
Builder Pattern used to create MethodInfo and FieldInfo
  • Constructor Details

    • InfoBuilder

      public InfoBuilder()
  • Method Details

    • report

      public InfoBuilder report(Report report)
      Set the full parent report, ClassReport or InterfaceReport
      Parameters:
      report - the report
      Returns:
      the builder
    • name

      public InfoBuilder name(String name)
      Set the name of the Info
      Parameters:
      name - the name
      Returns:
      the builder
    • beginLine

      public InfoBuilder beginLine(int line)
      Set the beginning line of the Info
      Parameters:
      line - the beginning line
      Returns:
      the builder
    • endLine

      public InfoBuilder endLine(int line)
      Set the end line of the Info
      Parameters:
      line - the end line
      Returns:
      the builder
    • modifiers

      public InfoBuilder modifiers(String modifiers)
      Set the modifiers of the Info
      Parameters:
      modifiers - the modifiers
      Returns:
      the builder
    • type

      public InfoBuilder type(String type)
      Set the type of the Info
      Parameters:
      type - the type
      Returns:
      the builder
    • buildMethod

      public MethodInfo buildMethod()
      Returns:
      a MethodInfo
    • buildField

      public FieldInfo buildField()
      Create a FieldInfoImpl
      Returns:
      a FieldInfo