class BufferEntryReference

Public Class Methods

new(template) click to toggle source
# File template.rb, line 1433
def initialize(template)

  @template = template

  @level = 0;

end

Public Instance Methods

[](arg) click to toggle source
# File template.rb, line 1438
def [](arg)

  @level = arg;

  self

end
bits(min, max) click to toggle source
# File template.rb, line 1451
def bits(min, max)

  @template.newEntryReference @level, min, max

end
call(min, max) click to toggle source
# File template.rb, line 1447
def call(min, max)

  bits(min, max)

end
java_object() click to toggle source
# File template.rb, line 1443
def java_object

  @template.newEntryReference @level

end
method_missing(meth, *args) click to toggle source
# File template.rb, line 1455
def method_missing(meth, *args)

  if args.count != 0 and args.count != 2

    raise "Wrong argument count: #{args.count}. Must be 0 or 2."

  end



  if args.count == 2

    @template.newEntryFieldReference @level, meth.to_s, args[0], args[1]

  else

    @template.newEntryFieldReference @level, meth.to_s

  end

end