Package com.vaadin.copilot.javarewriter
Class LabelValuePairRecordRewriter
java.lang.Object
com.vaadin.copilot.javarewriter.LabelValuePairRecordRewriter
Class/Record definition related functions for Java Rewriter. This class
generates a record to host label/value pairs for components that show simple
data item
ListBox Checkbox RadioButton
-
Constructor Summary
ConstructorsConstructorDescriptionLabelValuePairRecordRewriter(com.github.javaparser.ast.CompilationUnit compilationUnit) -
Method Summary
Modifier and TypeMethodDescriptionFinds the Record Declaration from given complication unit that has Label, Value and Enabled parameters.
-
Constructor Details
-
LabelValuePairRecordRewriter
public LabelValuePairRecordRewriter(com.github.javaparser.ast.CompilationUnit compilationUnit)
-
-
Method Details
-
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
-