}
private void fixStuff() {
- //This is an evil hack...we should fix this stuff elsewhere...
- if (!isMultiObject) {
- arity=ARITY_ONE;
- } else {
- if (arity==ARITY_ONEORMORE)
- arity=ARITY_ZEROORMORE;
- }
+ //This is an evil hack...we should fix this stuff elsewhere...
+ if (!isMultiObject) {
+ arity=ARITY_ONE;
+ } else {
+ if (arity==ARITY_ONEORMORE)
+ arity=ARITY_ZEROORMORE;
+ }
}
// when two tokens are present (absence of a token is arity=zero and is
// handled outside of this method)
if( arity == ARITY_ZEROORMORE && tt.arity == ARITY_ZEROORMORE ) {
- return new TokenTuple(token, true, ARITY_ZEROORMORE).makeCanonical();
+ return new TokenTuple(token, true, ARITY_ZEROORMORE).makeCanonical();
} else {
- return new TokenTuple(token, true, ARITY_ONEORMORE).makeCanonical();
+ return new TokenTuple(token, true, ARITY_ONEORMORE).makeCanonical();
}
} else {
// a single object region's token can only have ZEROORMORE or ONE
if( arity == ARITY_ZEROORMORE && tt.arity == ARITY_ZEROORMORE ) {
- return new TokenTuple(token, false, ARITY_ZEROORMORE).makeCanonical();
+ return new TokenTuple(token, false, ARITY_ZEROORMORE).makeCanonical();
} else {
- return new TokenTuple(token, false, ARITY_ONE).makeCanonical();
+ return new TokenTuple(token, false, ARITY_ONE).makeCanonical();
}
}
}
}
public int hashCode() {
- return (token.intValue() << 2) ^ arity;
+ return (token.intValue() << 2) ^ arity;
}