Class Parameter
public class Parameter
extends Object
Represents the parameter of a function.
-
Constructor Summary
Constructors
Initializes an instance of a parameter.
Initializes an instance of a parameter.
Initializes an instance of a parameter.
Initializes an instance of a parameter.
Initializes an instance of a parameter.
Initializes an instance of a parameter.
Initializes an instance of a parameter.
Initializes an instance of a parameter.
-
Method Summary
final boolean
Gets the parameter can or can't accept reference.
Gets the default value of the parameter.
Gets the description of the parameter.
Gets the name of the parameter.
Gets the value type of the parameter.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Parameter
Initializes an instance of a parameter.
- Parameters:
valueType
- The value type of the parameter.
-
Parameter
Initializes an instance of a parameter.
- Parameters:
valueType
- The value type of the parameter.
acceptReference
- If this parameter can accept reference.
-
Parameter
Initializes an instance of a parameter.
- Parameters:
valueType
- The value type of the parameter.
defaultValue
- The default value of the parameter.
-
Parameter
Initializes an instance of a parameter.
- Parameters:
valueType
- The value type of the parameter.
defaultValue
- The default value of the parameter.
acceptReference
- If this parameter can accept reference.
-
Parameter
Initializes an instance of a parameter.
- Parameters:
name
- The name of the parameter.
description
- The description of the parameter.
valueType
- The value type of the parameter.
defaultValue
- The default value of the parameter.
-
Parameter
Initializes an instance of a parameter.
- Parameters:
name
- The name of the parameter.
description
- The description of the parameter.
valueType
- The value type of the parameter.
defaultValue
- The default value of the parameter.
acceptReference
- If this parameter can accept reference.
-
Parameter
public Parameter(FunctionValueType valueType,
boolean acceptReference,
boolean acceptCustomObjects)
Initializes an instance of a parameter.
- Parameters:
valueType
- The value type of the parameter.
acceptReference
- If this parameter can accept reference.
acceptCustomObjects
- Accepts custom objects if value type is FunctionValueType.Object
.
-
Parameter
Initializes an instance of a parameter.
- Parameters:
name
- The name of the function.
description
- The description of the parameter.
valueType
- The value type of the parameter.
defaultValue
- The default value of the parameter.
acceptReference
- If this parameter can accept reference.
acceptCustomObjects
- Accepts custom objects if value type is FunctionValueType.Object
.
-
Method Details
-
getName
Gets the name of the parameter.
-
getDescription
public final String getDescription()
Gets the description of the parameter.
-
getValueType
Gets the value type of the parameter.
-
getDefaultValue
public final Object getDefaultValue()
Gets the default value of the parameter.
-
getAcceptReference
public final boolean getAcceptReference()
Gets the parameter can or can't accept reference.