org.fife.ui.autocomplete
Interface ParameterizedCompletion

All Superinterfaces:
Completion
All Known Implementing Classes:
FunctionCompletion

public interface ParameterizedCompletion
extends Completion

A completion option that takes parameters, such as a function or method.

Version:
1.0
Author:
Robert Futrell

Nested Class Summary
static class ParameterizedCompletion.Parameter
          A parameter passed to a parameterized Completion.
 
Method Summary
 java.lang.String getDefinitionString()
          Returns the "definition string" for this completion.
 ParameterizedCompletion.Parameter getParam(int index)
          Returns the specified ParameterizedCompletion.Parameter.
 int getParamCount()
          Returns the number of parameters this completion takes.
 
Methods inherited from interface org.fife.ui.autocomplete.Completion
getAlreadyEntered, getInputText, getProvider, getReplacementText, getSummary, getToolTipText
 

Method Detail

getDefinitionString

public java.lang.String getDefinitionString()
Returns the "definition string" for this completion. For example, for the C "printf" function, this would return "int printf(const char *, ...)".

Returns:
The definition string.

getParam

public ParameterizedCompletion.Parameter getParam(int index)
Returns the specified ParameterizedCompletion.Parameter.

Parameters:
index - The index of the parameter to retrieve.
Returns:
The parameter.
See Also:
getParamCount()

getParamCount

public int getParamCount()
Returns the number of parameters this completion takes.

Returns:
The number of parameters this completion takes.
See Also:
getParam(int)