Ejemplo n.º 1
0
 @Override
 protected Boolean visitItemAccessNode(ItemAccessNode node) {
   ItemAccessNode typedOther = (ItemAccessNode) other;
   return equivalent(node.getBaseExprChild(), typedOther.getBaseExprChild())
       && equivalent(node.getKeyExprChild(), typedOther.getKeyExprChild())
       && node.isNullSafe() == typedOther.isNullSafe();
 }
Ejemplo n.º 2
0
 @Override
 protected Integer visitItemAccessNode(ItemAccessNode node) {
   return Objects.hash(
       wrap(node.getBaseExprChild()), wrap(node.getKeyExprChild()), node.isNullSafe());
 }