class BufferEntryReference

Public Class Methods

new(template) click to toggle source
# File template.rb, line 1385
def initialize(template)
  @template = template
  @level = 0;
end

Public Instance Methods

[](arg) click to toggle source
# File template.rb, line 1390
def [](arg)
  @level = arg;
  self
end
bits(min, max) click to toggle source
# File template.rb, line 1403
def bits(min, max)
  @template.newEntryReference @level, min, max
end
call(min, max) click to toggle source
# File template.rb, line 1399
def call(min, max)
  bits(min, max)
end
java_object() click to toggle source
# File template.rb, line 1395
def java_object
  @template.newEntryReference @level
end
method_missing(meth, *args) click to toggle source
# File template.rb, line 1407
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