Package org.fife.ui.autocomplete
Class ParameterizedCompletion.Parameter
java.lang.Object
org.fife.ui.autocomplete.ParameterizedCompletion.Parameter
- Enclosing interface:
- ParameterizedCompletion
A parameter passed to a parameterized
Completion.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the description of this completion.getName()Returns the name of this completion.getType()Returns the type of this parameter, as a string.Returns the object used to describe the type of this parameter.booleanvoidsetDescription(String desc) Sets the description of this completion.toString()
-
Constructor Details
-
Parameter
Constructor.- Parameters:
type- The type of this parameter. This may benullfor languages without specific types, dynamic typing, etc. Usually you'll pass a String for this value, but you may pass any object representing a type in your language, as long as itstoString()method returns a string representation of the type.name- The name of the parameter.
-
Parameter
Constructor.- Parameters:
type- The type of this parameter. This may benullfor languages without specific types, dynamic typing, etc. Usually you'll pass a String for this value, but you may pass any object representing a type in your language, as long as itstoString()method returns a string representation of the type.name- The name of the parameter.endParam- Whether this parameter is an "ending parameter;" that is, whether this parameter is at a logical "ending point" in the completion text. If the user types in a parameter that is an ending point, parameter completion mode terminates. Set this totruefor a trailing parameter after a function call's closing ')', for example.
-
-
Method Details
-
getDescription
Returns the description of this completion.- Returns:
- The description of this completion.
-
getName
Returns the name of this completion.- Returns:
- The name of this completion.
-
getType
Returns the type of this parameter, as a string.- Returns:
- The type of the parameter, or
nullfor none.
-
getTypeObject
Returns the object used to describe the type of this parameter.- Returns:
- The type object, or
nullfor none.
-
isEndParam
public boolean isEndParam()- Returns:
- Whether this parameter is an "ending parameter;" that is, whether this parameter is at a logical "ending point" in the completion text. If the user types in a parameter that is an ending point, parameter completion mode terminates.
-
setDescription
Sets the description of this completion.- Parameters:
desc- The description.- See Also:
-
toString
-