public class IndirectingStep extends AbstractNavigationStep implements HashCodeChangeListener
NavigationStep. All fields are
initialized with null by the constructor. Clients have to ensure that
a valid state is achieved before leaving the analysis phase and using this step.
An indirecting step listens for changes of its actual step's hash code. See
HashCodeChangeListener. Changes to the actual step's hash code are forwarded to this
step's hash code change listeners.
| Modifier and Type | Class and Description |
|---|---|
class |
IndirectingStep.IndirectingStepSemanticIdentity |
| Constructor and Description |
|---|
IndirectingStep(OCLExpression debugInfo) |
| Modifier and Type | Method and Description |
|---|---|
void |
afterHashCodeChange(NavigationStep step,
int token)
Called after the
step's SemanticIdentity hash code has changed. |
void |
beforeHashCodeChange(NavigationStep step,
int token)
Invoked before
step's SemanticIdentity changes its hash code. |
java.lang.String |
contentToString(java.util.Map<NavigationStep,java.lang.Integer> visited,
int indent) |
protected int |
distinctSize(java.util.Set<SemanticIdentity> visited) |
NavigationStep |
getActualStep() |
InstanceScopeAnalysis |
getInstanceScopeAnalysis() |
SemanticIdentity |
getSemanticIdentity() |
protected void |
incrementNavigateCounter(java.util.Set<AnnotatedEObject> from)
Overrides incrementNavigateCounter to suppress counting of additional navigate() call in case of a recursion
|
boolean |
isAbsolute()
By default, navigation steps depend on the object set to which they are applied.
|
protected java.util.Set<AnnotatedEObject> |
navigate(AnnotatedEObject fromObject,
TracebackCache cache,
org.eclipse.emf.common.notify.Notification changeEvent) |
void |
setActualStep(NavigationStep actualStep) |
protected int |
size(java.util.Set<NavigationStep> visited)
An indirecting step 1.
|
addAlwaysEmptyChangeListener, addEnteringScopes, addExpressionForWhichThisIsNavigationStep, addHashCodeChangeListener, addLeavingScopes, addSourceTypeChangeListener, addTargetTypeChangeListener, annotateEObject, distinctSize, doesSourceTypeMatch, fireAfterHashCodeChange, fireBeforeHashCodeChange, getDebugInfo, getEnteringScopes, getId, getLeavingScopes, getNavigateCounter, getResultObjectsCounter, getSourceType, getTargetType, haveIntersectingSubclassTree, isAlwaysEmpty, navigate, newTokenForFiringHashCodeChangeEvent, setAlwaysEmpty, size, toString, toStringpublic IndirectingStep(OCLExpression debugInfo)
public void setActualStep(NavigationStep actualStep)
public NavigationStep getActualStep()
protected java.util.Set<AnnotatedEObject> navigate(AnnotatedEObject fromObject, TracebackCache cache, org.eclipse.emf.common.notify.Notification changeEvent)
navigate in class AbstractNavigationStepprotected void incrementNavigateCounter(java.util.Set<AnnotatedEObject> from)
incrementNavigateCounter in class AbstractNavigationSteppublic boolean isAbsolute()
AbstractNavigationStepisAbsolute in interface NavigationStepisAbsolute in class AbstractNavigationSteppublic java.lang.String contentToString(java.util.Map<NavigationStep,java.lang.Integer> visited, int indent)
contentToString in class AbstractNavigationStepprotected int size(java.util.Set<NavigationStep> visited)
size in class AbstractNavigationSteppublic void beforeHashCodeChange(NavigationStep step, int token)
HashCodeChangeListenerstep's SemanticIdentity changes its hash code. When this method is called for a step,
the HashCodeChangeListener.afterHashCodeChange(NavigationStep, int) is guaranteed to be called on the same listener later, immediately
after the hash code has changed. Receiving this call gives the receiver the opportunity to remove the step from hashed
structures in order to re-insert it later when the hash code has assumed the new value.beforeHashCodeChange in interface HashCodeChangeListenertoken - a token value identifying the root cause of the change by a monotonously-increasing number. This can be used in
cyclic NavigationStep graphs to decide that a root cause has already been handled by a listener when it
comes by a second time.public void afterHashCodeChange(NavigationStep step, int token)
HashCodeChangeListenerstep's SemanticIdentity hash code has changed. This gives hash structures the
opportunity to enter the step again.afterHashCodeChange in interface HashCodeChangeListenertoken - a token value identifying the root cause of the change by a monotonously-increasing number. This can be used in
cyclic NavigationStep graphs to decide that a root cause has already been handled by a listener when it
comes by a second time.protected int distinctSize(java.util.Set<SemanticIdentity> visited)
distinctSize in class AbstractNavigationSteppublic SemanticIdentity getSemanticIdentity()
getSemanticIdentity in interface SemanticComparablegetSemanticIdentity in class AbstractNavigationSteppublic InstanceScopeAnalysis getInstanceScopeAnalysis()