Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
各クラスのメソッド(MethodDeclaration)を取得しています。
今、私はメソッドの戻り型が抽象であるかどうか知りたいですか?
どうやってやるの ?
メソッドを取得するためにリフレクションを使用していると思いますか?
Javaを使用していると仮定して、getModifiersを参照し、ビットがMethod.Abstractに設定されているかどうかを確認します。