MCPcopy Create free account
hub / github.com/CodingGay/BlackDex / PrettyJavaAccessFlags

Function PrettyJavaAccessFlags

Bcore/src/main/cpp/dex/modifiers.cc:23–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21namespace art_lkchan {
22
23std::string PrettyJavaAccessFlags(uint32_t access_flags) {
24 std::string result;
25 if ((access_flags & kAccPublic) != 0) {
26 result += "public ";
27 }
28 if ((access_flags & kAccProtected) != 0) {
29 result += "protected ";
30 }
31 if ((access_flags & kAccPrivate) != 0) {
32 result += "private ";
33 }
34 if ((access_flags & kAccFinal) != 0) {
35 result += "final ";
36 }
37 if ((access_flags & kAccStatic) != 0) {
38 result += "static ";
39 }
40 if ((access_flags & kAccAbstract) != 0) {
41 result += "abstract ";
42 }
43 if ((access_flags & kAccInterface) != 0) {
44 result += "interface ";
45 }
46 if ((access_flags & kAccTransient) != 0) {
47 result += "transient ";
48 }
49 if ((access_flags & kAccVolatile) != 0) {
50 result += "volatile ";
51 }
52 if ((access_flags & kAccSynchronized) != 0) {
53 result += "synchronized ";
54 }
55 return result;
56}
57
58} // namespace art_lkchan

Callers 1

CheckFieldAccessFlagsMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected