public abstract class NodeSpecificHasher extends java.lang.Object implements DuplocateVisitor
Constructor and Description |
---|
NodeSpecificHasher() |
Modifier and Type | Method and Description |
---|---|
abstract boolean |
areNodesEqual(PsiElement node1,
PsiElement node2)
This is dual function to getNodeCost, checks whether 2 nodes with same costs are really equal
|
boolean |
areTreesEqual(PsiElement root1,
PsiElement root2,
int discardCost) |
abstract boolean |
checkDeep(PsiElement node1,
PsiElement node2) |
abstract java.util.List<PsiElement> |
getNodeChildren(PsiElement node)
List all of the nodes to process within TreeComparator
|
abstract int |
getNodeCost(PsiElement node)
Used in TreeComparator and TreeHashers
|
abstract int |
getNodeHash(PsiElement node)
getNodeHash is called on each node, which was returned by getNodeChildren method
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
hashingFinished, visitNode
public abstract int getNodeHash(PsiElement node)
public abstract int getNodeCost(PsiElement node)
public abstract java.util.List<PsiElement> getNodeChildren(PsiElement node)
public abstract boolean areNodesEqual(PsiElement node1, PsiElement node2)
public boolean areTreesEqual(PsiElement root1, PsiElement root2, int discardCost)
public abstract boolean checkDeep(PsiElement node1, PsiElement node2)