Class: Internal::ByteDecoder::Expression::Constant
- Inherits:
-
Internal::ByteDecoder::Expression
- Object
- Internal::ByteDecoder::Expression
- Internal::ByteDecoder::Expression::Constant
- Defined in:
- lib/decompiler/vm/bytedecoder.rb
Direct Known Subclasses
Instance Attribute Summary
Attributes inherited from Internal::ByteDecoder::Expression
Instance Method Summary collapse
-
#initialize(pc, klass, name) ⇒ Constant
constructor
A new instance of Constant.
- #precedence ⇒ Object
- #to_s ⇒ Object
Methods inherited from Internal::ByteDecoder::Expression
Constructor Details
#initialize(pc, klass, name) ⇒ Constant
Returns a new instance of Constant.
327 328 329 330 331 |
# File 'lib/decompiler/vm/bytedecoder.rb', line 327 def initialize(pc, klass, name) super(pc) @klass = klass @name = name end |
Instance Method Details
#precedence ⇒ Object
345 346 347 |
# File 'lib/decompiler/vm/bytedecoder.rb', line 345 def precedence return 1 end |
#to_s ⇒ Object
333 334 335 336 337 338 339 340 341 342 343 |
# File 'lib/decompiler/vm/bytedecoder.rb', line 333 def to_s if @klass then if @klass == Object then return "::#{@name}" else return "#{@klass}::#{@name}" end else return "#{@name}" end end |