Class AbstractRelatedExpressionStrategy<N,E,T,B,MB extends B,TB extends B,S,I,QI,EV,PP,R extends RelatedExpression<N,T,B,TB,S,QI,R>>
java.lang.Object
de.monochromata.AbstractStrategy
de.monochromata.anaphors.ast.relatedexp.strategy.AbstractRelatedExpressionStrategy<N,E,T,B,MB,TB,S,I,QI,EV,PP,R>
- Type Parameters:
N- The node type in the ASTE- The expression typeT- The type typeB- The binding typeMB- The method binding typeTB- The type binding typeS- The scope type (optional)I- The type used to represent identifiersQI- The type used to represent qualified identifiersEV- The type of the event contained in the condition that is evaluated to check when the perspectivations shall be applied.PP- The type used for positions that carry perspectivationsR- The sub-type of related expression to use
- All Implemented Interfaces:
RelatedExpressionStrategy<N,T,B,TB,S,QI,R>,Strategy
- Direct Known Subclasses:
AbstractLocalTempVariableIntroducingStrategy,LocalVariableDeclarationStrategy,ParameterDeclarationStrategy
public abstract class AbstractRelatedExpressionStrategy<N,E,T,B,MB extends B,TB extends B,S,I,QI,EV,PP,R extends RelatedExpression<N,T,B,TB,S,QI,R>> extends AbstractStrategy implements RelatedExpressionStrategy<N,T,B,TB,S,QI,R>
An abstract base class for strategies used to generate (potential) related
expressions from AST nodes.
-
Field Summary
Fields Modifier and Type Field Description protected Preferencespreferencesprotected RelatedExpressionsSpi<N,E,T,B,MB,TB,S,I,QI,EV,PP,R>relatedExpressionsSpi -
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractRelatedExpressionStrategy()Used in contract testing.AbstractRelatedExpressionStrategy(RelatedExpressionsSpi<N,E,T,B,MB,TB,S,I,QI,EV,PP,R> relatedExpressionsSpi, Preferences preferences) -
Method Summary
Modifier and Type Method Description protected voidaddToCollection(N potentialRelatedExpression)Add the given potential related expression to the current collection.voidcollectTo(List<N> potentialRelatedExpressions)voidstopCollection()Methods inherited from class de.monochromata.AbstractStrategy
equals, hashCode, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface de.monochromata.anaphors.ast.relatedexp.strategy.RelatedExpressionStrategy
getKindOfRelatedExpressionToBeRealized, underspecifyRelatedExpression
-
Field Details
-
preferences
-
Constructor Details
-
AbstractRelatedExpressionStrategy
protected AbstractRelatedExpressionStrategy()Used in contract testing. -
AbstractRelatedExpressionStrategy
public AbstractRelatedExpressionStrategy(RelatedExpressionsSpi<N,E,T,B,MB,TB,S,I,QI,EV,PP,R> relatedExpressionsSpi, Preferences preferences)
-
-
Method Details
-
collectTo
-
stopCollection
-
addToCollection
Add the given potential related expression to the current collection.- Parameters:
potentialRelatedExpression- Adds the given potential related expression to the collection of potential related expressions.- See Also:
collectTo(List),stopCollection()
-