Class TeamAppsTypeScriptGenerator

java.lang.Object
org.teamapps.dto.generate.TeamAppsTypeScriptGenerator

public class TeamAppsTypeScriptGenerator
extends java.lang.Object
  • Constructor Details

    • TeamAppsTypeScriptGenerator

      public TeamAppsTypeScriptGenerator​(TeamAppsDtoModel model)
  • Method Details

    • main

      public static void main​(java.lang.String[] args) throws java.io.IOException
      Throws:
      java.io.IOException
    • generate

      public void generate​(java.io.File targetDir) throws java.io.IOException
      Throws:
      java.io.IOException
    • generateEnum

      public void generateEnum​(TeamAppsDtoParser.EnumDeclarationContext enumContext, java.io.Writer writer) throws java.io.IOException
      Throws:
      java.io.IOException
    • generateClassDefinition

      public void generateClassDefinition​(TeamAppsDtoParser.ClassDeclarationContext clazzContext, java.io.Writer writer) throws java.io.IOException
      Throws:
      java.io.IOException
    • generateInterfaceDefinition

      public void generateInterfaceDefinition​(TeamAppsDtoParser.InterfaceDeclarationContext interfaceContext, java.io.Writer writer) throws java.io.IOException
      Throws:
      java.io.IOException
    • generateCommandExecutor

      public void generateCommandExecutor​(java.util.List<TeamAppsDtoParser.CommandDeclarationContext> commandDeclarationContexts, java.io.Writer writer) throws java.io.IOException
      Throws:
      java.io.IOException
    • generateSubCommandBaseDefinition

      public void generateSubCommandBaseDefinition​(java.io.Writer writer) throws java.io.IOException
      Throws:
      java.io.IOException
    • generateSubCommandExecutor

      public void generateSubCommandExecutor​(java.util.List<TeamAppsDtoParser.SubCommandDeclarationContext> commandDeclarationContexts, java.io.Writer writer) throws java.io.IOException
      Throws:
      java.io.IOException
    • generateCommandBaseDefinition

      public void generateCommandBaseDefinition​(java.io.Writer writer) throws java.io.IOException
      Throws:
      java.io.IOException
    • generateEventBaseDefinition

      public void generateEventBaseDefinition​(java.util.List<TeamAppsDtoParser.EventDeclarationContext> eventDeclarations, java.io.Writer writer) throws java.io.IOException
      Throws:
      java.io.IOException
    • generateSubEventBaseDefinition

      public void generateSubEventBaseDefinition​(java.util.List<TeamAppsDtoParser.SubEventDeclarationContext> subEventDeclarations, java.io.Writer writer) throws java.io.IOException
      Throws:
      java.io.IOException
    • generateEventRegistrator

      public void generateEventRegistrator​(java.util.List<org.antlr.v4.runtime.ParserRuleContext> classAndInterfaceContexts, java.io.Writer writer) throws java.io.IOException
      Throws:
      java.io.IOException
    • generateSubEventRegistrator

      public void generateSubEventRegistrator​(java.util.List<org.antlr.v4.runtime.ParserRuleContext> classAndInterfaceContexts, java.io.Writer writer) throws java.io.IOException
      Throws:
      java.io.IOException