public void copyUserDataFrom(final AstNode source) { VerifyArgument.notNull(source, "source"); for (final Key<?> key : Keys.ALL_KEYS) { copyKey(source, this, key); } }
public void copyUserDataFrom(final AstNode source) { VerifyArgument.notNull(source, "source"); for (final Key<?> key : Keys.ALL_KEYS) { copyKey(source, this, key); } }
public void copyUserDataFrom(final AstNode source) { VerifyArgument.notNull(source, "source"); for (final Key<?> key : Keys.ALL_KEYS) { copyKey(source, this, key); } }
@Override @SuppressWarnings("CloneDoesntDeclareCloneNotSupportedException") public AstNode clone() { try { final AstNode clone = (AstNode) super.clone(); clone._parent = null; clone._firstChild = null; clone._lastChild = null; clone._previousSibling = null; clone._nextSibling = null; clone.flags &= ~FROZEN_BIT; for (final Key<?> key : Keys.ALL_KEYS) { copyKey(this, clone, key); } for (AstNode current = _firstChild; current != null; current = current._nextSibling) { clone.addChildUnsafe(current.clone(), current.getRole()); } // clone.cloneAnnotations(); return clone; } catch (CloneNotSupportedException e) { throw new UndeclaredThrowableException(e); } }
@Override @SuppressWarnings("CloneDoesntDeclareCloneNotSupportedException") public AstNode clone() { try { final AstNode clone = (AstNode) super.clone(); clone._parent = null; clone._firstChild = null; clone._lastChild = null; clone._previousSibling = null; clone._nextSibling = null; clone.flags &= ~FROZEN_BIT; for (final Key<?> key : Keys.ALL_KEYS) { copyKey(this, clone, key); } for (AstNode current = _firstChild; current != null; current = current._nextSibling) { clone.addChildUnsafe(current.clone(), current.getRole()); } // clone.cloneAnnotations(); return clone; } catch (CloneNotSupportedException e) { throw new UndeclaredThrowableException(e); } }
@Override @SuppressWarnings("CloneDoesntDeclareCloneNotSupportedException") public AstNode clone() { try { final AstNode clone = (AstNode) super.clone(); clone._parent = null; clone._firstChild = null; clone._lastChild = null; clone._previousSibling = null; clone._nextSibling = null; clone.flags &= ~FROZEN_BIT; for (final Key<?> key : Keys.ALL_KEYS) { copyKey(this, clone, key); } for (AstNode current = _firstChild; current != null; current = current._nextSibling) { clone.addChildUnsafe(current.clone(), current.getRole()); } // clone.cloneAnnotations(); return clone; } catch (CloneNotSupportedException e) { throw new UndeclaredThrowableException(e); } }