类 CodeWriter<C extends Context>

java.lang.Object
org.babyfish.jimmer.client.generator.CodeWriter<C>
直接已知子类:
JavaCodeWriter, TsCodeWriter

public abstract class CodeWriter<C extends Context> extends Object
  • 字段详细资料

    • ctx

      protected final C extends Context ctx
    • file

      protected final File file
  • 构造器详细资料

    • CodeWriter

      protected CodeWriter(C ctx, File file)
  • 方法详细资料

    • getContext

      public final C getContext()
    • getFile

      public final File getFile()
    • codeIf

      public final CodeWriter<C> codeIf(boolean cond, String ts)
    • codeIf

      public final CodeWriter<C> codeIf(boolean cond, char c)
    • code

      public final CodeWriter<C> code(String ts)
    • code

      public final CodeWriter<C> code(char c)
    • importFile

      public final CodeWriter<C> importFile(File file)
    • importFile

      public final CodeWriter<C> importFile(File file, boolean treatAsData)
    • onImport

      protected abstract void onImport(File file, boolean treatAsData)
    • typeRef

      public final CodeWriter<C> typeRef(Type type)
    • separator

      public CodeWriter<C> separator()
    • document

      public CodeWriter<C> document(Document document)
    • scope

      public CodeWriter<C> scope(CodeWriter.ScopeType type, String separator, boolean multiLines, Runnable runnable)
    • write

      protected abstract void write()
    • flush

      public final void flush() throws IOException
      抛出:
      IOException
    • writePackageHeader

      protected void writePackageHeader(Writer writer) throws IOException
      抛出:
      IOException
    • writeImportHeader

      protected abstract void writeImportHeader(Writer writer) throws IOException
      抛出:
      IOException
    • rawImmutableAsDynamic

      protected boolean rawImmutableAsDynamic()
    • writeSimpleTypeRef

      protected abstract void writeSimpleTypeRef(SimpleType simpleType)
    • writeNullableTypeRef

      protected abstract void writeNullableTypeRef(NullableType nullableType)
    • writeArrayTypeRef

      protected abstract void writeArrayTypeRef(ArrayType arrayType)
    • writeMapTypeRef

      protected abstract void writeMapTypeRef(MapType mapType)
    • writeDynamicTypeRef

      protected abstract void writeDynamicTypeRef(ImmutableObjectType type)
    • writeStaticTypeRef

      protected void writeStaticTypeRef(StaticObjectType type)
    • writeDtoTypeRef

      protected abstract void writeDtoTypeRef(ImmutableObjectType type)