class Android::Dex::DexObject::EncodedMethod

encoded_method @see source.android.com/devices/tech/dalvik/dex-format.html @!attribute [r] code_item

@return [CodeItem] code_item of the method

Public Instance Methods

code_item() click to toggle source
# File lib/android/dex/dex_object.rb, line 358
def code_item
  # description of code_off in code_data_item.
  #   offset from the start of the file to the code structure for this method,
  #   or 0 if this method is either abstract or native.
  unless @params[:code_off] == 0
    @code_item ||= CodeItem.new(@data, @params[:code_off])
  else
    nil
  end
end

Private Instance Methods

parse() click to toggle source
# File lib/android/dex/dex_object.rb, line 370
def parse
  @params[:method_idx_diff] = read_uleb
  @params[:access_flags] = read_uleb
  @params[:code_off] = read_uleb
end