jline

Class MultiCompletor

public class MultiCompletor extends Object implements Completor

A completor that contains multiple embedded completors. This differs from the ArgumentCompletor, in that the nested completors are dispatched individually, rather than delimited by arguments.

Author: Marc Prud'hommeaux

Constructor Summary
MultiCompletor()
Construct a MultiCompletor with no embedded completors.
MultiCompletor(List completors)
Construct a MultiCompletor with the specified list of Completor instances.
MultiCompletor(Completor[] completors)
Construct a MultiCompletor with the specified Completor instances.
Method Summary
intcomplete(String buffer, int pos, List cand)
Completor[]getCompletors()
voidsetCompletors(Completor[] completors)

Constructor Detail

MultiCompletor

public MultiCompletor()
Construct a MultiCompletor with no embedded completors.

MultiCompletor

public MultiCompletor(List completors)
Construct a MultiCompletor with the specified list of Completor instances.

MultiCompletor

public MultiCompletor(Completor[] completors)
Construct a MultiCompletor with the specified Completor instances.

Method Detail

complete

public int complete(String buffer, int pos, List cand)

getCompletors

public Completor[] getCompletors()

setCompletors

public void setCompletors(Completor[] completors)
Copyright © 2002-2010. All Rights Reserved.