Class Script
java.lang.Object
de.aristaflow.adept2.model.scripts.Script
- All Implemented Interfaces:
Serializable
Provides easy access to the components of a script declaration.
- Author:
- Patrick Schmidt
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionScript(String type, String name, LinkedHashMap<String, ? extends Serializable> inputValues, String extensions, String body) Constructs a newScript. -
Method Summary
Modifier and TypeMethodDescriptionbooleangetBody()Returns the script body ornullif the script did not contain a body.Returns the script extensions ornullif the script did not contain any extensions.Returns the optional parameter values;nullif the parameter parentheses were not present; empty if the parameter parentheses were present but didn't contain any parameters.getName()Returns the script name ornull.getType()Returns the script type.inthashCode()toString()Returns a valid string representation of this script declaration.
-
Constructor Details
-
Script
public Script(String type, String name, LinkedHashMap<String, ? extends Serializable> inputValues, String extensions, String body) Constructs a newScript.- Parameters:
type- the script typename- the optional script nameinputValues- the optional parameter values;nullif the parameter parentheses were not present; empty if the parameter parentheses were present but didn't contain any parameters; theLinkedHashMapis used to preserve the parameter orderextensions- the optional script extensionsbody- the script body, i.e. the actual script
-
-
Method Details
-
getType
Returns the script type.- Returns:
- the script type
-
getName
Returns the script name ornull.- Returns:
- the script name or
null
-
getInputValues
Returns the optional parameter values;nullif the parameter parentheses were not present; empty if the parameter parentheses were present but didn't contain any parameters. The returned map is ordered and consistent with the order of the parameters.- Returns:
- the optional parameter values
-
getExtensions
Returns the script extensions ornullif the script did not contain any extensions.- Returns:
- the script extensions or
null
-
getBody
Returns the script body ornullif the script did not contain a body.- Returns:
- script body or
null
-
toString
Returns a valid string representation of this script declaration. -
equals
-
hashCode
public int hashCode()
-