Package de.monochromata.anaphors.ast
Interface RelatedExpressionPart<N,E,T,B,TB extends B,S,I,QI,R extends RelatedExpression<N,T,B,TB,S,QI,R>>
- 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 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,DefaultDirectAnaphora,DefaultIndirectAnaphora,DefaultRelatedExpressionPart
public interface RelatedExpressionPart<N,E,T,B,TB extends B,S,I,QI,R extends RelatedExpression<N,T,B,TB,S,QI,R>>
Represents a related expression 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 RgetRelatedExpression()Get the related expression of the anaphora relation.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.
-
Method Details
-
getRelatedExpression
Get the related expression of the anaphora relation.- Returns:
- The related expression.
-
getRelatedExpressionStrategy
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.- Returns:
- The related expression strategy.
-