Package com.dslplatform.json.processor
Class EnumTemplate
- java.lang.Object
-
- com.dslplatform.json.processor.EnumTemplate
-
class EnumTemplate extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description EnumTemplate(Context context)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) voidcreate(StructInfo si, java.lang.String className)private static java.lang.StringextractReturnType(javax.lang.model.element.Element element)private static booleanisAllSimple(StructInfo si)(package private) booleanisStatic(StructInfo si)(package private) voidwriteName(java.io.Writer code, StructInfo target, java.lang.String readValue, java.lang.String writerName)private voidwriteName(java.io.Writer code, StructInfo target, java.lang.String readValue, java.lang.String writerName, boolean external)
-
-
-
Field Detail
-
code
private final java.io.Writer code
-
context
private final Context context
-
-
Constructor Detail
-
EnumTemplate
EnumTemplate(Context context)
-
-
Method Detail
-
isAllSimple
private static boolean isAllSimple(StructInfo si)
-
writeName
void writeName(java.io.Writer code, StructInfo target, java.lang.String readValue, java.lang.String writerName) throws java.io.IOException- Throws:
java.io.IOException
-
writeName
private void writeName(java.io.Writer code, StructInfo target, java.lang.String readValue, java.lang.String writerName, boolean external) throws java.io.IOException- Throws:
java.io.IOException
-
isStatic
boolean isStatic(StructInfo si)
-
create
void create(StructInfo si, java.lang.String className) throws java.io.IOException
- Throws:
java.io.IOException
-
-