Example #1
0
  @Override
  public Boolean visit(final MemberValuePair n1, final Node arg) {
    final MemberValuePair n2 = (MemberValuePair) arg;

    if (!objEquals(n1.getName(), n2.getName())) {
      return Boolean.FALSE;
    }

    if (!nodeEquals(n1.getValue(), n2.getValue())) {
      return Boolean.FALSE;
    }

    return Boolean.TRUE;
  }
 /*
  * @see ASTVisitor#visit(MemberValuePair)
  * @since 3.0
  */
 @Override
 public boolean visit(MemberValuePair node) {
   node.getName().accept(this);
   this.fBuffer.append("="); // $NON-NLS-1$
   node.getValue().accept(this);
   return false;
 }