@Test public void testEnvStringPattern() { assertFalse(RemoteInterpreter.isEnvString(null)); assertFalse(RemoteInterpreter.isEnvString("")); assertFalse(RemoteInterpreter.isEnvString("abcDEF")); assertFalse(RemoteInterpreter.isEnvString("ABC-DEF")); assertTrue(RemoteInterpreter.isEnvString("ABCDEF")); assertTrue(RemoteInterpreter.isEnvString("ABC_DEF")); assertTrue(RemoteInterpreter.isEnvString("ABC_DEF123")); }
static boolean isEnvString(String key) { if (key == null || key.length() == 0) { return false; } return key.matches("^[A-Z_0-9]*"); }
RemoteInterpreter extends Interpreter { static boolean isEnvString(String key) { if (key == null || key.length() == 0) { return false; } return key.matches("^[A-Z_0-9]*"); } }
RemoteInterpreter extends Interpreter { static boolean isEnvString(String key) { if (key == null || key.length() == 0) { return false; } return key.matches("^[A-Z_0-9]*"); } RemoteInterpreter(Properties property, String sessionKey, String className,
      String interpreterRunner, String interpreterPath, String localRepoPath, int connectTimeout,
      int maxPoolSize, RemoteInterpreterProcessListener remoteInterpreterProcessListener,
      ApplicationEventListener appListener, String userName, Boolean isUserImpersonate,
      int outputLimit);  RemoteInterpreter(Properties property, String sessionKey, String className, String host,
      int port, String localRepoPath, int connectTimeout, int maxPoolSize,
      RemoteInterpreterProcessListener remoteInterpreterProcessListener,
      ApplicationEventListener appListener, String userName, Boolean isUserImpersonate,
      int outputLimit);  RemoteInterpreter(Properties property, String sessionKey, String className,
      String interpreterRunner, String interpreterPath, String localRepoPath,
      Map<String, String> env, int connectTimeout,
      RemoteInterpreterProcessListener remoteInterpreterProcessListener,
      ApplicationEventListener appListener, String userName, Boolean isUserImpersonate); }
RemoteInterpreter extends Interpreter { static boolean isEnvString(String key) { if (key == null || key.length() == 0) { return false; } return key.matches("^[A-Z_0-9]*"); } RemoteInterpreter(Properties property, String sessionKey, String className,
      String interpreterRunner, String interpreterPath, String localRepoPath, int connectTimeout,
      int maxPoolSize, RemoteInterpreterProcessListener remoteInterpreterProcessListener,
      ApplicationEventListener appListener, String userName, Boolean isUserImpersonate,
      int outputLimit);  RemoteInterpreter(Properties property, String sessionKey, String className, String host,
      int port, String localRepoPath, int connectTimeout, int maxPoolSize,
      RemoteInterpreterProcessListener remoteInterpreterProcessListener,
      ApplicationEventListener appListener, String userName, Boolean isUserImpersonate,
      int outputLimit);  RemoteInterpreter(Properties property, String sessionKey, String className,
      String interpreterRunner, String interpreterPath, String localRepoPath,
      Map<String, String> env, int connectTimeout,
      RemoteInterpreterProcessListener remoteInterpreterProcessListener,
      ApplicationEventListener appListener, String userName, Boolean isUserImpersonate); @Override String getClassName(); RemoteInterpreterProcess getInterpreterProcess(); synchronized void init(); @Override void open(); @Override void close(); void closeInterpreter(); @Override InterpreterResult interpret(String st, InterpreterContext context); @Override void cancel(InterpreterContext context); @Override FormType getFormType(); @Override int getProgress(InterpreterContext context); @Override List<InterpreterCompletion> completion(String buf, int cursor); @Override Scheduler getScheduler(); Map<String, String> getEnv(); void setEnv(Map<String, String> env); void addEnv(Map<String, String> env); String getInterpreterRunner(); }
RemoteInterpreter extends Interpreter { static boolean isEnvString(String key) { if (key == null || key.length() == 0) { return false; } return key.matches("^[A-Z_0-9]*"); } RemoteInterpreter(Properties property, String sessionKey, String className,
      String interpreterRunner, String interpreterPath, String localRepoPath, int connectTimeout,
      int maxPoolSize, RemoteInterpreterProcessListener remoteInterpreterProcessListener,
      ApplicationEventListener appListener, String userName, Boolean isUserImpersonate,
      int outputLimit);  RemoteInterpreter(Properties property, String sessionKey, String className, String host,
      int port, String localRepoPath, int connectTimeout, int maxPoolSize,
      RemoteInterpreterProcessListener remoteInterpreterProcessListener,
      ApplicationEventListener appListener, String userName, Boolean isUserImpersonate,
      int outputLimit);  RemoteInterpreter(Properties property, String sessionKey, String className,
      String interpreterRunner, String interpreterPath, String localRepoPath,
      Map<String, String> env, int connectTimeout,
      RemoteInterpreterProcessListener remoteInterpreterProcessListener,
      ApplicationEventListener appListener, String userName, Boolean isUserImpersonate); @Override String getClassName(); RemoteInterpreterProcess getInterpreterProcess(); synchronized void init(); @Override void open(); @Override void close(); void closeInterpreter(); @Override InterpreterResult interpret(String st, InterpreterContext context); @Override void cancel(InterpreterContext context); @Override FormType getFormType(); @Override int getProgress(InterpreterContext context); @Override List<InterpreterCompletion> completion(String buf, int cursor); @Override Scheduler getScheduler(); Map<String, String> getEnv(); void setEnv(Map<String, String> env); void addEnv(Map<String, String> env); String getInterpreterRunner();  }