edu.cs.ai.kreator.ui.cli.wordcompletion
Class MultiElementCompletor

java.lang.Object
  extended by edu.cs.ai.kreator.ui.cli.wordcompletion.Completor
      extended by edu.cs.ai.kreator.ui.cli.wordcompletion.MultiElementCompletor
Direct Known Subclasses:
QueryCompletor

public class MultiElementCompletor
extends Completor


Field Summary
protected  java.util.List<Completor> completors
           
static org.apache.log4j.Logger LOG
           
 
Fields inherited from class edu.cs.ai.kreator.ui.cli.wordcompletion.Completor
parentCompletor
 
Constructor Summary
MultiElementCompletor()
           
MultiElementCompletor(java.util.List<Completor> completors)
           
 
Method Summary
 void add(Completor completor)
           
 void add(java.lang.String completion)
           
 java.util.List<Completion> complete(java.lang.String word, int offset)
           
static ConfigurationOption getLastCompletedConfigurationOption()
           
static DataFile getLastCompletedDataFile()
           
protected  Completor lastUsedCompletor()
           
 java.lang.String toString()
           
 
Methods inherited from class edu.cs.ai.kreator.ui.cli.wordcompletion.Completor
complete, setParent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

LOG

public static final org.apache.log4j.Logger LOG

completors

protected java.util.List<Completor> completors
Constructor Detail

MultiElementCompletor

public MultiElementCompletor()

MultiElementCompletor

public MultiElementCompletor(java.util.List<Completor> completors)
Method Detail

add

public void add(Completor completor)

add

public void add(java.lang.String completion)

lastUsedCompletor

protected Completor lastUsedCompletor()

getLastCompletedDataFile

public static DataFile getLastCompletedDataFile()

getLastCompletedConfigurationOption

public static ConfigurationOption getLastCompletedConfigurationOption()

complete

public java.util.List<Completion> complete(java.lang.String word,
                                           int offset)
Specified by:
complete in class Completor

toString

public java.lang.String toString()
Specified by:
toString in class Completor