com.sun.slamd.scripting.engine
Interface Argument

All Known Implementing Classes:
BooleanLiteral, IntegerLiteral, MethodCallInstruction, StringLiteral, Variable

public interface Argument

This interface defines a set of methods that are required to be implemented by any script element that may be a parameter to a script method.


Method Summary
 java.lang.String getArgumentAsString()
          Retrieves a string representation of this argument in a form appropriate for inclusion in a script.
 java.lang.String getArgumentType()
          Retrieves the name of the data type associated with this argument.
 Variable getArgumentValue()
          Retrieves the value of this argument.
 java.lang.String getValueAsString()
          Retrieves a string representation of the value of this argument.
 

Method Detail

getArgumentType

public java.lang.String getArgumentType()
Retrieves the name of the data type associated with this argument.

Returns:
The name of the data type associated with this argument.

getArgumentValue

public Variable getArgumentValue()
                          throws ScriptException
Retrieves the value of this argument.

Returns:
The value of this argument.
Throws:
ScriptException - If a problem occurs while determing the value of this argument.

getArgumentAsString

public java.lang.String getArgumentAsString()
Retrieves a string representation of this argument in a form appropriate for inclusion in a script.

Returns:
A string representation of this argument in a form appropriate for inclusion in a script.

getValueAsString

public java.lang.String getValueAsString()
                                  throws ScriptException
Retrieves a string representation of the value of this argument.

Returns:
A string representation of the value of this argument.
Throws:
ScriptException