public class Script
extends java.lang.Object
implements java.io.Serializable
| Constructor and Description |
|---|
Script(java.lang.String type,
java.lang.String name,
java.util.LinkedHashMap<java.lang.String,? extends java.io.Serializable> inputValues,
java.lang.String extensions,
java.lang.String body)
Constructs a new
Script. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getBody()
Returns the script body or
null if the script did not contain a
body. |
java.lang.String |
getExtensions()
Returns the script extensions or
null if the script did not contain any extensions. |
java.util.LinkedHashMap<java.lang.String,java.io.Serializable> |
getInputValues()
Returns the optional parameter values;
null if the parameter parentheses were not
present; empty if the parameter parentheses were present but didn't contain any parameters. |
java.lang.String |
getName()
Returns the script name or
null. |
java.lang.String |
getType()
Returns the script type.
|
int |
hashCode() |
java.lang.String |
toString()
Returns a valid string representation of this script declaration.
|
public Script(java.lang.String type,
java.lang.String name,
java.util.LinkedHashMap<java.lang.String,? extends java.io.Serializable> inputValues,
java.lang.String extensions,
java.lang.String body)
Script.type - the script typename - the optional script nameinputValues - the optional parameter values; null if the parameter
parentheses were not present; empty if the parameter parentheses were present but
didn't contain any parameters; the LinkedHashMap is used to preserve the
parameter orderextensions - the optional script extensionsbody - the script body, i.e. the actual scriptpublic java.lang.String getType()
public java.lang.String getName()
null.nullpublic java.util.LinkedHashMap<java.lang.String,java.io.Serializable> getInputValues()
null if 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.public java.lang.String getExtensions()
null if the script did not contain any extensions.nullpublic java.lang.String getBody()
null if the script did not contain a
body.nullpublic java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object