Class: Java::OrgJrubyAst::VCallNode

Inherits:
Object
  • Object
show all
Defined in:
lib/duby/old/compiler_old.rb,
lib/duby/old/typer_old.rb,
lib/duby/old/mapper.rb

Instance Method Summary collapse

Instance Method Details

#compile(builder) ⇒ Object



737
738
739
740
741
742
743
744
745
# File 'lib/duby/old/compiler_old.rb', line 737

def compile(builder)
  if builder.static
    builder.invokestatic builder.this, name, builder.static_signature(name, [])
  else
    builder.aload 0

    builder.invokevirtual builder.this, name, builder.instance_signature(name, [])
  end
end

#mapped_name(builder) ⇒ Object



65
66
67
68
# File 'lib/duby/old/mapper.rb', line 65

def mapped_name(builder)
  # TODO map names for the local type?
  name
end

#type(builder) ⇒ Object



153
154
155
156
157
158
159
# File 'lib/duby/old/typer_old.rb', line 153

def type(builder)
  @type ||= if builder.static
    builder.static_signature(name, [])[0]
  else
    builder.instance_signature(name, [])[0]
  end
end