52938
|
1 |
/*
|
|
2 |
* Copyright (c) 2002-2018, the original author or authors.
|
|
3 |
*
|
|
4 |
* This software is distributable under the BSD license. See the terms of the
|
|
5 |
* BSD license in the documentation provided with this software.
|
|
6 |
*
|
|
7 |
* http://www.opensource.org/licenses/bsd-license.php
|
|
8 |
*/
|
|
9 |
package jdk.internal.org.jline.reader;
|
|
10 |
|
|
11 |
/**
|
|
12 |
* An extension of {@link ParsedLine} that, being aware of the quoting and escaping rules
|
|
13 |
* of the {@link org.jline.reader.Parser} that produced it, knows if and how a completion candidate
|
|
14 |
* should be escaped/quoted.
|
|
15 |
*
|
|
16 |
* @author Eric Bottard
|
|
17 |
*/
|
|
18 |
public interface CompletingParsedLine extends ParsedLine {
|
|
19 |
|
|
20 |
CharSequence escape(CharSequence candidate, boolean complete);
|
|
21 |
|
|
22 |
int rawWordCursor();
|
|
23 |
|
|
24 |
int rawWordLength();
|
|
25 |
|
|
26 |
}
|