org.twdata.maven.cli
Class CommandsCompletor

java.lang.Object
  extended by org.twdata.maven.cli.CommandsCompletor
All Implemented Interfaces:
jline.Completor

public class CommandsCompletor
extends java.lang.Object
implements jline.Completor


Constructor Summary
CommandsCompletor(java.util.Collection<java.lang.String> commands)
           
 
Method Summary
 int complete(java.lang.String buffer, int cursor, java.util.List candidates)
          this method tries to match : the full buffer the last token
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CommandsCompletor

public CommandsCompletor(java.util.Collection<java.lang.String> commands)
Method Detail

complete

public int complete(java.lang.String buffer,
                    int cursor,
                    java.util.List candidates)
this method tries to match :

Specified by:
complete in interface jline.Completor


Copyright © 2009. All Rights Reserved.