Class EnumTemplate


  • class EnumTemplate
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.io.Writer code  
      private Context context  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      (package private) void create​(StructInfo si, java.lang.String className)  
      private static java.lang.String extractReturnType​(javax.lang.model.element.Element element)  
      private static boolean isAllSimple​(StructInfo si)  
      (package private) boolean isStatic​(StructInfo si)  
      (package private) void writeName​(java.io.Writer code, StructInfo target, java.lang.String readValue, java.lang.String writerName)  
      private void writeName​(java.io.Writer code, StructInfo target, java.lang.String readValue, java.lang.String writerName, boolean external)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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
      • create

        void create​(StructInfo si,
                    java.lang.String className)
             throws java.io.IOException
        Throws:
        java.io.IOException
      • extractReturnType

        @Nullable
        private static java.lang.String extractReturnType​(@Nullable
                                                          javax.lang.model.element.Element element)