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