< prev index next >

src/hotspot/share/ci/ciFlags.cpp

Print this page

24 
25 #include "precompiled.hpp"
26 #include "ci/ciFlags.hpp"
27 
28 // ciFlags
29 //
30 // This class represents klass or method flags
31 
32 // ------------------------------------------------------------------
33 // ciFlags::print_klass_flags
34 void ciFlags::print_klass_flags(outputStream* st) {
35   if (is_public()) {
36     st->print("public");
37   } else {
38     st->print("DEFAULT_ACCESS");
39   }
40 
41   if (is_final()) {
42     st->print(",final");
43   }
44   if (is_super()) {
45     st->print(",super");
46   }
47   if (is_interface()) {
48     st->print(",interface");
49   }
50   if (is_abstract()) {
51     st->print(",abstract");
52   }
53 }
54 
55 // ------------------------------------------------------------------
56 // ciFlags::print_member_flags
57 void ciFlags::print_member_flags(outputStream* st) {
58   if (is_public()) {
59     st->print("public");
60   } else if (is_private()) {
61     st->print("private");
62   } else if (is_protected()) {
63     st->print("protected");
64   } else {
65     st->print("DEFAULT_ACCESS");
66   }

24 
25 #include "precompiled.hpp"
26 #include "ci/ciFlags.hpp"
27 
28 // ciFlags
29 //
30 // This class represents klass or method flags
31 
32 // ------------------------------------------------------------------
33 // ciFlags::print_klass_flags
34 void ciFlags::print_klass_flags(outputStream* st) {
35   if (is_public()) {
36     st->print("public");
37   } else {
38     st->print("DEFAULT_ACCESS");
39   }
40 
41   if (is_final()) {
42     st->print(",final");
43   }



44   if (is_interface()) {
45     st->print(",interface");
46   }
47   if (is_abstract()) {
48     st->print(",abstract");
49   }
50 }
51 
52 // ------------------------------------------------------------------
53 // ciFlags::print_member_flags
54 void ciFlags::print_member_flags(outputStream* st) {
55   if (is_public()) {
56     st->print("public");
57   } else if (is_private()) {
58     st->print("private");
59   } else if (is_protected()) {
60     st->print("protected");
61   } else {
62     st->print("DEFAULT_ACCESS");
63   }
< prev index next >