Projekt

Obecné

Profil

Stáhnout (682 Bajtů) Statistiky
| Větev: | Tag: | Revize:
1
package jdeserialize;
2

    
3
/**
4
 * This represents a Class object (i.e. an instance of type Class) serialized in the
5
 * stream.
6
 */
7
public class classobj extends contentbase {
8
    /**
9
     * The class description, including its name.
10
     */
11
    public classdesc classdesc;
12

    
13
    /**
14
     * Constructor.
15
     *
16
     * @param handle the instance's handle
17
     * @param cd the instance's class description
18
     */
19
    public classobj(int handle, classdesc cd) {
20
        super(contenttype.CLASS);
21
        this.handle = handle;
22
        this.classdesc = cd;
23
    }
24
    public String toString() {
25
        return "[class " + jdeserialize.hex(handle) + ": " + classdesc.toString() + "]";
26
    }
27
}
28

    
(10-10/20)