class SmaliMethod
Constants
- PARAMETER_INDIVIDUATOR
- PARAMETER_ISOLATOR
Attributes
body[RW]
class[R]
descriptor[R]
modified[RW]
name[R]
parameters[R]
return_type[R]
signature[R]
Public Class Methods
new(class_name, signature, body = nil)
click to toggle source
# File lib/dex-oracle/smali_method.rb, line 8 def initialize(class_name, signature, body = nil) @modified = false @class = class_name @name = signature[/[^\(]+/] @body = body @return_type = signature[/[^\)$]+$/] @descriptor = "#{class_name}->#{signature}" @signature = signature @parameters = [] parameter_string = signature[PARAMETER_ISOLATOR] return if parameter_string.nil? parameter_string.scan(PARAMETER_INDIVIDUATOR).each { |m| @parameters << m.first } end
Public Instance Methods
==(other)
click to toggle source
# File lib/dex-oracle/smali_method.rb, line 26 def ==(other) other.class == self.class && other.state == state end
state()
click to toggle source
# File lib/dex-oracle/smali_method.rb, line 30 def state [@name, @class, @descriptor, @parameters, @return_type, @modified, @body] end
to_s()
click to toggle source
# File lib/dex-oracle/smali_method.rb, line 22 def to_s @descriptor end