Package de.monochromata.anaphors.ast
Interface AnaphorPart<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 Known Subinterfaces:
ASTBasedAnaphora<N,E,T,B,TB,S,I,QI,R,A>,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,DefaultAnaphorPart,DefaultDirectAnaphora,DefaultIndirectAnaphora
public interface AnaphorPart<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>>
Represents an anaphor at the AST level. 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 StringgetAnaphor()EgetAnaphorExpression()Get the expression that acts as anaphor.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.BgetBinding()Referent<TB,S,I,QI>getReferent()Get the referent of the anaphor.ReferentializationStrategy<E,TB,S,I,QI>getReferentializationStrategy()TBresolveType(S scope)
-
Method Details
-
getAnaphor
- 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:
getAnaphorExpression()
-
getAnaphorExpression
Get the expression that acts as anaphor. TODO: Replace by getTargetExpression()? But should the Anaphora interface be renamed, too, in this case?- Returns:
- The expression that acts as anaphor.
-
getReferent
Get 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?- Returns:
- The referent of the anaphor.
-
getAnaphorResolutionStrategy
Get the anaphor resolution strategy that was used to find the referent of the anaphor involved in this anaphora relation.- Returns:
- The anaphor resolution strategy.
-
getReferentializationStrategy
-
getBinding
B getBinding() -
resolveType
-