class JvmBytecode::Attributes::SourceFile
Public Instance Methods
additional_bytecode()
click to toggle source
# File lib/jvm_bytecode/attributes/source_file.rb, line 10 def additional_bytecode [@filename].pack('S>') end
decode(io)
click to toggle source
# File lib/jvm_bytecode/attributes/source_file.rb, line 14 def decode(io) io.read(4) # discard length @filename = io.read(2).unpack('S>').first end
filename(f)
click to toggle source
# File lib/jvm_bytecode/attributes/source_file.rb, line 6 def filename(f) @filename = cp.index_or_utf8(f) end
to_hash()
click to toggle source
# File lib/jvm_bytecode/attributes/source_file.rb, line 19 def to_hash {} end