Class: RGen::Instantiator::ReferenceResolver::UnresolvedReference
- Inherits:
-
Object
- Object
- RGen::Instantiator::ReferenceResolver::UnresolvedReference
- 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
-
#element ⇒ Object
Returns the value of attribute element.
-
#feature_name ⇒ Object
readonly
Returns the value of attribute feature_name.
-
#proxy ⇒ Object
readonly
Returns the value of attribute proxy.
-
#target_type_error ⇒ Object
Returns the value of attribute target_type_error.
Instance Method Summary collapse
-
#initialize(element, feature_name, proxy) ⇒ UnresolvedReference
constructor
A new instance of UnresolvedReference.
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
#element ⇒ Object
Returns the value of attribute element.
25 26 27 |
# File 'lib/rgen/instantiator/reference_resolver.rb', line 25 def element @element end |
#feature_name ⇒ Object (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 |
#proxy ⇒ Object (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_error ⇒ Object
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 |