mardi 21 avril 2015

How can I determine the number and type of metaobjects created?

As far as I've seen, metaobjects are of type: Type-Info Data-Info and ObjectCreator.
In a java aplication, how does one determine the number and type of metaobjects created ?
Take for instance the following sample code:

public class Dtest extends Btest
{
    public int aPublicInt;
    private int aPrivateInt;
    public Dtest(int x)
    {
        // …    
    }

    private void OpD1(String s) {
        // …
    }

    public String OpD2(int x){
        // …
    }


}

Type-info: Dtest object, Class object
Data-Info: Integer object aPublicInt , Integer object aPrivateInt, void Object OpD1 , String Object OpD2
ObjectCreator Dtest

Is this correct ?

Could anyne also explain to me what connections there are between the metaobjects ?





Aucun commentaire:

Enregistrer un commentaire