/** * Makes a full clone in new memory space of the current node and children * * @return the clone */ @Override public ExprNode clone() { return super.clone(); }
/** * @return representation of value, escaped for use in a filter if required */ public Value<?> getEscapedValue() { return AbstractExprNode.escapeFilterValue( value ); }
/** * @see Object#hashCode() * @return the instance's hash code */ public int hashCode() { int h = 37; h = h*17 + super.hashCode(); h = h*17 + attribute.hashCode(); return h; }
/** * @see Object#toString * @return A string representing the AndNode */ public String toString() { StringBuilder buf = new StringBuilder(); buf.append( "(@" ); buf.append( desc ); buf.append( super.toString() ); buf.append( ')' ); return buf.toString(); } }
buf.append( aliasDerefAliases ); buf.append( "}" ); buf.append( super.toString() ); buf.append( ')' );
/** * @see Object#hashCode() * @return the instance's hash code */ public int hashCode() { int h = 37; h = h*17 + super.hashCode(); h = h*17 + ( assertion != null ? assertion.hashCode() : 0 ); h = h*17 + ( desc != null ? desc.hashCode() : 0 ); return h; }
/** * Makes a full clone in new memory space of the current node and children * * @return the clone */ @Override public ExprNode clone() { return (ExprNode)super.clone(); }
/** * @return representation of value, escaped for use in a filter if required */ public Value<?> getEscapedValue() { if ( !value.isBinary() ) { return AbstractExprNode.escapeFilterValue( value ); } return value; }
/** * (non-Javadoc) * * @see Object#hashCode() * @return the instance's hash code */ public int hashCode() { int h = 37; h = h*17 + super.hashCode(); if ( children != null ) { for ( ExprNode child:children ) { h = h*17 + child.hashCode(); } } return h; }
/** * Makes a full clone in new memory space of the current node and children * * @return the clone */ @Override public ExprNode clone() { return super.clone(); }
buf.append( AbstractExprNode.escapeFilterValue( new StringValue( initialPattern ) ) ).append( '*' ); buf.append( AbstractExprNode.escapeFilterValue( new StringValue( any ) ) ); buf.append( '*' ); buf.append( AbstractExprNode.escapeFilterValue( new StringValue( finalPattern ) ) );
/** * @see Object#hashCode() * @return the instance's hash code */ public int hashCode() { int h = 37; h = h*17 + super.hashCode(); h = h*17 + ( aliasDerefAliases != null ? aliasDerefAliases.hashCode() : 0 ); h = h*17 + ( baseDn != null ? baseDn.hashCode() : 0 ); h = h*17 + scope.getScope(); return h; }
/** * Makes a full clone in new memory space of the current node and children * * @return the clone */ @Override public ExprNode clone() { ExprNode clone = (ExprNode)super.clone(); // Clone the children if ( children != null ) { ((BranchNode)clone).children = new ArrayList<ExprNode>(); for ( ExprNode child : children ) { ((BranchNode)clone).children.add( (ExprNode)child.clone() ); } } return clone; }