Lines Matching defs:mod

64      * @param   mod a set of modifiers
65 * @return {@code true} if {@code mod} includes the
68 public static boolean isPublic(int mod) {
69 return (mod & PUBLIC) != 0;
76 * @param mod a set of modifiers
77 * @return {@code true} if {@code mod} includes the
80 public static boolean isPrivate(int mod) {
81 return (mod & PRIVATE) != 0;
88 * @param mod a set of modifiers
89 * @return {@code true} if {@code mod} includes the
92 public static boolean isProtected(int mod) {
93 return (mod & PROTECTED) != 0;
100 * @param mod a set of modifiers
101 * @return {@code true} if {@code mod} includes the
104 public static boolean isStatic(int mod) {
105 return (mod & STATIC) != 0;
112 * @param mod a set of modifiers
113 * @return {@code true} if {@code mod} includes the
116 public static boolean isFinal(int mod) {
117 return (mod & FINAL) != 0;
124 * @param mod a set of modifiers
125 * @return {@code true} if {@code mod} includes the
128 public static boolean isSynchronized(int mod) {
129 return (mod & SYNCHRONIZED) != 0;
136 * @param mod a set of modifiers
137 * @return {@code true} if {@code mod} includes the
140 public static boolean isVolatile(int mod) {
141 return (mod & VOLATILE) != 0;
148 * @param mod a set of modifiers
149 * @return {@code true} if {@code mod} includes the
152 public static boolean isTransient(int mod) {
153 return (mod & TRANSIENT) != 0;
160 * @param mod a set of modifiers
161 * @return {@code true} if {@code mod} includes the
164 public static boolean isNative(int mod) {
165 return (mod & NATIVE) != 0;
172 * @param mod a set of modifiers
173 * @return {@code true} if {@code mod} includes the
176 public static boolean isInterface(int mod) {
177 return (mod & INTERFACE) != 0;
184 * @param mod a set of modifiers
185 * @return {@code true} if {@code mod} includes the
188 public static boolean isAbstract(int mod) {
189 return (mod & ABSTRACT) != 0;
196 * @param mod a set of modifiers
197 * @return {@code true} if {@code mod} includes the
200 public static boolean isStrict(int mod) {
201 return (mod & STRICT) != 0;
231 * @param mod a set of modifiers
233 * represented by {@code mod}
235 public static String toString(int mod) {
239 if ((mod & PUBLIC) != 0) sb.append("public ");
240 if ((mod & PROTECTED) != 0) sb.append("protected ");
241 if ((mod & PRIVATE) != 0) sb.append("private ");
244 if ((mod & ABSTRACT) != 0) sb.append("abstract ");
245 if ((mod & STATIC) != 0) sb.append("static ");
246 if ((mod & FINAL) != 0) sb.append("final ");
247 if ((mod & TRANSIENT) != 0) sb.append("transient ");
248 if ((mod & VOLATILE) != 0) sb.append("volatile ");
249 if ((mod & SYNCHRONIZED) != 0) sb.append("synchronized ");
250 if ((mod & NATIVE) != 0) sb.append("native ");
251 if ((mod & STRICT) != 0) sb.append("strictfp ");
252 if ((mod & INTERFACE) != 0) sb.append("interface ");
345 static boolean isSynthetic(int mod) {
346 return (mod & SYNTHETIC) != 0;