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 AST
E - The expression type
T - The type type
B - The binding type
TB - The type binding type
S - The scope type (optional)
I - The type used to represent identifiers
QI - The type used to represent qualified identifiers
R - The sub-type of related expression to use
A - 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 Details

    • getAnaphor

      Returns:
      A String representation of the anaphor initially entered by the user or chosen algorithmically. This will be identical to the String representation 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

      Referent<TB,​S,​I,​QI> 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

    • resolveType

      TB resolveType​(S scope)