0

これを含むクラスがあるBase場合:

public static Tab thisTab = new TabClass(5200, "thisItem");
public final static Item thisItem = new SomeClass(par1, par2);

クラスでは、TabClassからの情報にアクセスできるようにしたいのですが、の名前を知らthisItemずにTabClassthisItem

public TabClass(int par1, String par2) {
    int num;
    Base.(Here is where i need the item that par2 is the name of).ID = num;
}

par2ID の値を探すときに、実際に使用できるように表すフィールドをどうにかして取得するにはどうすればよいでしょうか?

4

1 に答える 1