类 DtoCompiler<T extends org.babyfish.jimmer.dto.compiler.spi.BaseType,P extends org.babyfish.jimmer.dto.compiler.spi.BaseProp>

java.lang.Object
org.babyfish.jimmer.dto.compiler.DtoCompiler<T,P>

public abstract class DtoCompiler<T extends org.babyfish.jimmer.dto.compiler.spi.BaseType,P extends org.babyfish.jimmer.dto.compiler.spi.BaseProp> extends Object
  • 构造器详细资料

    • DtoCompiler

      protected DtoCompiler(T baseType, String dtoFilePath)
  • 方法详细资料

    • getBaseType

      public T getBaseType()
    • getDtoFilePath

      public String getDtoFilePath()
    • compile

      public List<DtoType<T,P>> compile(String code)
    • compile

      public List<DtoType<T,P>> compile(Reader reader) throws IOException
      抛出:
      IOException
    • compile

      public List<DtoType<T,P>> compile(InputStream input) throws IOException
      抛出:
      IOException
    • getSuperTypes

      protected abstract Collection<T> getSuperTypes(T baseType)
    • getDeclaredProps

      protected abstract Map<String,P> getDeclaredProps(T baseType)
    • getProps

      protected abstract Map<String,P> getProps(T baseType)
    • getTargetType

      protected abstract T getTargetType(P baseProp)
    • isGeneratedValue

      protected abstract boolean isGeneratedValue(P baseProp)
    • getEnumConstants

      protected abstract List<String> getEnumConstants(P baseProp)
    • isStringProp

      protected abstract boolean isStringProp(P baseProp)
    • isSameType

      protected abstract boolean isSameType(P baseProp1, P baseProp2)