これを含むクラスがあるBase
場合:
public static Tab thisTab = new TabClass(5200, "thisItem");
public final static Item thisItem = new SomeClass(par1, par2);
クラスでは、TabClass
からの情報にアクセスできるようにしたいのですが、の名前を知らthisItem
ずにTabClass
thisItem
public TabClass(int par1, String par2) {
int num;
Base.(Here is where i need the item that par2 is the name of).ID = num;
}
par2
ID の値を探すときに、実際に使用できるように表すフィールドをどうにかして取得するにはどうすればよいでしょうか?