aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/javassist/Modifier.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/javassist/Modifier.java')
-rw-r--r--src/main/javassist/Modifier.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/main/javassist/Modifier.java b/src/main/javassist/Modifier.java
index 3ee34643..fd73c3b3 100644
--- a/src/main/javassist/Modifier.java
+++ b/src/main/javassist/Modifier.java
@@ -170,6 +170,14 @@ public class Modifier {
}
/**
+ * Returns true if the modifiers include the <tt>varargs</tt>
+ * (variable number of arguments) modifier.
+ */
+ public static boolean isVarArgs(int mod) {
+ return (mod & VARARGS) != 0;
+ }
+
+ /**
* Truns the public bit on. The protected and private bits are
* cleared.
*/