Class: IDL::AST::Porttype

Inherits:
Node show all
Defined in:
lib/ridl/node.rb,
lib/ridl/node.rb

Overview

Component

Constant Summary collapse

DEFINABLE =
[IDL::AST::Attribute, IDL::AST::Port]

Instance Attribute Summary collapse

Attributes inherited from Leaf

#annotations, #enclosure, #intern, #name, #prefix, #scopes

Instance Method Summary collapse

Methods inherited from Node

#define, #introduce, #is_definable?, #marshal_dump, #marshal_load, #match_members, #redefine, #replace_prefix, #resolve, #select_members, #undo_introduction, #walk_members

Methods inherited from Leaf

#has_annotations?, #is_local?, #is_template?, #lm_name, #lm_scopes, #marshal_dump, #marshal_load, #replace_prefix, #repository_id, #resolve, #scoped_lm_name, #scoped_name, #set_repo_id, #set_repo_version, #typename, #unescaped_name

Constructor Details

#initialize(_name, _enclosure, _params) ⇒ Porttype

Returns a new instance of Porttype.



1574
1575
1576
1577
# File 'lib/ridl/node.rb', line 1574

def initialize(_name, _enclosure, _params)
  super(_name, _enclosure)
  @idltype = IDL::Type::Porttype.new(self)
end

Instance Attribute Details

#idltypeObject (readonly)

Returns the value of attribute idltype.



1572
1573
1574
# File 'lib/ridl/node.rb', line 1572

def idltype
  @idltype
end

Instance Method Details

#attributesObject



1583
1584
1585
# File 'lib/ridl/node.rb', line 1583

def attributes
  @children.select { |c| IDL::AST::Attribute === c }
end

#instantiate(instantiation_context, _enclosure) ⇒ Object



1587
1588
1589
# File 'lib/ridl/node.rb', line 1587

def instantiate(instantiation_context, _enclosure)
  super(instantiation_context, _enclosure, {})
end

#portsObject



1579
1580
1581
# File 'lib/ridl/node.rb', line 1579

def ports
  @children.select { |c| IDL::AST::Port === c }
end