Class LocalVariableDeclarationStrategy<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>
de.monochromata.anaphors.ast.relatedexp.strategy.LocalVariableDeclarationStrategy<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
public class LocalVariableDeclarationStrategy<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 AbstractRelatedExpressionStrategy<N,E,T,B,MB,TB,S,I,QI,EV,PP,R>
Local variable declarations functioning as related expression.
-
Field Summary
Fields inherited from class de.monochromata.anaphors.ast.relatedexp.strategy.AbstractRelatedExpressionStrategy
preferences, relatedExpressionsSpi -
Constructor Summary
Constructors Modifier Constructor Description protectedLocalVariableDeclarationStrategy()Used in contract testing.LocalVariableDeclarationStrategy(RelatedExpressionsSpi<N,E,T,B,MB,TB,S,I,QI,EV,PP,R> relatedExpressionsSpi, Preferences preferences) -
Method Summary
Modifier and Type Method Description StringgetKind()Returns a short mnemonic string that uniquely identifies this strategy among the type of strategies it belongs to.protected booleanisInitializer(R thisInstance, R otherInstance, RelatedExpressionsSpi<N,E,T,B,MB,TB,S,I,QI,EV,PP,R> relatedExpressionsSpi)protected booleanisOnlyFragment(R thisInstance, R otherInstance, RelatedExpressionsSpi<N,E,T,B,MB,TB,S,I,QI,EV,PP,R> relatedExpressionsSpi)protected booleanrefersToSameAstNode(R thisInstance, R otherInstance)List<Perspectivation>underspecifyRelatedExpression(R relatedExpression, List<org.apache.commons.lang3.tuple.Pair<LocalTempVariableContents,String>> variableContentsAndAnaphors, S scope)Create a perspectivations for the related expressionMethods inherited from class de.monochromata.anaphors.ast.relatedexp.strategy.AbstractRelatedExpressionStrategy
addToCollection, collectTo, stopCollectionMethods 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
-
Field Details
-
LVD_KIND
- See Also:
- Constant Field Values
-
-
Constructor Details
-
LocalVariableDeclarationStrategy
protected LocalVariableDeclarationStrategy()Used in contract testing. -
LocalVariableDeclarationStrategy
public LocalVariableDeclarationStrategy(RelatedExpressionsSpi<N,E,T,B,MB,TB,S,I,QI,EV,PP,R> relatedExpressionsSpi, Preferences preferences)
-
-
Method Details
-
getKind
Description copied from interface:StrategyReturns a short mnemonic string that uniquely identifies this strategy among the type of strategies it belongs to.- Returns:
- the kind of strategy
-
underspecifyRelatedExpression
public List<Perspectivation> underspecifyRelatedExpression(R relatedExpression, List<org.apache.commons.lang3.tuple.Pair<LocalTempVariableContents,String>> variableContentsAndAnaphors, S scope)Description copied from interface:RelatedExpressionStrategyCreate a perspectivations for the related expression -
refersToSameAstNode
-
isOnlyFragment
-
isInitializer
-