Tells whether a given access modifier is synthetic. A modifier is synthetic if it is marked with the ACC_SYNTHETIC flag (0x1000), as specified in JLS8, 4.6 Methods . @param mod The access modifier to check @return True if the access modifier is synthetic, false otherwise
(int mod)
| 94 | * @return True if the access modifier is synthetic, false otherwise |
| 95 | */ |
| 96 | public static boolean isSynthetic(int mod) { |
| 97 | return (mod & ACC_SYNTHETIC) != 0; |
| 98 | } |
| 99 | |
| 100 | /** |
| 101 | * Tells whether a given access modifier is volatile |