Overview | Package | Class | Deprecated | Index | Help
| Groovy Documentation
| FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## grails.build.interactive.completors
[Groovy] Class EscapingFileNameCompletor

    java.lang.Object
      jline.FileNameCompletor
          grails.build.interactive.completors.EscapingFileNameCompletor

    class EscapingFileNameCompletor
    extends jline.FileNameCompletor

JLine Completor that does file path matching like FileNameCompletor, but in addition it escapes whitespace in completions with the '\' character.

Authors:
  Peter Ledbrook

Since:
  2.0

Method Summary
`int` | `complete(java.lang.String buffer, int cursor, java.util.List candidates)`

Methods inherited from class jline.FileNameCompletor
jline.FileNameCompletor#complete(java.lang.String, int, java.util.List), jline.FileNameCompletor#matchFiles(java.lang.String, java.lang.String, [Ljava.io.File;, java.util.List), jline.FileNameCompletor#wait(), jline.FileNameCompletor#wait(long), jline.FileNameCompletor#wait(long, int), jline.FileNameCompletor#equals(java.lang.Object), jline.FileNameCompletor#toString(), jline.FileNameCompletor#hashCode(), jline.FileNameCompletor#getClass(), jline.FileNameCompletor#notify(), jline.FileNameCompletor#notifyAll()

Methods inherited from class java.lang.Object
java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#wait(long, int), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll()

Method Detail

### complete

    int complete(java.lang.String buffer, int cursor, java.util.List candidates)

  Gets FileNameCompletor to create a list of candidates and then inserts '\' before any whitespace characters in each of the candidates. If a candidate ends in a whitespace character, then that is not escaped.

Groovy Documentation