Package spoon.support.visitor.equals
Class EqualsChecker
java.lang.Object
spoon.reflect.visitor.CtInheritanceScanner
spoon.support.visitor.equals.EqualsChecker
- All Implemented Interfaces:
CtVisitor
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
void
scanCtCodeSnippet(CtCodeSnippet snippet)
void
Scans an abstract modifiable element.void
Scans an abstract named element.void
scanCtReference(CtReference reference)
Scans an abstract reference.void
Scans an abstract statement.protected void
setNotEqual(CtRole role)
void
<T> void
Visits a reference to an array type.<T, A extends T>
voidvisitCtAssignment(CtAssignment<T,A> assignment)
Visits an assignment.<T> void
Visits a binary operator.void
visitCtBreak(CtBreak e)
Visits abreak
statement.void
Visits acontinue
statement.<T> void
Visits a reference to an executable.void
visitCtImport(CtImport ctImport)
Visits an import declaration<T> void
visitCtLiteral(CtLiteral<T> e)
Visits a literal expression.<T> void
visitCtMethod(CtMethod<T> e)
Visits a method declaration.<T, A extends T>
voidvisitCtOperatorAssignment(CtOperatorAssignment<T,A> assignment)
Visits an operator assignment.<T> void
visitCtParameter(CtParameter<T> e)
Visits a parameter declaration.void
Visits a literal TextBlock string.<T> void
Visits a unary operator.Methods inherited from class spoon.reflect.visitor.CtInheritanceScanner
scan, scan, scanCtAbstractInvocation, scanCtAbstractSwitch, scanCtActualTypeContainer, scanCtArrayAccess, scanCtBodyHolder, scanCtCFlowBreak, scanCtCodeElement, scanCtElement, scanCtExecutable, scanCtExpression, scanCtFieldAccess, scanCtFormalTypeDeclarer, scanCtLabelledFlowBreak, scanCtLoop, scanCtModuleDirective, scanCtMultiTypedElement, scanCtPattern, scanCtResource, scanCtRHSReceiver, scanCtSealable, scanCtShadowable, scanCtTargetedExpression, scanCtType, scanCtTypedElement, scanCtTypeInformation, scanCtTypeMember, scanCtVariable, scanCtVariableAccess, scanCtVariableReference, scanCtVisitable, visitCtAnnotation, visitCtAnnotationFieldAccess, visitCtAnnotationMethod, visitCtAnnotationType, visitCtAnonymousExecutable, visitCtArrayRead, visitCtArrayWrite, visitCtAssert, visitCtBlock, visitCtCase, visitCtCatch, visitCtCatchVariable, visitCtCatchVariableReference, visitCtClass, visitCtCodeSnippetExpression, visitCtCodeSnippetStatement, visitCtComment, visitCtCompilationUnit, visitCtConditional, visitCtConstructor, visitCtConstructorCall, visitCtDo, visitCtEnum, visitCtEnumValue, visitCtExecutableReferenceExpression, visitCtField, visitCtFieldRead, visitCtFieldReference, visitCtFieldWrite, visitCtFor, visitCtForEach, visitCtIf, visitCtInterface, visitCtIntersectionTypeReference, visitCtInvocation, visitCtJavaDoc, visitCtJavaDocTag, visitCtLambda, visitCtLocalVariable, visitCtLocalVariableReference, visitCtModule, visitCtModuleReference, visitCtModuleRequirement, visitCtNewArray, visitCtNewClass, visitCtOperatorAssignement, visitCtPackage, visitCtPackageDeclaration, visitCtPackageExport, visitCtPackageReference, visitCtParameterReference, visitCtProvidedService, visitCtRecord, visitCtRecordComponent, visitCtReturn, visitCtStatementList, visitCtSuperAccess, visitCtSwitch, visitCtSwitchExpression, visitCtSynchronized, visitCtThisAccess, visitCtThrow, visitCtTry, visitCtTryWithResource, visitCtTypeAccess, visitCtTypeMemberWildcardImportReference, visitCtTypeParameter, visitCtTypeParameterReference, visitCtTypePattern, visitCtTypeReference, visitCtUnboundVariableReference, visitCtUsedService, visitCtVariableRead, visitCtVariableWrite, visitCtWhile, visitCtWildcardReference, visitCtYieldStatement
-
Field Details
-
other
-
-
Constructor Details
-
EqualsChecker
public EqualsChecker()
-
-
Method Details
-
setOther
-
isNotEqual
public boolean isNotEqual() -
getNotEqualRole
-
setNotEqual
- Parameters:
role
- the role of the not equal attribute, or null if there is no such role
-
scanCtNamedElement
Description copied from class:CtInheritanceScanner
Scans an abstract named element.- Overrides:
scanCtNamedElement
in classCtInheritanceScanner
-
scanCtReference
Description copied from class:CtInheritanceScanner
Scans an abstract reference.- Overrides:
scanCtReference
in classCtInheritanceScanner
-
scanCtStatement
Description copied from class:CtInheritanceScanner
Scans an abstract statement.- Overrides:
scanCtStatement
in classCtInheritanceScanner
-
scanCtModifiable
Description copied from class:CtInheritanceScanner
Scans an abstract modifiable element.- Overrides:
scanCtModifiable
in classCtInheritanceScanner
-
scanCtCodeSnippet
- Overrides:
scanCtCodeSnippet
in classCtInheritanceScanner
-
visitCtAssignment
Description copied from interface:CtVisitor
Visits an assignment.- Specified by:
visitCtAssignment
in interfaceCtVisitor
- Overrides:
visitCtAssignment
in classCtInheritanceScanner
-
visitCtOperatorAssignment
Description copied from interface:CtVisitor
Visits an operator assignment.- Specified by:
visitCtOperatorAssignment
in interfaceCtVisitor
- Overrides:
visitCtOperatorAssignment
in classCtInheritanceScanner
-
visitCtBinaryOperator
Description copied from interface:CtVisitor
Visits a binary operator.- Specified by:
visitCtBinaryOperator
in interfaceCtVisitor
- Overrides:
visitCtBinaryOperator
in classCtInheritanceScanner
-
visitCtUnaryOperator
Description copied from interface:CtVisitor
Visits a unary operator.- Specified by:
visitCtUnaryOperator
in interfaceCtVisitor
- Overrides:
visitCtUnaryOperator
in classCtInheritanceScanner
-
visitCtArrayTypeReference
Description copied from interface:CtVisitor
Visits a reference to an array type.- Specified by:
visitCtArrayTypeReference
in interfaceCtVisitor
- Overrides:
visitCtArrayTypeReference
in classCtInheritanceScanner
-
visitCtBreak
Description copied from interface:CtVisitor
Visits abreak
statement.- Specified by:
visitCtBreak
in interfaceCtVisitor
- Overrides:
visitCtBreak
in classCtInheritanceScanner
-
visitCtContinue
Description copied from interface:CtVisitor
Visits acontinue
statement.- Specified by:
visitCtContinue
in interfaceCtVisitor
- Overrides:
visitCtContinue
in classCtInheritanceScanner
-
visitCtExecutableReference
Description copied from interface:CtVisitor
Visits a reference to an executable.- Specified by:
visitCtExecutableReference
in interfaceCtVisitor
- Overrides:
visitCtExecutableReference
in classCtInheritanceScanner
-
visitCtMethod
Description copied from interface:CtVisitor
Visits a method declaration.- Specified by:
visitCtMethod
in interfaceCtVisitor
- Overrides:
visitCtMethod
in classCtInheritanceScanner
-
visitCtParameter
Description copied from interface:CtVisitor
Visits a parameter declaration.- Specified by:
visitCtParameter
in interfaceCtVisitor
- Overrides:
visitCtParameter
in classCtInheritanceScanner
-
visitCtLiteral
Description copied from interface:CtVisitor
Visits a literal expression.- Specified by:
visitCtLiteral
in interfaceCtVisitor
- Overrides:
visitCtLiteral
in classCtInheritanceScanner
-
visitCtTextBlock
Description copied from interface:CtVisitor
Visits a literal TextBlock string.- Specified by:
visitCtTextBlock
in interfaceCtVisitor
- Overrides:
visitCtTextBlock
in classCtInheritanceScanner
-
visitCtImport
Description copied from interface:CtVisitor
Visits an import declaration- Specified by:
visitCtImport
in interfaceCtVisitor
- Overrides:
visitCtImport
in classCtInheritanceScanner
-