Class CustomTypeProcessor

java.lang.Object
CustomTypeProcessor
All Implemented Interfaces:
cz.habarta.typescript.generator.TypeProcessor

public class CustomTypeProcessor extends Object implements cz.habarta.typescript.generator.TypeProcessor
Does some custom processing for our specific model and fixes any anomalies in the plugin itself:
  • Ignore types/super types annotated with TsIgnore
  • Will ignore types with a super type in the "com.fasterxml.jackson" package excluding those implementing JsonNode
  • Removes some or all type params from classes annotated with TsIgnoreTypeParams
  • Special processing for AssetModelInfo meta item value descriptors as JsonSerialize extension doesn't support @JsonSerialize(contentConverter=...)
  • Nested Class Summary

    Nested classes/interfaces inherited from interface cz.habarta.typescript.generator.TypeProcessor

    cz.habarta.typescript.generator.TypeProcessor.Chain, cz.habarta.typescript.generator.TypeProcessor.Context, cz.habarta.typescript.generator.TypeProcessor.Result
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    cz.habarta.typescript.generator.TypeProcessor.Result
    processType(Type javaType, cz.habarta.typescript.generator.TypeProcessor.Context context)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface cz.habarta.typescript.generator.TypeProcessor

    discoverClassesUsedInType, isTypeExcluded, processTypeInTemporaryContext
  • Field Details

  • Constructor Details

    • CustomTypeProcessor

      public CustomTypeProcessor()
  • Method Details

    • processType

      public cz.habarta.typescript.generator.TypeProcessor.Result processType(Type javaType, cz.habarta.typescript.generator.TypeProcessor.Context context)
      Specified by:
      processType in interface cz.habarta.typescript.generator.TypeProcessor