class Puppet::Pops::Model::QualifiedReference
Attributes
cased_value[R]
Public Class Methods
_pcore_type()
click to toggle source
# File lib/puppet/pops/model/ast.rb 3668 def self._pcore_type 3669 @_pcore_type ||= Types::PObjectType.new('Puppet::AST::QualifiedReference', { 3670 'parent' => LiteralValue._pcore_type, 3671 'attributes' => { 3672 'cased_value' => Types::PStringType::DEFAULT, 3673 'value' => { 3674 'type' => Types::PStringType::DEFAULT, 3675 'kind' => 'derived' 3676 } 3677 } 3678 }) 3679 end
create(locator, offset, length, cased_value)
click to toggle source
# File lib/puppet/pops/model/ast.rb 3693 def self.create(locator, offset, length, cased_value) 3694 ta = Types::TypeAsserter 3695 attrs = _pcore_type.attributes(true) 3696 ta.assert_instance_of('Puppet::AST::Positioned[locator]', attrs['locator'].type, locator) 3697 ta.assert_instance_of('Puppet::AST::Positioned[offset]', attrs['offset'].type, offset) 3698 ta.assert_instance_of('Puppet::AST::Positioned[length]', attrs['length'].type, length) 3699 ta.assert_instance_of('Puppet::AST::QualifiedReference[cased_value]', attrs['cased_value'].type, cased_value) 3700 new(locator, offset, length, cased_value) 3701 end
from_asserted_hash(init_hash)
click to toggle source
# File lib/puppet/pops/model/ast.rb 3685 def self.from_asserted_hash(init_hash) 3686 new( 3687 init_hash['locator'], 3688 init_hash['offset'], 3689 init_hash['length'], 3690 init_hash['cased_value']) 3691 end
from_hash(init_hash)
click to toggle source
# File lib/puppet/pops/model/ast.rb 3681 def self.from_hash(init_hash) 3682 from_asserted_hash(Types::TypeAsserter.assert_instance_of('Puppet::AST::QualifiedReference initializer', _pcore_type.init_hash_type, init_hash)) 3683 end
new(locator, offset, length, cased_value)
click to toggle source
Calls superclass method
Puppet::Pops::Model::Positioned::new
# File lib/puppet/pops/model/ast.rb 3709 def initialize(locator, offset, length, cased_value) 3710 super(locator, offset, length) 3711 @hash = @hash ^ cased_value.hash 3712 @cased_value = cased_value 3713 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 3715 def _pcore_init_hash 3716 result = super 3717 result['cased_value'] = @cased_value 3718 result 3719 end
eql?(o)
click to toggle source
Calls superclass method
Puppet::Pops::Model::PopsObject#eql?
# File lib/puppet/pops/model/ast.rb 3721 def eql?(o) 3722 super && 3723 @cased_value.eql?(o.cased_value) 3724 end
Also aliased as: ==
value()
click to toggle source
# File lib/puppet/pops/model/ast.rb 3705 def value 3706 @cased_value.downcase 3707 end