Class EquivalentAtmComboScanner.Visited
java.lang.Object
org.checkerframework.framework.type.visitor.EquivalentAtmComboScanner.Visited
- Enclosing class:
EquivalentAtmComboScanner<RETURN_TYPE,PARAM>
A history of type pairs that have already been visited and the return type of their visit.
-
Method Summary
Modifier and TypeMethodDescriptionvoidadd(AnnotatedTypeMirror type1, AnnotatedTypeMirror type2, RETURN_TYPE ret) Add a new pair to the history.voidclear()Clears the history.booleancontains(AnnotatedTypeMirror type1, AnnotatedTypeMirror type2) getResult(AnnotatedTypeMirror type1, AnnotatedTypeMirror type2) booleanisEmpty()Returns true if no pairs have been recorded.
-
Method Details
-
isEmpty
public boolean isEmpty()Returns true if no pairs have been recorded.- Returns:
- true if no pairs have been recorded
-
clear
public void clear()Clears the history. -
contains
-
getResult
-
add
Add a new pair to the history.- Parameters:
type1- the first typetype2- the second typeret- the result
-