|
||||||||||
| 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.InstructionBlock
This class defines a generic instruction block, which is simply a container that holds zero or more instructions to be executed as a single block.
| Constructor Summary | |
InstructionBlock(int lineNumber,
Instruction[] instructions)
Creates an instruction block that will execute the specified set of instructions. |
|
| 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. |
Instruction[] |
getInstructions()
Retrieves the set of instructions that will be executed in this instruction block. |
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 InstructionBlock(int lineNumber,
Instruction[] instructions)
lineNumber - The line number of the script on which this
instruction block begins.instructions - The set of instructions to include in this
instruction block.| Method Detail |
public Instruction[] getInstructions()
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 toString(int indent)
toString in class Instructionindent - The number of spaces to indent the output.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||