add Class.isInterface

This commit is contained in:
Joel Dice 2008-04-01 16:48:58 -06:00
parent c9ef443944
commit e9eacd900d

View File

@ -376,6 +376,10 @@ public final class Class <T> {
return flags; return flags;
} }
public boolean isInterface() {
return (flags & Modifier.INTERFACE) != 0;
}
public Class getSuperclass() { public Class getSuperclass() {
return super_; return super_;
} }