Projekt

Obecné

Profil

Stáhnout (1.21 KB) Statistiky
| Větev: | Tag: | Revize:
1
package jdeserialize;
2
import java.util.*;
3

    
4
/**
5
 * Represents an instance of a non-enum, non-Class, non-ObjectStreamClass, 
6
 * non-array class, including the non-transient field values, for all classes in its
7
 * hierarchy and inner classes.
8
 */
9
public class instance extends contentbase {
10
    /**
11
     * Collection of field data, organized by class description.  
12
     */
13
    public Map<classdesc, Map<field, Object>> fielddata;
14

    
15
    /**
16
     * Class description for this instance.
17
     */
18
    public classdesc classdesc;
19

    
20
    /**
21
     * Constructor.
22
     */
23
    public instance() {
24
        super(contenttype.INSTANCE);
25
        this.fielddata = new HashMap<classdesc, Map<field, Object>>();
26
    }
27
    public String toString() {
28
        StringBuffer sb = new StringBuffer();
29
        sb.append(classdesc.name).append(' ').append("_h").append(jdeserialize.hex(handle))
30
            .append(" = r_").append(jdeserialize.hex(classdesc.handle)).append(";  ");
31
        //sb.append("// [instance " + jdeserialize.hex(handle) + ": " + jdeserialize.hex(classdesc.handle) + "/" + classdesc.name).append("]");
32
        return sb.toString();
33
    }
34
    /**
35
     * Object annotation data.
36
     */
37
    public Map<classdesc, List<content>> annotations;
38
}
(18-18/20)