DevFaqJavaModelResolvingJa

Revision as of 21:30, 4 November 2009 by Admin (Talk | contribs)
(diff) ← Older revision | Current revision (diff) | Newer revision → (diff)

クラスの名前から型を調べるにはどうすれば良いですか? 例: "com.bar.Foo" の型を知るには?

注意: この FAQ 項目は NetBeans 4.x および 5.x にのみ適用されます。NetBeans 6 では Java 解析の基盤が新しいAPIに置き換えられました。


JavaClass clazz = (JavaClass) JavaModel.getDefaultExtent().getType().resolve("com.bar.Foo");



Not logged in. Log in, Register

By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo