|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectfr.umlv.corosol.component.impl.VerboseJThread
public class VerboseJThread
The verbose implementation of the JThread interface.
| Field Summary |
|---|
| Fields inherited from interface fr.umlv.corosol.component.JThread |
|---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
| Constructor Summary | |
|---|---|
VerboseJThread()
The default constructor. |
|
| Method Summary | |
|---|---|
void |
execNextInstruction()
Executes the next instruction of the current method. |
JClass |
getCurrentClass()
Returns the class of the method being executed. |
JStackFrame |
getCurrentFrame()
Returns the current frame of the current method. |
JClassMethod |
getCurrentMethod()
Returns the method being executed. |
JavaStack |
getJavaStack()
Returns the Java Stack of this thread. |
JOperandInput |
getOperandInput()
Returns an input stream that reads the operands of the current bytecode instruction. |
int |
getPC()
Returns the program counter value. |
int |
getPriority()
Returns this thread's priority. |
boolean |
hasMoreInstructions()
Determines if there are instructions to execute. |
void |
incPC(int offset)
Increments the program counter with the specified offset value. |
void |
pushContext(JClassMethod method)
Pushes the next execution context for the execution of the specified method. |
void |
restoreContext()
Restores the thread to its previous execution context. |
void |
setPC(int pc)
Sets the program counter with the specified value. |
void |
setPriority(int newPriority)
Changes the priority of this thread. |
java.lang.String |
toString()
Returns a String representation of this thread. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public VerboseJThread()
| Method Detail |
|---|
public JavaStack getJavaStack()
getJavaStack in interface JThreadpublic int getPriority()
getPriority in interface JThreadsetPriority(int),
JThread.setPriority(int)public void setPriority(int newPriority)
setPriority in interface JThreadnewPriority - priority to set this thread to
java.lang.IllegalArgumentException - if the priority is not in
the range MIN_PRIORITY to MAX_PRIORITY.JThread.getPriority(),
JThread.MAX_PRIORITY,
JThread.NORM_PRIORITY,
JThread.MIN_PRIORITYpublic JClass getCurrentClass()
getCurrentClass in interface JThreadpublic JStackFrame getCurrentFrame()
getCurrentFrame in interface JThreadpublic JClassMethod getCurrentMethod()
getCurrentMethod in interface JThreadpublic int getPC()
getPC in interface JThreadpublic void setPC(int pc)
setPC in interface JThreadpc - the program counterpublic void incPC(int offset)
incPC in interface JThreadoffset - a value for increment the current program counterpublic void pushContext(JClassMethod method)
pushContext in interface JThreadmethod - the method to be executedpublic void restoreContext()
restoreContext in interface JThreadpublic boolean hasMoreInstructions()
hasMoreInstructions in interface JThread
public void execNextInstruction()
throws java.lang.Throwable
execNextInstruction in interface JThreadjava.lang.IllegalStateException - if there isn't instruction
to execute
java.lang.Throwable - if an exception occurs during executionpublic java.lang.String toString()
toString in class java.lang.Objectpublic JOperandInput getOperandInput()
getOperandInput in interface JThread
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||