CompletionVisitor visitor = new CompletionVisitor(); try { visitCommandLine(partial, visitor); } catch(SyntaxError ex) { throw new CompletionException(ex.getMessage()); } return visitor.getCompletedLine(); }
CompletionVisitor visitor = new CompletionVisitor(); try { visitCommandLine(partial, visitor); } catch (SyntaxErrorException ex) { throw new CompletionException(ex.getMessage()); } return visitor.getCompletedLine(); }
	public String complete(CommandLine partial) throws CompletionException {		CompletionVisitor visitor = new CompletionVisitor();		try {			visitCommandLine(partial, visitor);		} catch(SyntaxError ex) {			throw new CompletionException(ex.getMessage());		}		return visitor.getCompletedLine();	}