Class: IDL::AST::Typedef
- Defined in:
- lib/ridl/node.rb,
lib/ridl/node.rb
Overview
Enumerator
Constant Summary collapse
- NAMETYPE =
:class
Instance Attribute Summary collapse
-
#idltype ⇒ Object
readonly
Returns the value of attribute idltype.
Attributes inherited from Leaf
#annotations, #enclosure, #intern, #lm_name, #name, #prefix, #scopes
Instance Method Summary collapse
-
#initialize(_name, _enclosure, params) ⇒ Typedef
constructor
A new instance of Typedef.
- #instantiate(_context, _enclosure) ⇒ Object
- #is_local?(recurstk = []) ⇒ Boolean
- #marshal_dump ⇒ Object
- #marshal_load(vars) ⇒ Object
Methods inherited from Leaf
#_set_prefix, #has_annotations?, #is_template?, #lm_name_for_scope, #parsed_name_scope, #replace_prefix, #repo_scopes, #repository_id, #resolve, #scoped_lm_name, #scoped_name, #set_repo_id, #set_repo_version, #typename
Constructor Details
#initialize(_name, _enclosure, params) ⇒ Typedef
Returns a new instance of Typedef.
2795 2796 2797 2798 |
# File 'lib/ridl/node.rb', line 2795 def initialize(_name, _enclosure, params) super(_name, _enclosure) @idltype = params[:type] end |
Instance Attribute Details
#idltype ⇒ Object (readonly)
Returns the value of attribute idltype.
2793 2794 2795 |
# File 'lib/ridl/node.rb', line 2793 def idltype @idltype end |
Instance Method Details
#instantiate(_context, _enclosure) ⇒ Object
2813 2814 2815 |
# File 'lib/ridl/node.rb', line 2813 def instantiate(_context, _enclosure) super(_context, _enclosure, { :type => @idltype.instantiate(_context) }) end |
#is_local?(recurstk = []) ⇒ Boolean
2800 2801 2802 |
# File 'lib/ridl/node.rb', line 2800 def is_local?(recurstk = []) @idltype.is_local?(recurstk) end |
#marshal_dump ⇒ Object
2804 2805 2806 |
# File 'lib/ridl/node.rb', line 2804 def marshal_dump super() << @idltype end |
#marshal_load(vars) ⇒ Object
2808 2809 2810 2811 |
# File 'lib/ridl/node.rb', line 2808 def marshal_load(vars) @idltype = vars.pop super(vars) end |