1 /*******************************************************************************
2 * Copyright (c) 2000, 2003 IBM Corporation and others.
3 * All rights reserved. This program and the accompanying materials
4 * are made available under the terms of the Common Public License v1.0
5 * which accompanies this distribution, and is available at
6 * http://www.eclipse.org/legal/cpl-v10.html
9 * IBM Corporation - initial API and implementation
10 *******************************************************************************/
11 package net.sourceforge.phpdt.core.jdom;
14 * An <code>IDOMMember</code> defines functionality common to nodes, which
15 * can be members of types.
17 * This interface is not intended to be implemented by clients.
23 * @see IDOMInitializer
25 public interface IDOMMember extends IDOMNode {
27 * Returns the comment associated with this member (including comment delimiters).
29 * @return the comment, or <code>null</code> if this member has no associated
32 public String getComment();
34 * Returns the flags for this member. The flags can be examined using the
35 * <code>Flags</code> class.
38 * @see org.eclipse.jdt.core.Flags
40 public int getFlags();
42 * Sets the comment associated with this member. The comment will appear
43 * before the member in the source. The comment must be properly formatted, including
44 * delimiters. A <code>null</code> comment indicates no comment. This member's
45 * deprecated flag is automatically set to reflect the deprecated tag in the
48 * @param comment the comment, including comment delimiters, or
49 * <code>null</code> indicating this member should have no associated comment
52 public void setComment(String comment);
54 * Sets the flags for this member. The flags can be examined using the
55 * <code>Flags</code> class. The deprecated flag passed in is ignored.
57 * @param flags the flags
58 * @see org.eclipse.jdt.core.Flags
60 public void setFlags(int flags);