|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.slamd.scripting.engine.Instruction
com.sun.slamd.scripting.engine.MethodCallInstruction
This class defines an instruction that consists of calling a method associated with a variable.
| Constructor Summary | |
MethodCallInstruction(int lineNumber,
Variable targetVariable,
java.lang.String methodName,
int methodNumber,
Argument[] arguments)
Creates a new method call instruction. |
|
| Method Summary | |
void |
debugExecute(JobClass jobThread)
Performs the function associated with this instruction, writing debug information about its execution to the client's message writer using the writeVerbose method. |
void |
execute(JobClass jobThread)
Performs the function associated with this instruction. |
java.lang.String |
getArgumentAsString()
Retrieves a string representation of this argument in a form appropriate for inclusion in a script. |
Argument[] |
getArguments()
Retrieves the set of arguments that will be passed to the method. |
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 |
getMethodName()
Retrieves the name of the method that will be executed. |
int |
getMethodNumber()
Retrieves the method number for this method call. |
Variable |
getReturnValue()
Retrieves the value returned from executing the method. |
Variable |
getTargetVariable()
Retrieves the variable on which the instruction will be performed. |
java.lang.String |
getValueAsString()
Retrieves a string representation of the value of this argument. |
java.lang.String |
toString(int indent)
Retrieves a string representation of this instruction as could be found in a script file. |
| Methods inherited from class com.sun.slamd.scripting.engine.Instruction |
getLineNumber, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public MethodCallInstruction(int lineNumber,
Variable targetVariable,
java.lang.String methodName,
int methodNumber,
Argument[] arguments)
lineNumber - The line number of the script on which this method
call begins.targetVariable - The variable on which the instruction will be
performed.methodName - The name of the method to execute.methodNumber - The method number for this method call.arguments - The set of arguments to pass to the method.| Method Detail |
public Variable getTargetVariable()
public java.lang.String getMethodName()
public int getMethodNumber()
public Argument[] getArguments()
public Variable getReturnValue()
public void execute(JobClass jobThread)
throws ScriptException
execute in class InstructionjobThread - The job thread that will be executing the script.
ScriptException - If a problem occurs while processing this
instruction.
public void debugExecute(JobClass jobThread)
throws ScriptException
writeVerbose method.
debugExecute in class InstructionjobThread - The job thread that will be executing the script.
ScriptException - If a problem occurs while processing this
instruction.public java.lang.String getArgumentType()
getArgumentType in interface Argument
public Variable getArgumentValue()
throws ScriptException
getArgumentValue in interface ArgumentScriptException - If a problem occurs while determing the value of
this argument.public java.lang.String toString(int indent)
toString in class Instructionindent - The number of spaces to indent the output.
public java.lang.String getArgumentAsString()
getArgumentAsString in interface Argument
public java.lang.String getValueAsString()
throws ScriptException
getValueAsString in interface ArgumentScriptException - If a problem occurs while trying to determine the
value for this argument.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||