You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

NodeImpl.java 633B

123456789101112131415161718192021
  1. package bugsOtherPackage;
  2. import java.util.ArrayList;
  3. public abstract aspect NodeImpl<Parent, Child> {
  4. declare parents : Child implements INode<Parent, Child>;
  5. declare parents : Parent implements INode<Parent, Child>;
  6. private final ArrayList<INode> INode.fChildren = new ArrayList<INode>();
  7. // are you not supposed to use type parameters here?
  8. private INode<Parent, Child> INode.fParent;
  9. public final INode<Parent, Child> INode.getParent() {
  10. return fParent;
  11. }
  12. public final boolean INode.setParent(INode<Parent, Child> newParent) {
  13. fParent = newParent;
  14. return true;
  15. }
  16. }