com.sun.slamd.scripting.general
Class IntegerLiteral

java.lang.Object
  extended bycom.sun.slamd.scripting.general.IntegerLiteral
All Implemented Interfaces:
Argument

public class IntegerLiteral
extends java.lang.Object
implements Argument

This class defines an integer literal value, which is simply an integer value that occurs in a script file without being encapsulated in a variable.


Constructor Summary
IntegerLiteral(int intValue)
          Creates a new integer literal with the specified value.
 
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 integer literal.
 Variable getArgumentValue()
          Retrieves the value of this integer literal encapsulated in an integer variable.
 java.lang.String getValueAsString()
          Retrieves a string representation of the value of this argument.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IntegerLiteral

public IntegerLiteral(int intValue)
Creates a new integer literal with the specified value.

Parameters:
intValue - The value to use for the integer literal.
Method Detail

getArgumentType

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

Specified by:
getArgumentType in interface Argument
Returns:
The name of the data type associated with this integer literal.

getArgumentValue

public Variable getArgumentValue()
                          throws ScriptException
Retrieves the value of this integer literal encapsulated in an integer variable.

Specified by:
getArgumentValue in interface Argument
Returns:
The value of this integer literal encapsulated in an integer variable.
Throws:
ScriptException - If a problem occurs while determining the value of this Integer literal.

getArgumentAsString

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

Specified by:
getArgumentAsString in interface Argument
Returns:
A string representation of this argument in a form appropriate for inclusion in a script.

getValueAsString

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

Specified by:
getValueAsString in interface Argument
Returns:
A string representation of the value of this argument.