Object ele=a.get(i);
if(ele instanceof java.lang.Integer){//cast to integer:
print("found Int");
}else{ //cast to string:
print("found: "+ele.getClass());
}
//prints: found: class com.cycling74.max.Atom$IntAtom
これはコードのより大きなチャンクの一部ですが、これは関連する部分です。Cycling74で Atom クラスの要素の型を確認する方法を知る必要があります。
if(ele instanceof com.cycling74.max.Atom$IntAtom)
//ERROR: com.cycling74.max.Atom.IntAtom has private access in com.cycling74.max.Atom
何か案は??どうもありがとう - これは本当に私の頭をやっています!!