private static int getFieldModifiers ( VariableElement var ) { int modifiers = ElementUtil . fromModifierSet ( var . getModifiers ( ) ) ; if ( ElementUtil . isSynthetic ( var ) ) { modifiers |= ElementUtil . ACC_SYNTHETIC ; } if ( ElementUtil . isEnumConstant ( var ) ) { modifiers |= ElementUtil . ACC_ENUM ; } return modifiers ; }
Returns the modifiers for a specified field including internal ones . All method modifiers are defined in the JVM specification table 4 . 4 .