Package de.monochromata.anaphors.cog
Class DefaultResolution<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>>
java.lang.Object
de.monochromata.anaphors.cog.DefaultResolution<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 Implemented Interfaces:
Resolution<N,E,T,B,TB,S,I,QI,R,A>
public class DefaultResolution<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 Object implements Resolution<N,E,T,B,TB,S,I,QI,R,A>
A default resolution implementation.
-
Constructor Summary
Constructors Modifier Constructor Description protectedDefaultResolution()Used in contract testing.DefaultResolution(CheckResult<N,E,S> checkResult, PreparatoryTransformation<N,E,T,B,TB,S,I,QI,R,A> preparatoryTransformation, A preliminaryAnaphora) -
Method Summary
Modifier and Type Method Description CheckResult<N,E,S>getCheckResult()The check result is obtained from thePreparatoryTransformationand can be used to actually perform the preparatory transformation.AgetPreliminaryAnaphora()The preliminary anaphora might be used to signal to users which anaphora relations are available, e.g.PreparatoryTransformation<N,E,T,B,TB,S,I,QI,R,A>getPreparatoryTransformation()
-
Constructor Details
-
DefaultResolution
protected DefaultResolution()Used in contract testing. -
DefaultResolution
-
-
Method Details
-
getCheckResult
Description copied from interface:ResolutionThe check result is obtained from thePreparatoryTransformationand can be used to actually perform the preparatory transformation.- Specified by:
getCheckResultin interfaceResolution<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 check result with
CheckResult.canPerformTransformation()returning true. - See Also:
PreparatoryTransformation.canPerform(de.monochromata.anaphors.cog.memory.Chunk, Object, Object),PreparatoryTransformation.perform(CheckResult, ASTBasedAnaphora),Resolution.getPreparatoryTransformation()
-
getPreparatoryTransformation
- Specified by:
getPreparatoryTransformationin interfaceResolution<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 preparatory AST transformation that yields the AST-based
ASTBasedAnaphorarelation. - See Also:
Resolution.getPreliminaryAnaphora(),PreparatoryTransformation.perform(CheckResult, ASTBasedAnaphora),Resolution.getCheckResult()
-
getPreliminaryAnaphora
Description copied from interface:ResolutionThe preliminary anaphora might be used to signal to users which anaphora relations are available, e.g. in case of referential ambiguity.- Specified by:
getPreliminaryAnaphorain interfaceResolution<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 preliminary anaphora relation comparable to the one that could be re-resolved after the preparatory transformation has been applied.
- See Also:
Resolution.getPreparatoryTransformation()
-