class IDL::Type::ScopedName

Public Instance Methods

instantiate(instantiation_context) click to toggle source
# File lib/ridl/type.rb, line 134
def instantiate(instantiation_context)
  if self.is_template?
    cp = IDL::AST::TemplateParam.concrete_param(instantiation_context, @node)
    cp.is_a?(Type) ? cp : ScopedName.new(cp)
  else
    self
  end
end
is_complete?() click to toggle source
# File lib/ridl/type.rb, line 114
def is_complete?
  resolved_type.is_complete?
end
is_local?(recurstk = []) click to toggle source
# File lib/ridl/type.rb, line 118
def is_local?(recurstk = [])
  resolved_type.is_local?(recurstk)
end
is_node?(node_class) click to toggle source
# File lib/ridl/type.rb, line 122
def is_node?(node_class)
  @node.is_a?(IDL::AST::Typedef) ? @node.idltype.is_node?(node_class) : @node.is_a?(node_class)
end
is_template?() click to toggle source
# File lib/ridl/type.rb, line 130
def is_template?
  @node.is_template?
end
narrow(obj) click to toggle source
# File lib/ridl/type.rb, line 106
def narrow(obj)
  @node.idltype.narrow(obj)
end
resolved_node() click to toggle source
# File lib/ridl/type.rb, line 126
def resolved_node
  @node.is_a?(IDL::AST::Typedef) ? @node.idltype.resolved_node : @node
end
resolved_type() click to toggle source
# File lib/ridl/type.rb, line 110
def resolved_type
  @node.idltype.resolved_type
end
typename() click to toggle source
# File lib/ridl/type.rb, line 102
def typename
  @node.name
end