protected void expectNotNull() { Token t = next(); if (t == null) { throw new EOFError(tz.line, tz.column, "unexpected EOT", getMissing(), "0"); } push(t); }
protected Token expect(String str) { Token start = next(); if (start == null) { throw new EOFError(tz.line, tz.column, "unexpected EOT looking for '" + str + "", getMissing(), str); } if (!Token.eq(str, start)) { throw new SyntaxError(start.line, start.column, "expected '" + str + "' but got '" + start.toString() + "'"); } return start; }
@Override public Path currentDir() { return isSet(CommandSession.OPTION_NO_GLOB, false) ? null : session().currentDir(); }
public void stop() { synchronized (commandProcessor) { closed = true; commandProcessor.stop(); } }
protected Token expect(String str) { Token start = next(); if (start == null) { throw new EOFError(tz.line, tz.column, "unexpected EOT looking for '" + str + "", getMissing(), str); } if (!Token.eq(str, start)) { throw new SyntaxError(start.line, start.column, "expected '" + str + "' but got '" + start.toString() + "'"); } return start; }
protected void expectNotNull() { Token t = next(); if (t == null) { throw new EOFError(tz.line, tz.column, "unexpected EOT", getMissing(), "0"); } push(t); }
@Override public Path currentDir() { return isSet(CommandSession.OPTION_NO_GLOB, false) ? null : session().currentDir(); }
protected void expectNotNull() { Token t = next(); if (t == null) { throw new EOFError(tz.line, tz.column, "unexpected EOT", getMissing(), "0"); } push(t); }
protected void expectNotNull() { Token t = next(); if (t == null) { throw new EOFError(tz.line, tz.column, "unexpected EOT", getMissing(), "0"); } push(t); }