Package spoon.support.visitor
Class HashcodeVisitor
java.lang.Object
spoon.reflect.visitor.CtInheritanceScanner
spoon.support.visitor.HashcodeVisitor
- All Implemented Interfaces:
CtVisitor
Responsible for computing CtElement.hashCode().
Version that is fast and compatible with EqualVisitor
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
void
Generically scans a meta-model element.void
Scans an abstract named element.void
Scans an abstract reference.void
Visits an import declarationMethods inherited from class spoon.reflect.visitor.CtInheritanceScanner
scan, scanCtAbstractInvocation, scanCtAbstractSwitch, scanCtActualTypeContainer, scanCtArrayAccess, scanCtBodyHolder, scanCtCFlowBreak, scanCtCodeElement, scanCtCodeSnippet, scanCtElement, scanCtExecutable, scanCtExpression, scanCtFieldAccess, scanCtFormalTypeDeclarer, scanCtLabelledFlowBreak, scanCtLoop, scanCtModifiable, scanCtModuleDirective, scanCtMultiTypedElement, scanCtPattern, scanCtResource, scanCtRHSReceiver, scanCtSealable, scanCtShadowable, scanCtStatement, scanCtTargetedExpression, scanCtType, scanCtTypedElement, scanCtTypeInformation, scanCtTypeMember, scanCtVariable, scanCtVariableAccess, scanCtVariableReference, scanCtVisitable, visitCtAnnotation, visitCtAnnotationFieldAccess, visitCtAnnotationMethod, visitCtAnnotationType, visitCtAnonymousExecutable, visitCtArrayRead, visitCtArrayTypeReference, visitCtArrayWrite, visitCtAssert, visitCtAssignment, visitCtBinaryOperator, visitCtBlock, visitCtBreak, visitCtCase, visitCtCatch, visitCtCatchVariable, visitCtCatchVariableReference, visitCtClass, visitCtCodeSnippetExpression, visitCtCodeSnippetStatement, visitCtComment, visitCtCompilationUnit, visitCtConditional, visitCtConstructor, visitCtConstructorCall, visitCtContinue, visitCtDo, visitCtEnum, visitCtEnumValue, visitCtExecutableReference, visitCtExecutableReferenceExpression, visitCtField, visitCtFieldRead, visitCtFieldReference, visitCtFieldWrite, visitCtFor, visitCtForEach, visitCtIf, visitCtInterface, visitCtIntersectionTypeReference, visitCtInvocation, visitCtJavaDoc, visitCtJavaDocTag, visitCtLambda, visitCtLiteral, visitCtLocalVariable, visitCtLocalVariableReference, visitCtMethod, visitCtModule, visitCtModuleReference, visitCtModuleRequirement, visitCtNewArray, visitCtNewClass, visitCtOperatorAssignement, visitCtOperatorAssignment, visitCtPackage, visitCtPackageDeclaration, visitCtPackageExport, visitCtPackageReference, visitCtParameter, visitCtParameterReference, visitCtProvidedService, visitCtRecord, visitCtRecordComponent, visitCtReturn, visitCtStatementList, visitCtSuperAccess, visitCtSwitch, visitCtSwitchExpression, visitCtSynchronized, visitCtTextBlock, visitCtThisAccess, visitCtThrow, visitCtTry, visitCtTryWithResource, visitCtTypeAccess, visitCtTypeMemberWildcardImportReference, visitCtTypeParameter, visitCtTypeParameterReference, visitCtTypePattern, visitCtTypeReference, visitCtUnaryOperator, visitCtUnboundVariableReference, visitCtUsedService, visitCtVariableRead, visitCtVariableWrite, visitCtWhile, visitCtWildcardReference, visitCtYieldStatement
-
Constructor Details
-
HashcodeVisitor
public HashcodeVisitor()
-
-
Method Details
-
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
-
visitCtImport
Description copied from interface:CtVisitor
Visits an import declaration- Specified by:
visitCtImport
in interfaceCtVisitor
- Overrides:
visitCtImport
in classCtInheritanceScanner
-
scan
Description copied from class:CtInheritanceScanner
Generically scans a meta-model element.- Overrides:
scan
in classCtInheritanceScanner
-
getHasCode
public int getHasCode()
-