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设置了该位