From e9eacd900ddfe26720b47629f611b5488a0189e6 Mon Sep 17 00:00:00 2001 From: Joel Dice Date: Tue, 1 Apr 2008 16:48:58 -0600 Subject: [PATCH] add Class.isInterface --- classpath/java/lang/Class.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/classpath/java/lang/Class.java b/classpath/java/lang/Class.java index b608f8dd38..c4300db1db 100644 --- a/classpath/java/lang/Class.java +++ b/classpath/java/lang/Class.java @@ -376,6 +376,10 @@ public final class Class { return flags; } + public boolean isInterface() { + return (flags & Modifier.INTERFACE) != 0; + } + public Class getSuperclass() { return super_; }