Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package org.fife.ui.autocomplete;


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

Author(s):
Robert Futrell
Version:
1.0
 
public interface ParameterizedCompletion extends Completion {


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.
Returns the specified ParameterizedCompletion.Parameter.

Parameters:
index The index of the parameter to retrieve.
Returns:
The parameter.
See also:
getParamCount()
	public Parameter getParam(int index);


Returns the number of parameters this completion takes.

Returns:
The number of parameters this completion takes.
See also:
getParam(int)
	public int getParamCount();


A parameter passed to a parameterized Completion.

Author(s):
Robert Futrell
Version:
1.0
	public static class Parameter {
		private String name;
		private String type;
		private String desc;
		public Parameter(String typeString name) {
			this. = name;
			this. = type;
		}
		public String getDescription() {
			return ;
		}
		public String getName() {
			return ;
		}
		public String getType() {
			return ;
		}
		public void setDescription(String desc) {
			this. = desc;
		}
		public String toString() {
			StringBuffer sb = new StringBuffer();
			if (!=null) {
			}
			if (!=null) {
				if (!=null) {
					sb.append(' ');
				}
			}
			return sb.toString();
		}
	}
New to GrepCode? Check out our FAQ X