public abstract class AbstractHashedPatternRules
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected IExpr |
fLHSPattern1 |
protected IExpr |
fLHSPattern2 |
protected RulesData |
fRulesData |
protected int |
hash1 |
protected int |
hash2 |
protected int |
hashSum |
Constructor and Description |
---|
AbstractHashedPatternRules(IExpr lhsPattern1,
IExpr lhsPattern2,
boolean defaultHashCode) |
Modifier and Type | Method and Description |
---|---|
static int |
calculateHashcode(int h1,
int h2)
Symmetric hash code.
|
abstract IExpr |
evalDownRule(IExpr e1,
IExpr e2) |
int |
getHash1()
Get the hash value for the first LHS expression.
|
int |
getHash2()
Get the hash value for the second LHS expression.
|
int |
hashCode() |
boolean |
isPattern1()
Test if the first left-hand-side is a pattern object
|
boolean |
isPattern2()
Test if the second left-hand-side is a pattern object
|
protected int hash1
protected int hash2
protected int hashSum
protected RulesData fRulesData
protected final IExpr fLHSPattern1
protected final IExpr fLHSPattern2
public int hashCode()
hashCode
in class java.lang.Object
public static int calculateHashcode(int h1, int h2)
h1
- h2
- public int getHash1()
public int getHash2()
public boolean isPattern1()
public boolean isPattern2()