/** * Clone the Node */ @Override public ExprNode clone() { return super.clone(); }
/** * Clone the Node */ @Override public ExprNode clone() { ExprNode clone = (ExprNode)super.clone(); if ( anyPattern != null ) { ((SubstringNode)clone).anyPattern = new ArrayList<String>(); for ( String any:anyPattern ) { ((SubstringNode)clone).anyPattern.add( any ); } } return clone; }
/** * Clone the Node */ @Override public ExprNode clone() { ExprNode clone = super.clone(); // Clone the value ((SimpleNode<T>)clone).value = value.clone(); return clone; }
/** * 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(); // Copy the value if ( value != null ) { ((ExtensibleNode)clone).value = value.clone(); } return clone; }