root/lang/ruby/yabcel/lib/yabcel/signature.rb @ 13478

Revision 13478, 500 bytes (checked in by fd0, 5 years ago)

initial release

Line 
1require 'yabcel/attribute'
2
3module Yabcel
4  class Signature < Attribute
5    attr_accessor :signature_index
6    def initialize(name_index, length, constant_pool, signature_index)
7      super(name_index, length, constant_pool)
8      @signature_index = signature_index
9    end
10    def self.parse(name_index, length, constant_pool, file)
11      new(name_index, length, constant_pool, file.read_short())
12    end
13    def to_s
14      "    Signature: ##{@signature_index}\n"
15    end
16  end
17end
Note: See TracBrowser for help on using the browser.