Class: Android::Dex::ClassAccessFlag
- Inherits:
-
AccessFlag
- Object
- AccessFlag
- Android::Dex::ClassAccessFlag
- Defined in:
- lib/android/dex/access_flag.rb
Overview
access flag object for class in dex
Constant Summary collapse
- ACCESSORS =
[ {value:0x1, name:'public'}, {value:0x2, name:'private'}, {value:0x4, name:'protected'}, {value:0x8, name:'static'}, {value:0x10, name:'final'}, {value:0x20, name:'synchronized'}, {value:0x40, name:'volatile'}, {value:0x80, name:'transient'}, {value:0x100, name:'native'}, {value:0x200, name:'interface'}, {value:0x400, name:'abstract'}, {value:0x800, name:'strict'}, {value:0x1000, name:'synthetic'}, {value:0x2000, name:'annotation'}, {value:0x4000, name:'enum'}, #{value:0x8000, name:'unused'}, {value:0x10000, name:'constructor'}, {value:0x20000, name:'declared-synchronized'}, ]
Instance Attribute Summary
Attributes inherited from AccessFlag
Instance Method Summary collapse
-
#to_s ⇒ String
convert access flag to string.
Methods inherited from AccessFlag
Constructor Details
This class inherits a constructor from Android::Dex::AccessFlag
Instance Method Details
#to_s ⇒ String
convert access flag to string
39 40 41 |
# File 'lib/android/dex/access_flag.rb', line 39 def to_s ACCESSORS.select{|e| ((e[:value] & @flag) != 0) }.map{|e| e[:name] }.join(' ') end |