Class: IDL::AST::Porttype

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

Overview

Component

Constant Summary collapse

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

Instance Attribute Summary collapse

Attributes inherited from Leaf

#annotations, #enclosure, #intern, #lm_name, #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, #undo_introduction, #walk_members

Methods inherited from Leaf

#_set_prefix, #has_annotations?, #is_local?, #is_template?, #lm_name_for_scope, #marshal_dump, #marshal_load, #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) ⇒ Porttype

Returns a new instance of Porttype.



1529
1530
1531
1532
# File 'lib/ridl/node.rb', line 1529

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.



1528
1529
1530
# File 'lib/ridl/node.rb', line 1528

def idltype
  @idltype
end

Instance Method Details

#attributesObject



1538
1539
1540
# File 'lib/ridl/node.rb', line 1538

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

#instantiate(_context, _enclosure) ⇒ Object



1542
1543
1544
# File 'lib/ridl/node.rb', line 1542

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

#portsObject



1534
1535
1536
# File 'lib/ridl/node.rb', line 1534

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