Package de.monochromata.anaphors.ast
Class DefaultAnaphorPart<N,E,T,B,VB extends 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.DefaultAnaphorPart<N,E,T,B,VB,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>
public class DefaultAnaphorPart<N,E,T,B,VB extends 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 Object implements AnaphorPart<N,E,T,B,TB,S,I,QI,R,A>
An default implementation of the
AnaphorPart interface.-
Constructor Summary
Constructors Modifier Constructor Description protectedDefaultAnaphorPart()Used in contract testing.DefaultAnaphorPart(String anaphor, E anaphorExpression, Referent<TB,S,I,QI> referent, AnaphorResolutionStrategy<N,E,T,B,TB,S,I,QI,R,A> anaphorResolutionStrategy, ReferentializationStrategy<E,TB,S,I,QI> referentializationStrategy, B binding) -
Method Summary
Modifier and Type Method Description booleanequals(Object obj)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()inthashCode()TBresolveType(S scope)StringtoString()
-
Constructor Details
-
DefaultAnaphorPart
protected DefaultAnaphorPart()Used in contract testing. -
DefaultAnaphorPart
-
-
Method Details
-
getAnaphor
- Specified by:
getAnaphorin interfaceAnaphorPart<N,E,T,B,VB extends B,TB extends B,S,I,QI,R extends RelatedExpression<N,T,B,TB,S,QI,R>>- 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
-
hashCode
-
equals
-
toString
-