Package de.monochromata.anaphors.ast
Class DefaultIndirectAnaphora<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>
de.monochromata.anaphors.ast.DefaultIndirectAnaphora<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>,IndirectAnaphora<N,E,T,B,TB,S,I,QI,R,A>,RelatedExpressionPart<N,E,T,B,TB,S,I,QI,R>
public class DefaultIndirectAnaphora<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 AbstractASTBasedAnaphora<N,E,T,B,TB,S,I,QI,R,A> implements IndirectAnaphora<N,E,T,B,TB,S,I,QI,R,A>
A default implementation of an indirect anaphora relation.
-
Constructor Summary
Constructors Modifier Constructor Description protectedDefaultIndirectAnaphora()Used in contract testing.DefaultIndirectAnaphora(RelatedExpressionPart<N,E,T,B,TB,S,I,QI,R> relatedExpressionPart, AnaphorPart<N,E,T,B,TB,S,I,QI,R,A> anaphorPart, String underspecifiedRelation, boolean isUnderspecified)DefaultIndirectAnaphora(RelatedExpressionPart<N,E,T,B,TB,S,I,QI,R> relatedExpressionPart, AnaphorPart<N,E,T,B,TB,S,I,QI,R,A> anaphorPart, String underspecifiedRelation, Supplier<String> customReferenceDescriptionSupplier, boolean isUnderspecified)protectedDefaultIndirectAnaphora(RelatedExpressionPart<N,E,T,B,TB,S,I,QI,R> relatedExpressionPart, AnaphorPart<N,E,T,B,TB,S,I,QI,R,A> anaphorPart, String underspecifiedRelation, Optional<Supplier<String>> customReferenceDescriptionSupplier, boolean isUnderspecified) -
Method Summary
Modifier and Type Method Description booleanequals(Object obj)protected StringgetDefaultReferenceDescription()StringgetReferenceDescription()Returns a description of the anaphora relation, to enable users to distinguish multiple anaphora relations that are referentially ambiguous.StringgetUnderspecifiedRelation()inthashCode()StringtoString()Methods inherited from class de.monochromata.anaphors.ast.AbstractASTBasedAnaphora
getAnaphorPart, getRelatedExpressionPart, isExplicated, isUnderspecifiedMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface de.monochromata.anaphors.ast.ASTBasedAnaphora
getAnaphor, getAnaphorExpression, getAnaphorPart, getAnaphorResolutionStrategy, getBinding, getKind, getReferent, getReferentializationStrategy, getRelatedExpression, getRelatedExpressionPart, getRelatedExpressionStrategy, isExplicated, isUnderspecified, resolveTypeMethods inherited from interface de.monochromata.anaphors.ast.IndirectAnaphora
getAnchor
-
Constructor Details
-
DefaultIndirectAnaphora
protected DefaultIndirectAnaphora()Used in contract testing. -
DefaultIndirectAnaphora
-
DefaultIndirectAnaphora
-
DefaultIndirectAnaphora
-
-
Method Details
-
getUnderspecifiedRelation
-
getReferenceDescription
Description copied from interface:ASTBasedAnaphoraReturns a description of the anaphora relation, to enable users to distinguish multiple anaphora relations that are referentially ambiguous.The reference description does not contain information about the anaphor, but only information on the related expression and the referent.
-
getDefaultReferenceDescription
-
hashCode
-
equals
-
toString
-