Class Context

java.lang.Object
com.dslplatform.compiler.client.Context
All Implemented Interfaces:
Closeable, AutoCloseable

public class Context extends Object implements Closeable
  • Field Details

    • parameters

      private final Map<String,String> parameters
    • cache

      private final Map<String,Object> cache
    • console

      private PrintStream console
    • withLog

      private boolean withLog
    • noPrompt

      private boolean noPrompt
    • withColor

      private boolean withColor
  • Constructor Details

    • Context

      public Context()
    • Context

      protected Context(PrintStream console)
  • Method Details

    • put

      public void put(CompileParameter parameter, String value)
    • put

      public void put(String parameter, String value)
    • contains

      public boolean contains(CompileParameter parameter)
    • contains

      public boolean contains(String parameter)
    • get

      public String get(CompileParameter parameter)
    • get

      public String get(String parameter)
    • cache

      public void cache(String name, Object value)
    • notify

      public <T> T notify(String action, T target)
    • load

      public <T> T load(String name)
    • write

      private static void write(PrintStream console, boolean newLine, String... values)
    • show

      public void show(String... values)
    • inColor

      public static String inColor(org.fusesource.jansi.Ansi.Color color, String message)
    • log

      public void log(String value)
    • log

      public void log(char[] value, int len)
    • warning

      public void warning(String value)
    • warning

      public void warning(Exception ex)
    • error

      public void error(String value)
    • error

      public void error(Exception ex)
    • canInteract

      public boolean canInteract()
    • askSafe

      private void askSafe(String question, org.fusesource.jansi.Ansi.Color color)
    • ask

      public String ask(String question)
    • askSecret

      public char[] askSecret(String question)
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable