Interface StoresReferentInLocalTempVariable<N,E,T,B,TB extends B,S,I,QI,R extends RelatedExpression<N,T,B,TB,S,QI,R>,A extends ASTBasedAnaphora<N,E,T,B,TB,S,I,QI,R,A>>
- Type Parameters:
N- The node type in the ASTE- The expression typeT- The type typeB- The binding typeTB- The type binding typeS- The scope type (optional)I- The type used to represent identifiersQI- The type used to represent qualified identifiersR- The sub-type of related expression to useA- The sub-type of AST-based anaphora to use
- All Superinterfaces:
AnaphorResolutionStrategy<N,E,T,B,TB,S,I,QI,R,A>,Strategy
- All Known Implementing Classes:
DA1ReStrategy,IA1MrStrategy
public interface StoresReferentInLocalTempVariable<N,E,T,B,TB extends B,S,I,QI,R extends RelatedExpression<N,T,B,TB,S,QI,R>,A extends ASTBasedAnaphora<N,E,T,B,TB,S,I,QI,R,A>> extends AnaphorResolutionStrategy<N,E,T,B,TB,S,I,QI,R,A>
This is a
AnaphorResolutionStrategy that has a related expression
that is or yields the referent. It uses DA1ReStrategy and
NameRecurrence for realization, because this strategy relates to the
referent which is stored in the introduced local temp variable, if such a
variable is introduced (depends on whether the
RelatedExpressionStrategy is a
LocalTempVariableIntroducingStrategy).-
Method Summary
Modifier and Type Method Description default StringgetKindOfAnaphorResolutionStrategyToBeRealized(AnaphorPart<N,E,T,B,TB,S,I,QI,R,A> anaphorPart)To be invoked when a related expression resolved with this strategy is realized to obtain the kind of anaphor resolution strategy that applies after realization.default StringgetKindOfReferentializationStrategyToBeRealized(AnaphorPart<N,E,T,B,TB,S,I,QI,R,A> anaphorPart)Always returnsNameRecurrence.Rn_KINDbecause re-resolution triggered after realization will always be name-based as it is based on the name of the local variable that was introduced to store the referent.default LocalTempVariableContentsgetLocalTempVariableContents()Methods inherited from interface de.monochromata.anaphors.ast.strategy.AnaphorResolutionStrategy
canRelateTo, createAnaphora, createReferent, generatePotentialAnaphora, getAnaphorToBeRealized, realize, underspecifyAnaphor
-
Method Details
-
getLocalTempVariableContents
-
getKindOfAnaphorResolutionStrategyToBeRealized
default String getKindOfAnaphorResolutionStrategyToBeRealized(AnaphorPart<N,E,T,B,TB,S,I,QI,R,A> anaphorPart)Description copied from interface:AnaphorResolutionStrategyTo be invoked when a related expression resolved with this strategy is realized to obtain the kind of anaphor resolution strategy that applies after realization.That realized kind will also apply when the anaphora is re-resolved. Thus setting the realized kind in the beginning will avoid a faux change being detected during re-resolution of the unmodified anaphora relation.
-
getKindOfReferentializationStrategyToBeRealized
default String getKindOfReferentializationStrategyToBeRealized(AnaphorPart<N,E,T,B,TB,S,I,QI,R,A> anaphorPart)Always returnsNameRecurrence.Rn_KINDbecause re-resolution triggered after realization will always be name-based as it is based on the name of the local variable that was introduced to store the referent.
-