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.
だから私は AnnotationProcessor を書いていて、プロセスメソッドでTypeElementが与えられます。TypeElement がインターフェイスかクラスかを確認する必要があります。どうすればこれを行うことができますか?
JavaDoc の答えを完全に見逃していました。
これは
TypeElement.getKind() == ElementKind.INTERFACE
また
TypeElement.getKind().isInterface()