Package de.monochromata.anaphors.ast
Interface ASTBasedAnaphora<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:
AnaphorPart<N,E,T,B,TB,S,I,QI,R,A>,RelatedExpressionPart<N,E,T,B,TB,S,I,QI,R>
- All Known Subinterfaces:
DirectAnaphora<N,E,T,B,TB,S,I,QI,R,A>,IndirectAnaphora<N,E,T,B,TB,S,I,QI,R,A>
- All Known Implementing Classes:
AbstractASTBasedAnaphora,DefaultDirectAnaphora,DefaultIndirectAnaphora
public interface ASTBasedAnaphora<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 RelatedExpressionPart<N,E,T,B,TB,S,I,QI,R>, AnaphorPart<N,E,T,B,TB,S,I,QI,R,A>
The relation between anaphor and related expression. Because instances of
this type contain AST nodes, they should be short-lived and must not be
persisted.
-
Method Summary
Modifier and Type Method Description default StringgetAnaphor()default EgetAnaphorExpression()Get the expression that acts as anaphor.AnaphorPart<N,E,T,B,TB,S,I,QI,R,A>getAnaphorPart()default AnaphorResolutionStrategy<N,E,T,B,TB,S,I,QI,R,A>getAnaphorResolutionStrategy()Get the anaphor resolution strategy that was used to find the referent of the anaphor involved in this anaphora relation.default BgetBinding()default StringgetKind()Returns an identifier of the kind of anaphora relationship in the format<relatedExpressionStrategy>-<anaphorResolutionStrategy>-<referentializationStrategy>StringgetReferenceDescription()Returns a description of the anaphora relation, to enable users to distinguish multiple anaphora relations that are referentially ambiguous.default Referent<TB,S,I,QI>getReferent()Get the referent of the anaphor.default ReferentializationStrategy<E,TB,S,I,QI>getReferentializationStrategy()default RgetRelatedExpression()Get the related expression of the anaphora relation.RelatedExpressionPart<N,E,T,B,TB,S,I,QI,R>getRelatedExpressionPart()default RelatedExpressionStrategy<N,T,B,TB,S,QI,R>getRelatedExpressionStrategy()Get the related expression strategy that was used to find the related expression of this anaphora relation.booleanisExplicated()Deprecated.The state of an anaphor should be represented internally in an implementation-specific way.booleanisUnderspecified()Deprecated.The state of an anaphor should be represented internally in an implementation-specific way.default TBresolveType(S scope)
-
Method Details
-
getKind
Returns an identifier of the kind of anaphora relationship in the format<relatedExpressionStrategy>-<anaphorResolutionStrategy>-<referentializationStrategy>- Returns:
- An identifier of the kind of anaphora relationship
- See Also:
Strategy.getKind(),Strategy.getKind(),Strategy.getKind()
-
getRelatedExpressionPart
-
getAnaphorPart
-
getRelatedExpression
Description copied from interface:RelatedExpressionPartGet the related expression of the anaphora relation. -
getRelatedExpressionStrategy
Description copied from interface:RelatedExpressionPartGet the related expression strategy that was used to find the related expression of this anaphora relation. -
getAnaphor
- Specified by:
getAnaphorin interfaceAnaphorPart<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:
- A
Stringrepresentation of the anaphor initially entered by the user or chosen algorithmically. This will be identical to theStringrepresentation of the anaphor expression returned for underspecified anaphora relations but will differ to explicated anaphora relations. - See Also:
AnaphorPart.getAnaphorExpression()
-
getAnaphorExpression
Description copied from interface:AnaphorPartGet the expression that acts as anaphor. TODO: Replace by getTargetExpression()? But should the Anaphora interface be renamed, too, in this case? -
getReferent
Description copied from interface:AnaphorPartGet the referent of the anaphor. TODO: Should this method be in an Anaphor or TargetExpression interface? TODO: Should other referents (e.g. the one of the related expression) be available, too? -
getAnaphorResolutionStrategy
Description copied from interface:AnaphorPartGet the anaphor resolution strategy that was used to find the referent of the anaphor involved in this anaphora relation. -
getReferentializationStrategy
-
getBinding
-
resolveType
-
getReferenceDescription
Returns 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.
-
isUnderspecified
Deprecated.The state of an anaphor should be represented internally in an implementation-specific way. This method will be removed in the future.- Returns:
- true if this anaphora relation is underspecified, i.e. is not explicated.
- See Also:
isExplicated()
-
isExplicated
Deprecated.The state of an anaphor should be represented internally in an implementation-specific way. This method will be removed in the future.- Returns:
- true if this anaphora relation is explicated, i.e. is not underspecified.
- See Also:
isUnderspecified()
-