class Puppet::Pops::Model::QualifiedName

Attributes

value[R]

Public Class Methods

_pcore_type() click to toggle source
     # File lib/puppet/pops/model/ast.rb
3552 def self._pcore_type
3553   @_pcore_type ||= Types::PObjectType.new('Puppet::AST::QualifiedName', {
3554     'parent' => LiteralValue._pcore_type,
3555     'attributes' => {
3556       'value' => Types::PStringType::DEFAULT
3557     }
3558   })
3559 end
create(locator, offset, length, value) click to toggle source
     # File lib/puppet/pops/model/ast.rb
3573 def self.create(locator, offset, length, value)
3574   ta = Types::TypeAsserter
3575   attrs = _pcore_type.attributes(true)
3576   ta.assert_instance_of('Puppet::AST::Positioned[locator]', attrs['locator'].type, locator)
3577   ta.assert_instance_of('Puppet::AST::Positioned[offset]', attrs['offset'].type, offset)
3578   ta.assert_instance_of('Puppet::AST::Positioned[length]', attrs['length'].type, length)
3579   ta.assert_instance_of('Puppet::AST::QualifiedName[value]', attrs['value'].type, value)
3580   new(locator, offset, length, value)
3581 end
from_asserted_hash(init_hash) click to toggle source
     # File lib/puppet/pops/model/ast.rb
3565 def self.from_asserted_hash(init_hash)
3566   new(
3567     init_hash['locator'],
3568     init_hash['offset'],
3569     init_hash['length'],
3570     init_hash['value'])
3571 end
from_hash(init_hash) click to toggle source
     # File lib/puppet/pops/model/ast.rb
3561 def self.from_hash(init_hash)
3562   from_asserted_hash(Types::TypeAsserter.assert_instance_of('Puppet::AST::QualifiedName initializer', _pcore_type.init_hash_type, init_hash))
3563 end
new(locator, offset, length, value) click to toggle source
Calls superclass method Puppet::Pops::Model::Positioned::new
     # File lib/puppet/pops/model/ast.rb
3585 def initialize(locator, offset, length, value)
3586   super(locator, offset, length)
3587   @hash = @hash ^ value.hash
3588   @value = value
3589 end

Public Instance Methods

==(o)
Alias for: eql?
_pcore_init_hash() click to toggle source
Calls superclass method Puppet::Pops::Model::Positioned#_pcore_init_hash
     # File lib/puppet/pops/model/ast.rb
3591 def _pcore_init_hash
3592   result = super
3593   result['value'] = @value
3594   result
3595 end
eql?(o) click to toggle source
Calls superclass method Puppet::Pops::Model::PopsObject#eql?
     # File lib/puppet/pops/model/ast.rb
3597 def eql?(o)
3598   super &&
3599   @value.eql?(o.value)
3600 end
Also aliased as: ==