Class SIUnitsTool

java.lang.Object
de.monticore.siunit.siunits.SIUnitsTool

public class SIUnitsTool extends Object
  • Constructor Details

    • SIUnitsTool

      public SIUnitsTool()
  • Method Details

    • main

      public static void main(String[] args)
      Entry point for the tool from CLI ONLY. This WILL exit the Java VM. From Java code itself, call run(String[]) instead.
      Parameters:
      args - the arguments given to the tool
    • run

      public void run(String[] args)
      Entry point for the tool from Java code. Except from not exiting the Java VM and catching exceptions, this is identical to calling main(String[]) directly.
      Parameters:
      args - the arguments given to the tool
    • parse

      public ASTSIUnit parse(String model)
    • init

      public void init()
    • prettyPrint

      public void prettyPrint(ASTSIUnit ast, String file)
    • print

      public void print(String content, String path)
    • printHelp

      public void printHelp(org.apache.commons.cli.Options options)
    • printVersion

      public void printVersion()
    • report

      public void report(ASTSIUnit ast, String path)
    • runDefaultCoCos

      public void runDefaultCoCos(ASTSIUnit ast)
    • runAdditionalCoCos

      public void runAdditionalCoCos(ASTSIUnit ast)
    • storeSymbols

      public void storeSymbols(ISIUnitsArtifactScope scope, String path)
    • initOptions

      public org.apache.commons.cli.Options initOptions()
    • addStandardOptions

      public org.apache.commons.cli.Options addStandardOptions(org.apache.commons.cli.Options options)
    • addAdditionalOptions

      public org.apache.commons.cli.Options addAdditionalOptions(org.apache.commons.cli.Options options)
    • createSymbolTable

      public ISIUnitsArtifactScope createSymbolTable(ASTSIUnit node)
    • completeSymbolTable

      public void completeSymbolTable(ASTSIUnit node)