@Override public boolean replaceChild(Element child, Element by) { if (replaceChild(declarations, Declaration.class, this, child, by)) return true; return super.replaceChild(child, by); }
@Override public boolean replaceChild(Element child, Element by) { if (super.replaceChild(child, by)) return true; return replaceChild(declarators, Declarator.class, this, child, by); } }
@Override public boolean replaceChild(Element child, Element by) { if (child.equals(getTaggedTypeRef())) { setTaggedTypeRef((TaggedTypeRef)by); return true; } return super.replaceChild(child, by); }
@Override public boolean replaceChild(Element child, Element by) { if (child == getDeclaration()) { setDeclaration((Declaration)by); return true; } return super.replaceChild(child, by); } }
@Override public boolean replaceChild(Element child, Element by) { if (child == getDefaultValue()) { setDefaultValue((Expression) by); return true; } return super.replaceChild(child, by); }
@Override public boolean replaceChild(Element child, Element by) { if (child == getStatement()) { setStatement((Statement)by); return true; } return super.replaceChild(child, by); }
@Override public boolean replaceChild(Element child, Element by) { if (child == getValue()) { setValue((Expression) by); return true; } return super.replaceChild(child, by); }
@Override public boolean replaceChild(Element child, Element by) { if (child == getFriend()) { setFriend((Declaration) by); return true; } return super.replaceChild(child, by); } public FriendDeclaration(Declaration friend) {
@Override public boolean replaceChild(Element child, Element by) { if (replaceChild(args, Arg.class, this, child, by)) return true; if (getDeclaration() == child) { setDeclaration((Declaration)by); return true; } return super.replaceChild(child, by); }
@Override public boolean replaceChild(Element child, Element by) { if (child == getDefaultValue()) { setDefaultValue((Expression) by); return true; } if (child == getDeclarator()) { setDeclarator((Declarator) by); return true; } return super.replaceChild(child, by); }
@Override public boolean replaceChild(Element child, Element by) { if (child == getBody()) { setBody((Statement.Block)by); return true; } if (child == getName()) { setName((Identifier)by); return true; } if (replaceChild(args, Arg.class, this, child, by)) return true; if (replaceChild(thrown, TypeRef.class, this, child, by)) return true; if (replaceChild(initializers, FunctionCall.class, this, child, by)) return true; return super.replaceChild(child, by); }