@@ -120,7 +120,7 @@ public boolean process(Set<? extends TypeElement> annotations, RoundEnvironment
120
120
return true ;
121
121
}
122
122
123
- private void createMessage (Diagnostic .Kind kind , String message ) {
123
+ protected void createMessage (Diagnostic .Kind kind , String message ) {
124
124
StringWriter sw = new StringWriter ();
125
125
PrintWriter pw = new PrintWriter (sw );
126
126
pw .println (message );
@@ -142,7 +142,7 @@ protected ClassName getEditorDelegateType() {
142
142
return ClassName .get (SimpleBeanEditorDelegate .class );
143
143
}
144
144
145
- private void generate (TypeElement interfaceToImplement , EditorModel rootEditorModel ) {
145
+ protected void generate (TypeElement interfaceToImplement , EditorModel rootEditorModel ) {
146
146
// start driver
147
147
String pkgName = this .elements .getPackageOf (interfaceToImplement ).getQualifiedName ().toString ();
148
148
String typeName = createNameFromEnclosedTypes (interfaceToImplement , "_Impl" );
@@ -233,13 +233,13 @@ private void generate(TypeElement interfaceToImplement, EditorModel rootEditorMo
233
233
* Joins the name of the type with any enclosing types, with "_" as the delimeter, and appends an
234
234
* optional suffix.
235
235
*/
236
- private String createNameFromEnclosedTypes (TypeElement interfaceToImplement , String suffix ) {
236
+ protected String createNameFromEnclosedTypes (TypeElement interfaceToImplement , String suffix ) {
237
237
StringJoiner joiner = new StringJoiner ("_" , "" , suffix == null ? "" : suffix );
238
238
ClassName .get (interfaceToImplement ).simpleNames ().forEach (joiner ::add );
239
239
return joiner .toString ();
240
240
}
241
241
242
- private ClassName getEditorDelegate (EditorModel editorModel , EditorProperty data ) {
242
+ protected ClassName getEditorDelegate (EditorModel editorModel , EditorProperty data ) {
243
243
String delegateSimpleName =
244
244
escapedMaybeParameterizedBinaryName (data .getEditorType ())
245
245
+ "_"
0 commit comments