class Puppet::Pops::Model::QualifiedName
Attributes
value[R]
Public Class Methods
_pcore_type()
click to toggle source
# File lib/puppet/pops/model/ast.rb 3553 def self._pcore_type 3554 @_pcore_type ||= Types::PObjectType.new('Puppet::AST::QualifiedName', { 3555 'parent' => LiteralValue._pcore_type, 3556 'attributes' => { 3557 'value' => Types::PStringType::DEFAULT 3558 } 3559 }) 3560 end
create(locator, offset, length, value)
click to toggle source
# File lib/puppet/pops/model/ast.rb 3574 def self.create(locator, offset, length, value) 3575 ta = Types::TypeAsserter 3576 attrs = _pcore_type.attributes(true) 3577 ta.assert_instance_of('Puppet::AST::Positioned[locator]', attrs['locator'].type, locator) 3578 ta.assert_instance_of('Puppet::AST::Positioned[offset]', attrs['offset'].type, offset) 3579 ta.assert_instance_of('Puppet::AST::Positioned[length]', attrs['length'].type, length) 3580 ta.assert_instance_of('Puppet::AST::QualifiedName[value]', attrs['value'].type, value) 3581 new(locator, offset, length, value) 3582 end
from_asserted_hash(init_hash)
click to toggle source
# File lib/puppet/pops/model/ast.rb 3566 def self.from_asserted_hash(init_hash) 3567 new( 3568 init_hash['locator'], 3569 init_hash['offset'], 3570 init_hash['length'], 3571 init_hash['value']) 3572 end
from_hash(init_hash)
click to toggle source
# File lib/puppet/pops/model/ast.rb 3562 def self.from_hash(init_hash) 3563 from_asserted_hash(Types::TypeAsserter.assert_instance_of('Puppet::AST::QualifiedName initializer', _pcore_type.init_hash_type, init_hash)) 3564 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 3586 def initialize(locator, offset, length, value) 3587 super(locator, offset, length) 3588 @hash = @hash ^ value.hash 3589 @value = value 3590 end
Public Instance Methods
_pcore_init_hash()
click to toggle source
Calls superclass method
Puppet::Pops::Model::Positioned#_pcore_init_hash
# File lib/puppet/pops/model/ast.rb 3592 def _pcore_init_hash 3593 result = super 3594 result['value'] = @value 3595 result 3596 end
eql?(o)
click to toggle source
Calls superclass method
Puppet::Pops::Model::PopsObject#eql?
# File lib/puppet/pops/model/ast.rb 3598 def eql?(o) 3599 super && 3600 @value.eql?(o.value) 3601 end
Also aliased as: ==