< prev index next >

src/hotspot/share/utilities/accessFlags.cpp

Print this page

24 
25 #include "oops/oop.inline.hpp"
26 #include "runtime/atomic.hpp"
27 #include "utilities/accessFlags.hpp"
28 
29 #if !defined(PRODUCT) || INCLUDE_JVMTI
30 
31 void AccessFlags::print_on(outputStream* st) const {
32   if (is_public      ()) st->print("public "      );
33   if (is_private     ()) st->print("private "     );
34   if (is_protected   ()) st->print("protected "   );
35   if (is_static      ()) st->print("static "      );
36   if (is_final       ()) st->print("final "       );
37   if (is_synchronized()) st->print("synchronized ");
38   if (is_volatile    ()) st->print("volatile "    );
39   if (is_transient   ()) st->print("transient "   );
40   if (is_native      ()) st->print("native "      );
41   if (is_interface   ()) st->print("interface "   );
42   if (is_abstract    ()) st->print("abstract "    );
43   if (is_synthetic   ()) st->print("synthetic "   );


44 }
45 
46 #endif // !PRODUCT || INCLUDE_JVMTI
47 
48 void accessFlags_init() {
49   assert(sizeof(AccessFlags) == sizeof(u2), "just checking size of flags");
50 }

24 
25 #include "oops/oop.inline.hpp"
26 #include "runtime/atomic.hpp"
27 #include "utilities/accessFlags.hpp"
28 
29 #if !defined(PRODUCT) || INCLUDE_JVMTI
30 
31 void AccessFlags::print_on(outputStream* st) const {
32   if (is_public      ()) st->print("public "      );
33   if (is_private     ()) st->print("private "     );
34   if (is_protected   ()) st->print("protected "   );
35   if (is_static      ()) st->print("static "      );
36   if (is_final       ()) st->print("final "       );
37   if (is_synchronized()) st->print("synchronized ");
38   if (is_volatile    ()) st->print("volatile "    );
39   if (is_transient   ()) st->print("transient "   );
40   if (is_native      ()) st->print("native "      );
41   if (is_interface   ()) st->print("interface "   );
42   if (is_abstract    ()) st->print("abstract "    );
43   if (is_synthetic   ()) st->print("synthetic "   );
44   if (is_identity_class()) st->print("identity "  );
45   if (!is_identity_class()) st->print("value "    );
46 }
47 
48 #endif // !PRODUCT || INCLUDE_JVMTI
49 
50 void accessFlags_init() {
51   assert(sizeof(AccessFlags) == sizeof(u2), "just checking size of flags");
52 }
< prev index next >