diff options
author | chiba <chiba@30ef5769-5b8d-40dd-aea6-55b5d6557bb3> | 2005-11-09 06:11:13 +0000 |
---|---|---|
committer | chiba <chiba@30ef5769-5b8d-40dd-aea6-55b5d6557bb3> | 2005-11-09 06:11:13 +0000 |
commit | 724b9b93c33f7f9c0fb6628261f43fe960014c17 (patch) | |
tree | 43e9de9785bf0f35bc193642fcfc957382bf32bd /src/main/javassist/Modifier.java | |
parent | 5ff19d5945cda4b3d554e79d726e8a19de9c5766 (diff) | |
download | javassist-724b9b93c33f7f9c0fb6628261f43fe960014c17.tar.gz javassist-724b9b93c33f7f9c0fb6628261f43fe960014c17.zip |
updated Modifier class.
git-svn-id: http://anonsvn.jboss.org/repos/javassist/trunk@221 30ef5769-5b8d-40dd-aea6-55b5d6557bb3
Diffstat (limited to 'src/main/javassist/Modifier.java')
-rw-r--r-- | src/main/javassist/Modifier.java | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/main/javassist/Modifier.java b/src/main/javassist/Modifier.java index e41c7259..7b4dbdc8 100644 --- a/src/main/javassist/Modifier.java +++ b/src/main/javassist/Modifier.java @@ -66,6 +66,14 @@ public class Modifier { } /** + * Returns true if the modifiers do not include either + * <tt>public</tt>, <tt>protected</tt>, or <tt>private</tt>. + */ + public static boolean isPackage(int mod) { + return (mod & (PUBLIC | PRIVATE | PROTECTED)) == 0; + } + + /** * Returns true if the modifiers include the <tt>static</tt> * modifier. */ |