Class: AArch64::Assembler::Label

Inherits:
Object
  • Object
show all
Defined in:
lib/aarch64.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name) ⇒ Label



145
146
147
148
# File 'lib/aarch64.rb', line 145

def initialize name
  @name   = name
  @offset = nil
end

Instance Attribute Details

#offsetObject (readonly)

Returns the value of attribute offset.



143
144
145
# File 'lib/aarch64.rb', line 143

def offset
  @offset
end

Instance Method Details

#immediate?Boolean



163
# File 'lib/aarch64.rb', line 163

def immediate?; false; end

#integer?Boolean



164
# File 'lib/aarch64.rb', line 164

def integer?; false; end

#set_offset(offset) ⇒ Object



150
151
152
153
# File 'lib/aarch64.rb', line 150

def set_offset offset
  @offset = offset
  freeze
end

#to_iObject



159
160
161
# File 'lib/aarch64.rb', line 159

def to_i
  @offset
end

#unwrap_labelObject



155
156
157
# File 'lib/aarch64.rb', line 155

def unwrap_label
  to_i
end