Module: Rasm::Java
- Defined in:
- lib/rasm.rb,
lib/rasm/java/bytecode.rb,
lib/rasm/java/structure.rb,
lib/rasm/java/accessable.rb,
lib/rasm/java/attributes.rb,
lib/rasm/java/constant_type.rb
Defined Under Namespace
Modules: Accessable Classes: Attribute, Bytecode, ConstantType, FieldInfo, MethodInfo
Constant Summary collapse
- CONSTANT_TYPES =
[ nil, ConstantType.val(:Utf8, 1, lambda{|io| io.read(2).unpack('n')[0]}, 'a*'), nil, ConstantType.val(:Integer ,3, 4, 'N'), ConstantType.val(:Float, 4, 4, 'g'), ConstantType.val(:Long, 5, 8, lambda{|bytes| h, l = bytes.unpack('NN'); (h << 32) + l}), ConstantType.val(:Double, 6, 8, 'G'), ConstantType.ref(:Class, 7, 2), ConstantType.ref(:String, 8, 2), ConstantType.ref(:Fieldref, 9, 4), ConstantType.ref(:Methodref, 10, 4), ConstantType.ref(:InterfaceMethodref, 11, 4), ConstantType.ref(:NameAndType, 12, 4) ]