Class Interpreter


  • public class Interpreter
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      Interpreter​(jline.console.ConsoleReader consoleReader, ScriptEngineBuilder scriptEngineBuilder, com.xebialabs.deployit.booter.remote.DeployitCommunicator communicator, CliOptions options, java.util.Set<java.lang.String> cliObjectNames)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object evaluate​(java.io.Reader reader)  
      void evaluateFile​(java.lang.String fileName)  
      protected void exit()  
      javax.script.ScriptContext getScriptContext()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Interpreter

        public Interpreter​(jline.console.ConsoleReader consoleReader,
                           ScriptEngineBuilder scriptEngineBuilder,
                           com.xebialabs.deployit.booter.remote.DeployitCommunicator communicator,
                           CliOptions options,
                           java.util.Set<java.lang.String> cliObjectNames)
    • Method Detail

      • evaluateFile

        public void evaluateFile​(java.lang.String fileName)
                          throws java.io.FileNotFoundException,
                                 javax.script.ScriptException
        Throws:
        java.io.FileNotFoundException
        javax.script.ScriptException
      • evaluate

        public java.lang.Object evaluate​(java.io.Reader reader)
                                  throws javax.script.ScriptException
        Throws:
        javax.script.ScriptException
      • exit

        protected void exit()
      • getScriptContext

        public javax.script.ScriptContext getScriptContext()