public class FunctionParameter extends Object implements Serializable
Constructor and Description |
---|
FunctionParameter(Value.Type valueType,
String name,
boolean optional,
String description)
Creates a new function parameter.
|
Modifier and Type | Method and Description |
---|---|
String |
getDescription()
Returns the description of the argument.
|
String |
getName()
Returns the name of the argument.
|
Value.Type |
getValueType()
Returns the value type of the argument.
|
boolean |
isOptional()
Returns whether the parameter is optional.
|
String |
toString()
Returns a string representation of the parameter.
|
public FunctionParameter(Value.Type valueType, String name, boolean optional, String description)
name
- the name of the argumentoptional
- whether the parameter is optionaldescription
- the description of the argumentpublic Value.Type getValueType()
public boolean isOptional()
public String getDescription()