Class: Puppet::Pops::Evaluator::AccessOperator

Inherits:
Object
  • Object
show all
Includes:
Runtime3Support
Defined in:
lib/puppet/pops/evaluator/access_operator.rb

Overview

This operator is part of evaluation.

Constant Summary

Constants included from Runtime3Support

Runtime3Support::NAME_SPACE_SEPARATOR

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Runtime3Support

#add_relationship, #call_function, #capitalize_qualified_name, #coerce_numeric, #convert, #create_local_scope_from, #create_match_scope_from, #create_resource_defaults, #create_resource_overrides, #create_resource_parameter, #create_resources, #diagnostic_producer, #external_call_function, #extract_file_line, #fail, #find_resource, #get_resource_parameter_value, #get_scope_nesting_level, #get_variable_value, #is_parameter_of_resource?, #is_true?, #optionally_fail, #runtime_issue, #set_match_data, #set_scope_nesting_level, #set_variable, #variable_bound?, #variable_exists?

Constructor Details

#initialize(access_expression) ⇒ void

Initialize with AccessExpression to enable reporting issues

Parameters:



20
21
22
23
# File 'lib/puppet/pops/evaluator/access_operator.rb', line 20

def initialize(access_expression)
  @@access_visitor ||= Visitor.new(self, "access", 2, nil)
  @semantic = access_expression
end

Instance Attribute Details

#semanticObject (readonly)



14
15
16
# File 'lib/puppet/pops/evaluator/access_operator.rb', line 14

def semantic
  @semantic
end

Instance Method Details

#access(o, scope, *keys) ⇒ Object



25
26
27
# File 'lib/puppet/pops/evaluator/access_operator.rb', line 25

def access(o, scope, *keys)
  @@access_visitor.visit_this_2(self, o, scope, keys)
end