Package de.monochromata.anaphors.ast.spi
Interface AnaphorsSpi<N,E,TB,S,I,QI,EV,PP>
- Type Parameters:
N- The node type in the ASTE- The expression typeTB- The type binding typeS- The scope type (optional)I- The type used to represent identifiersQI- The type used to represent qualified identifiersEV- The type of the event contained in the condition that is evaluated to check when the perspectivations shall be applied.PP- The type used for positions that carry perspectivations
public interface AnaphorsSpi<N,E,TB,S,I,QI,EV,PP>
The service provider interface used by the
de.monochromata.anaphors package to perform anaphora resolution
on a given AST implementation.-
Method Summary
Modifier and Type Method Description booleanconceptualTypeInIdentifierEqualsFauxHyponymyOfSimpleNameOfType(I id, TB type, boolean caseSensitive)booleanconceptualTypeInIdentifierEqualsSimpleNameOfType(I id, TB type, boolean caseSensitive)PPcreatePositionForExpression(E expression, Predicate<EV> condition, List<Perspectivation> perspectivations)FeatureContainer<QI>getFeaturesRemainingInIdentifierBesidesConceptualTypeOfReferentName(I id, Referent<TB,S,I,QI> referent, boolean caseSensitive)FeatureContainer<QI>getFeaturesRemainingInIdentifierBesidesConceptualTypeOfReferentType(I id, TB referentType, boolean caseSensitive)FeatureContainer<QI>getFeaturesRemainingInIdentifierBesidesConceptualTypeOfReferentTypeWithFauxHyponymy(I id, TB type, boolean caseSensitive)IgetIdentifierOfSimpleName(E simpleName)intgetLength(QI qualifiedIdentifier)booleanisSimpleName(E definiteExpression)booleannameOfIdentifierEqualsFauxHyponymOfSimpleNameOfTypeBinding(I id, TB type, boolean caseSensitive)booleannameOfIdentifierEqualsSimpleNameOfTypeBinding(I id, TB type, boolean caseSensitive)Test whether the given identifier matches the simple name of the given type binding.booleannameOfReferentEqualsIdentifier(Referent<TB,S,I,QI> referent, I id, boolean caseSensitive)booleannameOfReferentMatchesConceptualTypeOfIdentifier(Referent<TB,S,I,QI> referent, I id, boolean caseSensitive)Returns true, if the name of the referent matches a suffix of the identifier.
-
Method Details
-
isSimpleName
-
getIdentifierOfSimpleName
-
nameOfReferentEqualsIdentifier
-
nameOfReferentMatchesConceptualTypeOfIdentifier
boolean nameOfReferentMatchesConceptualTypeOfIdentifier(Referent<TB,S,I,QI> referent, I id, boolean caseSensitive)Returns true, if the name of the referent matches a suffix of the identifier.- Parameters:
referent- the referent whose name to matchid- the id to matchcaseSensitive- whether case should be considered during matching- Returns:
true, if the name of the referent matches a suffix of the identifier,falseotherwise (including when the referent has no name).- See Also:
Referent.hasName()
-
getFeaturesRemainingInIdentifierBesidesConceptualTypeOfReferentName
FeatureContainer<QI> getFeaturesRemainingInIdentifierBesidesConceptualTypeOfReferentName(I id, Referent<TB,S,I,QI> referent, boolean caseSensitive) -
nameOfIdentifierEqualsSimpleNameOfTypeBinding
Test whether the given identifier matches the simple name of the given type binding. TODO: Add the possibility to match prefix/suffix- Parameters:
id- The identifier to match.type- The typing binding whose simple name is to be matched.caseSensitive- True, if case is to be considered, false, if it is to be ignored. TODO: What about the initial character?- Returns:
- True, if the identifier matches the simple name of the type binding, false otherwise.
-
conceptualTypeInIdentifierEqualsSimpleNameOfType
-
getFeaturesRemainingInIdentifierBesidesConceptualTypeOfReferentType
FeatureContainer<QI> getFeaturesRemainingInIdentifierBesidesConceptualTypeOfReferentType(I id, TB referentType, boolean caseSensitive) -
nameOfIdentifierEqualsFauxHyponymOfSimpleNameOfTypeBinding
boolean nameOfIdentifierEqualsFauxHyponymOfSimpleNameOfTypeBinding(I id, TB type, boolean caseSensitive) -
conceptualTypeInIdentifierEqualsFauxHyponymyOfSimpleNameOfType
boolean conceptualTypeInIdentifierEqualsFauxHyponymyOfSimpleNameOfType(I id, TB type, boolean caseSensitive) -
getFeaturesRemainingInIdentifierBesidesConceptualTypeOfReferentTypeWithFauxHyponymy
FeatureContainer<QI> getFeaturesRemainingInIdentifierBesidesConceptualTypeOfReferentTypeWithFauxHyponymy(I id, TB type, boolean caseSensitive) -
createPositionForExpression
PP createPositionForExpression(E expression, Predicate<EV> condition, List<Perspectivation> perspectivations) -
getLength
-