Package de.monochromata.ast
Interface AnaphoraResolutionApi<N,E,T,B,VB extends B,FB extends B,MB extends B,TB extends B,S,I,QI>
- Type Parameters:
N- The node type in the ASTE- The expression typeT- The type typeB- The binding typeVB- The variable binding typeFB- The field binding typeMB- The method binding typeTB- The type binding typeS- The scope type (optional)I- The type used to represent identifiersQI- The type used to represent qualified identifiers
public interface AnaphoraResolutionApi<N,E,T,B,VB extends B,FB extends B,MB extends B,TB extends B,S,I,QI>
A special service provider interface related to finding potential referents
of a given definite expression in a given related expression.
-
Method Summary
Modifier and Type Method Description booleancouldBeAPreviousRealization(E definiteExpression)booleandoesGetterMethodOnlyReturnValueOf(MB methodBinding, FB fieldBinding, S scope)List<FB>getAccessibleFields(TB typeBinding, S scope)List<MB>getAccessibleGetterMethods(TB typeBinding, S scope)StringgetFieldDescription(FB fieldBinding)IgetFieldName(FB fieldBinding)IgetIdFromPreviousRealization(E definiteExpression)StringgetMethodDescription(MB methodBinding)IgetMethodName(MB methodBinding)QIgetReferentName(MB methodBinding)Return a variable name for the given method that removes getter or setter prefix to the method name and converts the first character of the remaining string to lower case.booleanidentifierStartsUpperCase(I identifier)TBresolveReturnType(MB methodBinding, S scope)TBresolveType(FB fieldBinding, S scope)
-
Method Details
-
getAccessibleFields
-
getFieldName
-
identifierStartsUpperCase
-
getFieldDescription
-
resolveType
-
getAccessibleGetterMethods
-
doesGetterMethodOnlyReturnValueOf
-
getReferentName
Return a variable name for the given method that removes getter or setter prefix to the method name and converts the first character of the remaining string to lower case.- Parameters:
methodBinding- The method binding to use.- Returns:
- A variable name.
-
getMethodName
-
getMethodDescription
-
resolveReturnType
-
couldBeAPreviousRealization
-
getIdFromPreviousRealization
-