Class Script

    • Constructor Detail

      • Script

        public Script​(String type,
                      String name,
                      LinkedHashMap<String,​? extends Serializable> inputValues,
                      String extensions,
                      String body)
        Constructs a new Script.
        Parameters:
        type - the script type
        name - the optional script name
        inputValues - 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 order
        extensions - the optional script extensions
        body - the script body, i.e. the actual script
    • Method Detail

      • getType

        public String getType()
        Returns the script type.
        Returns:
        the script type
      • getName

        public String getName()
        Returns the script name or null.
        Returns:
        the script name or null
      • getInputValues

        public LinkedHashMap<String,​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. The returned map is ordered and consistent with the order of the parameters.
        Returns:
        the optional parameter values
      • getExtensions

        public String getExtensions()
        Returns the script extensions or null if the script did not contain any extensions.
        Returns:
        the script extensions or null
      • getBody

        public String getBody()
        Returns the script body or null if the script did not contain a body.
        Returns:
        script body or null
      • toString

        public String toString()
        Returns a valid string representation of this script declaration.
        Overrides:
        toString in class Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object