1 |
5c81df14
|
@havlijan17
|
package jdeserialize;
|
2 |
|
|
import java.io.*;
|
3 |
|
|
import java.util.*;
|
4 |
|
|
|
5 |
|
|
/**
|
6 |
|
|
* This represents a Class object (i.e. an instance of type Class) serialized in the
|
7 |
|
|
* stream.
|
8 |
|
|
*/
|
9 |
|
|
public class classobj extends contentbase {
|
10 |
|
|
/**
|
11 |
|
|
* The class description, including its name.
|
12 |
|
|
*/
|
13 |
|
|
public classdesc classdesc;
|
14 |
|
|
|
15 |
|
|
/**
|
16 |
|
|
* Constructor.
|
17 |
|
|
*
|
18 |
|
|
* @param handle the instance's handle
|
19 |
|
|
* @param cd the instance's class description
|
20 |
|
|
*/
|
21 |
|
|
public classobj(int handle, classdesc cd) {
|
22 |
|
|
super(contenttype.CLASS);
|
23 |
|
|
this.handle = handle;
|
24 |
|
|
this.classdesc = cd;
|
25 |
|
|
}
|
26 |
|
|
public String toString() {
|
27 |
|
|
return "[class " + jdeserialize.hex(handle) + ": " + classdesc.toString() + "]";
|
28 |
|
|
}
|
29 |
|
|
}
|