Class JavaClassOrRecordRewriter

java.lang.Object
com.vaadin.copilot.javarewriter.JavaClassOrRecordRewriter

public class JavaClassOrRecordRewriter extends Object
Class/Record definition related functions for Java Rewriter.
  • Constructor Details

    • JavaClassOrRecordRewriter

      public JavaClassOrRecordRewriter(com.github.javaparser.ast.CompilationUnit compilationUnit)
  • Method Details

    • addOrGetLabelValueEnabledRecordName

      public String addOrGetLabelValueEnabledRecordName()
      Finds the Record Declaration from given complication unit that has Label, Value and Enabled parameters. Creates one with LabelAndValue name if not found.
      Returns:
      of the record name