39 |
|
|
40 |
package gnu.classpath.jdwp.id; |
package gnu.classpath.jdwp.id; |
41 |
|
|
42 |
|
import gnu.classpath.jdwp.exception.InvalidClassException; |
43 |
|
|
44 |
import java.io.DataOutputStream; |
import java.io.DataOutputStream; |
45 |
import java.io.IOException; |
import java.io.IOException; |
46 |
|
|
70 |
} |
} |
71 |
|
|
72 |
/** |
/** |
73 |
|
* Gets the class associated with this ID |
74 |
|
* |
75 |
|
* @returns the class |
76 |
|
* @throws InvalidClassException if the class is not valid |
77 |
|
*/ |
78 |
|
public Class getType () |
79 |
|
throws InvalidClassException |
80 |
|
{ |
81 |
|
Class clazz = (Class) _reference.get (); |
82 |
|
if (clazz == null) |
83 |
|
throw new InvalidClassException (_id); |
84 |
|
|
85 |
|
return clazz; |
86 |
|
} |
87 |
|
|
88 |
|
/** |
89 |
* Outputs the reference type ID to the given output stream |
* Outputs the reference type ID to the given output stream |
90 |
* |
* |
91 |
* @param outStream the stream to which to write the data |
* @param outStream the stream to which to write the data |