/** * Determine whether two expressions are equivalent */ public boolean equals(Object o) { if (!(o instanceof FunctionCall)) { return false; } FunctionCall f = (FunctionCall)o; if (!getFunctionName().equals(f.getFunctionName())) { return false; } if (getNumberOfArguments() != f.getNumberOfArguments()) { return false; } for (int i=0; i<getNumberOfArguments(); i++) { if (!argument[i].equals(f.argument[i])) { return false; } } return true; }
/** * Determine whether two expressions are equivalent */ public boolean equals(Object o) { if (!(o instanceof FunctionCall)) { return false; } FunctionCall f = (FunctionCall)o; if (!getFunctionName().equals(f.getFunctionName())) { return false; } if (getNumberOfArguments() != f.getNumberOfArguments()) { return false; } for (int i=0; i<getNumberOfArguments(); i++) { if (!argument[i].equals(f.argument[i])) { return false; } } return true; }
/** * Determine whether two expressions are equivalent */ public boolean equals(Object o) { if (!(o instanceof FunctionCall)) { return false; } FunctionCall f = (FunctionCall)o; if (!getFunctionName().equals(f.getFunctionName())) { return false; } if (getNumberOfArguments() != f.getNumberOfArguments()) { return false; } for (int i=0; i<getNumberOfArguments(); i++) { if (!argument[i].equals(f.argument[i])) { return false; } } return true; }
/** * Get hashCode in support of equals() method */ public int hashCode() { int h = getFunctionName().hashCode(); for (int i=0; i<getNumberOfArguments(); i++) { h ^= argument[i].hashCode(); } return h; }
/** * Get hashCode in support of equals() method */ public int hashCode() { int h = getFunctionName().hashCode(); for (int i=0; i<getNumberOfArguments(); i++) { h ^= argument[i].hashCode(); } return h; }
/** * Get hashCode in support of equals() method */ public int hashCode() { int h = getFunctionName().hashCode(); for (int i=0; i<getNumberOfArguments(); i++) { h ^= argument[i].hashCode(); } return h; }
if (funcall.getNumberOfArguments() == 2) { if (funcall.getNumberOfArguments() != 3) { throw new LuxException ("call to subsequence has " + funcall.getNumberOfArguments() + " arguments?");