Class: RGen::Instantiator::ReferenceResolver::UnresolvedReference

Inherits:
Object
  • Object
show all
Defined in:
lib/rgen/instantiator/reference_resolver.rb

Overview

Instances of this class represent information about not yet resolved references. This consists of the element and metamodel feature_name which hold/is to hold the reference and the proxy object which is the placeholder for the reference. If the reference could not be resolved because the target type does not match the feature type, the flag target_type_error will be set.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(element, feature_name, proxy) ⇒ UnresolvedReference

Returns a new instance of UnresolvedReference.



26
27
28
29
30
# File 'lib/rgen/instantiator/reference_resolver.rb', line 26

def initialize(element, feature_name, proxy)
  @element = element
  @feature_name = feature_name
  @proxy = proxy
end

Instance Attribute Details

#elementObject

Returns the value of attribute element.



25
26
27
# File 'lib/rgen/instantiator/reference_resolver.rb', line 25

def element
  @element
end

#feature_nameObject (readonly)

Returns the value of attribute feature_name.



24
25
26
# File 'lib/rgen/instantiator/reference_resolver.rb', line 24

def feature_name
  @feature_name
end

#proxyObject (readonly)

Returns the value of attribute proxy.



24
25
26
# File 'lib/rgen/instantiator/reference_resolver.rb', line 24

def proxy
  @proxy
end

#target_type_errorObject

Returns the value of attribute target_type_error.



25
26
27
# File 'lib/rgen/instantiator/reference_resolver.rb', line 25

def target_type_error
  @target_type_error
end