Home | History | Annotate | Download | only in code

Lines Matching refs:flags

22  * Constants used as "access flags" in various places in classes, and
23 * related utilities. Although, at the rop layer, flags are generally
26 * identical to Java access flags, but {@code ACC_SUPER} isn't
106 /** flags defined on classes */
111 /** flags defined on inner classes */
117 /** flags defined on fields */
122 /** flags defined on methods */
129 /** indicates conversion of class flags */
132 /** indicates conversion of field flags */
135 /** indicates conversion of method flags */
146 * Returns a human-oriented string representing the given access flags,
149 * @param flags the flags
152 public static String classString(int flags) {
153 return humanHelper(flags, CLASS_FLAGS, CONV_CLASS);
157 * Returns a human-oriented string representing the given access flags,
160 * @param flags the flags
163 public static String innerClassString(int flags) {
164 return humanHelper(flags, INNER_CLASS_FLAGS, CONV_CLASS);
168 * Returns a human-oriented string representing the given access flags,
171 * @param flags the flags
174 public static String fieldString(int flags) {
175 return humanHelper(flags, FIELD_FLAGS, CONV_FIELD);
179 * Returns a human-oriented string representing the given access flags,
182 * @param flags the flags
185 public static String methodString(int flags) {
186 return humanHelper(flags, METHOD_FLAGS, CONV_METHOD);
191 * flags.
193 * @param flags the flags to check
196 public static boolean isPublic(int flags) {
197 return (flags & ACC_PUBLIC) != 0;
202 * flags.
204 * @param flags the flags to check
207 public static boolean isProtected(int flags) {
208 return (flags & ACC_PROTECTED) != 0;
213 * flags.
215 * @param flags the flags to check
218 public static boolean isPrivate(int flags) {
219 return (flags & ACC_PRIVATE) != 0;
224 * flags.
226 * @param flags the flags to check
229 public static boolean isStatic(int flags) {
230 return (flags & ACC_STATIC) != 0;
235 * the given flags.
237 * @param flags the flags to check
240 public static boolean isConstructor(int flags) {
241 return (flags & ACC_CONSTRUCTOR) != 0;
246 * the given flags.
248 * @param flags the flags to check
251 public static boolean isInterface(int flags) {
252 return (flags & ACC_INTERFACE) != 0;
257 * the given flags.
259 * @param flags the flags to check
262 public static boolean isSynchronized(int flags) {
263 return (flags & ACC_SYNCHRONIZED) != 0;
268 * flags.
270 * @param flags the flags to check
273 public static boolean isAbstract(int flags) {
274 return (flags & ACC_ABSTRACT) != 0;
279 * flags.
281 * @param flags the flags to check
284 public static boolean isNative(int flags) {
285 return (flags & ACC_NATIVE) != 0;
290 * flags.
292 * @param flags the flags to check
295 public static boolean isAnnotation(int flags) {
296 return (flags & ACC_ANNOTATION) != 0;
301 * on in the given flags.
303 * @param flags the flags to check
306 public static boolean isDeclaredSynchronized(int flags) {
307 return (flags & ACC_DECLARED_SYNCHRONIZED) != 0;
311 * Returns whether the flag {@code ACC_ENUM} is on in the given flags.
313 * @param flags the flags to check
316 public static boolean isEnum(int flags) {
317 return (flags & ACC_ENUM) != 0;
322 * access flags.
324 * @param flags the defined flags
326 * @param what what the flags represent (one of {@code CONV_*})
329 private static String humanHelper(int flags, int mask, int what) {
331 int extra = flags & ~mask;
333 flags &= mask;
335 if ((flags & ACC_PUBLIC) != 0) {
338 if ((flags & ACC_PRIVATE) != 0) {
341 if ((flags & ACC_PROTECTED) != 0) {
344 if ((flags & ACC_STATIC) != 0) {
347 if ((flags & ACC_FINAL) != 0) {
350 if ((flags & ACC_SYNCHRONIZED) != 0) {
357 if ((flags & ACC_VOLATILE) != 0) {
364 if ((flags & ACC_TRANSIENT) != 0) {
371 if ((flags & ACC_NATIVE) != 0) {
374 if ((flags & ACC_INTERFACE) != 0) {
377 if ((flags & ACC_ABSTRACT) != 0) {
380 if ((flags & ACC_STRICT) != 0) {
383 if ((flags & ACC_SYNTHETIC) != 0) {
386 if ((flags & ACC_ANNOTATION) != 0) {
389 if ((flags & ACC_ENUM) != 0) {
392 if ((flags & ACC_CONSTRUCTOR) != 0) {
395 if ((flags & ACC_DECLARED_SYNCHRONIZED) != 0) {