Package de.monochromata.anaphors.ast
Class AbstractASTBasedAnaphora<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>>
java.lang.Object
de.monochromata.anaphors.ast.AbstractASTBasedAnaphora<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 Implemented Interfaces:
AnaphorPart<N,E,T,B,TB,S,I,QI,R,A>,ASTBasedAnaphora<N,E,T,B,TB,S,I,QI,R,A>,RelatedExpressionPart<N,E,T,B,TB,S,I,QI,R>
- Direct Known Subclasses:
DefaultDirectAnaphora,DefaultIndirectAnaphora
public abstract class AbstractASTBasedAnaphora<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 Object implements ASTBasedAnaphora<N,E,T,B,TB,S,I,QI,R,A>
An abstract implementation of the anaphora interface.
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description booleanequals(Object obj)AnaphorPart<N,E,T,B,TB,S,I,QI,R,A>getAnaphorPart()RelatedExpressionPart<N,E,T,B,TB,S,I,QI,R>getRelatedExpressionPart()inthashCode()booleanisExplicated()booleanisUnderspecified()StringtoString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface de.monochromata.anaphors.ast.ASTBasedAnaphora
getAnaphor, getAnaphorExpression, getAnaphorResolutionStrategy, getBinding, getKind, getReferenceDescription, getReferent, getReferentializationStrategy, getRelatedExpression, getRelatedExpressionStrategy, resolveType
-
Constructor Details
-
AbstractASTBasedAnaphora
protected AbstractASTBasedAnaphora()Used in contract testing. -
AbstractASTBasedAnaphora
-
-
Method Details
-
getRelatedExpressionPart
-
getAnaphorPart
-
isUnderspecified
- Specified by:
isUnderspecifiedin interfaceASTBasedAnaphora<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>>- Returns:
- true if this anaphora relation is underspecified, i.e. is not explicated.
- See Also:
ASTBasedAnaphora.isExplicated()
-
isExplicated
- Specified by:
isExplicatedin interfaceASTBasedAnaphora<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>>- Returns:
- true if this anaphora relation is explicated, i.e. is not underspecified.
- See Also:
ASTBasedAnaphora.isUnderspecified()
-
hashCode
-
equals
-
toString
-