Class: BoolType

Inherits:
Type show all
Defined in:
lib/tecsgen/core/types.rb

Direct Known Subclasses

CBoolType

Instance Method Summary collapse

Methods inherited from Type

#cast, #check_init, #check_struct_tag, #clear_max, #equal?, #get_ID_str, #get_bit_size, #get_original_type, #has_pointer?, #has_sized_pointer?, #has_unsized_string?, #initialize, #is_const?, #is_void?, #is_volatile?, #print_info, #print_info_post, print_info_post, reset_print_info, #set_qualifier, #set_scs

Methods inherited from Node

#cdl_error, #cdl_error2, #cdl_error3, #cdl_info, #cdl_info2, #cdl_warning, #cdl_warning2, #get_locale, #initialize, #locale_str, #set_locale

Constructor Details

This class inherits a constructor from Type

Instance Method Details

#checkObject

意味的誤りがあれば、文字列を返す



371
372
373
# File 'lib/tecsgen/core/types.rb', line 371

def check  # 意味的誤りがあれば、文字列を返す
  nil
end

#get_type_strObject



375
376
377
# File 'lib/tecsgen/core/types.rb', line 375

def get_type_str
  "#{super}bool_t"
end

#get_type_str_postObject



379
380
381
# File 'lib/tecsgen/core/types.rb', line 379

def get_type_str_post
  ""
end

#show_tree(indent) ⇒ Object



383
384
385
386
387
# File 'lib/tecsgen/core/types.rb', line 383

def show_tree(indent)
  indent.times { print "  " }
  puts "BoolType #{locale_str}"
  super(indent + 1)
end