Package eu.bandm.tools.d2d2.base
Class Resolver3.LocalInstance
java.lang.Object
eu.bandm.tools.d2d2.base.Resolver3.Instance
eu.bandm.tools.d2d2.base.Resolver3.LocalInstance
- All Implemented Interfaces:
Cloneable
- Enclosing class:
- Resolver3
Represents rewrite results of insertion operators which must be reified because
of recursion.
E.g.
A.B { a = @b ^(c/d) , @b } | A.B .a .0 .b A.B { import C = cc ^( a / @b ^(c/d)) in f ^( g / @b ^(c/d)) } | A.B .C.1.b
-
Field Summary
Modifier and TypeFieldDescription(package private) boolean
Whether the rewrite reached a cyclic reference, thus requiring reification.Definition hosting the inserted reference.(package private) final @Opt ImportItem
ImportItem hosting the inserted reference.(package private) final int
The number n of the occurence of the inserted reference indefContext
.Fields inherited from class eu.bandm.tools.d2d2.base.Resolver3.Instance
different, ic, reprRef, requiredBy, rewritten
-
Constructor Summary
ConstructorDescriptionLocalInstance
(Resolver3.ImportContext ic, Definition rewritten, Reference reprRef, ImportItem impContext, int pos) LocalInstance
(Resolver3.ImportContext ic, Definition rewritten, Reference reprRef, XRegExp defContext, int pos) -
Method Summary
Methods inherited from class eu.bandm.tools.d2d2.base.Resolver3.Instance
format, hypothesisConfirmed, hypothesisFalsified, isBound, isClass, newHypothesis, representative, setIsClass, validDefinition
-
Field Details
-
impContext
ImportItem hosting the inserted reference. This is the nth occurence in all import rewrite expressions. If ==null, then defContext!=null. -
defContext
Definition hosting the inserted reference. It is the nth occurence in the ".value" expression. If ==null, then impContext!=null. -
referencePosition
final int referencePositionThe number n of the occurence of the inserted reference indefContext
. -
cycleFound
boolean cycleFoundWhether the rewrite reached a cyclic reference, thus requiring reification.
-
-
Constructor Details
-
LocalInstance
LocalInstance(Resolver3.ImportContext ic, Definition rewritten, Reference reprRef, XRegExp defContext, int pos) -
LocalInstance
LocalInstance(Resolver3.ImportContext ic, Definition rewritten, Reference reprRef, ImportItem impContext, int pos)
-