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_boolean?, #is_parameter_of_resource?, #is_true?, #optionally_fail, #resource_to_ptype, #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:



18
19
20
21
# File 'lib/puppet/pops/evaluator/access_operator.rb', line 18

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

Instance Attribute Details

#semanticObject (readonly)



12
13
14
# File 'lib/puppet/pops/evaluator/access_operator.rb', line 12

def semantic
  @semantic
end

Instance Method Details

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



23
24
25
# File 'lib/puppet/pops/evaluator/access_operator.rb', line 23

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