All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.sf.mmm.code.api.member.CodeMembers Maven / Gradle / Ivy

There is a newer version: 1.0.0-beta7
Show newest version
/* Copyright (c) The m-m-m Team, Licensed under the Apache License, Version 2.0
 * http://www.apache.org/licenses/LICENSE-2.0 */
package net.sf.mmm.code.api.member;

import net.sf.mmm.code.api.item.CodeItem;
import net.sf.mmm.code.api.item.CodeItemWithDeclaringType;
import net.sf.mmm.code.api.node.CodeNodeItemContainer;
import net.sf.mmm.code.api.type.CodeType;

/**
 * {@link CodeItem} that groups all {@link CodeMember}s of a type.
 *
 * @author Joerg Hohwiller (hohwille at users.sourceforge.net)
 * @param  type of the contained {@link CodeMember}s.
 * @since 1.0.0
 */
public abstract interface CodeMembers extends CodeNodeItemContainer, CodeItemWithDeclaringType {

  @Override
  CodeType getParent();

  @Override
  CodeMembers copy();

  /**
   * @param member the member to add. If its {@link CodeMember#getParent() parent} does not point to this
   *        {@link CodeMembers}, it will be {@link CodeMember#copy() copied}.
   */
  void add(M member);

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy