| java.lang.Object java.util.Date org.eclipse.debug.jdi.tests.program.MainClass
All known Subclasses: org.eclipse.debug.jdi.tests.program.OtherClass,
MainClass | public class MainClass extends Date implements Runnable,Printable(Code) | | Main class for target VM tests.
This class is intended to be run by the target VM.
It will use other classes in this package, and it will create and terminate
threads as a regular program would do.
WARNING, WARNING:
Tests in org.eclipse.debug.jdi.tests assume the content of this class,
as well as its behavior. So if this class or one of the types in this
package is changed, the corresponding tests must also be changed.
|
fBool | public boolean fBool(Code) | | A boolean value initialized to false
|
fDoubleArray | public static double[] fDoubleArray(Code) | | A pre-initialized array of doubles
|
fEventType | public static String fEventType(Code) | | The name of an event type
|
fInt | public static int fInt(Code) | | An integer value
|
fMainThread | public static Thread fMainThread(Code) | | A Thread object representing the main thread
|
fString | public static String fString(Code) | | A string initialized to 'hello world'
|
MainClass | public MainClass()(Code) | | Constructor
|
MainClass | public MainClass(int i, Object o1, Object o2)(Code) | | Constructor
Used to test ClassType.newInstance
See Also: ClassTypeTest Parameters: i - Parameters: o1 - Parameters: o2 - |
argValues | public void argValues(String str, int num, Object obj)(Code) | | suspend on the first line of the method to get the argument values from the stackframe.
used in testing the new 1.6VM capability to get argument values when no debugging info is available.
Parameters: str - a string Parameters: num - a number Parameters: obj - an object since: 3.3 |
foo | public String foo()(Code) | | dump out a string
a String since: 3.3 |
getBoolean | public boolean getBoolean()(Code) | | Returns true.
true |
getInt | public int getInt()(Code) | | Returns 20
20 |
getLong | public long getLong()(Code) | | Returns 123L.
123 |
printAndSignal | public synchronized void printAndSignal()(Code) | | Prints to System.out and throws an exception to indicate readiness
|
printNumber | public int printNumber(OutputStream out, int num)(Code) | | Prints out a specified integer. This method is used in the force early return tests to ensure we
can specify a different, type compatible return value
Parameters: out - a stream to print out to Parameters: num - the number we want to print and return the specified number parameter, just pass it through since: 3.3 |
sync | public synchronized void sync()(Code) | | make a sync'd method so we can stop in it to gather monitor information
since: 3.3 |
|
|