KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > jdt > core > jdom > IDOMInitializer


1 /*******************************************************************************
2  * Copyright (c) 2000, 2006 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Eclipse Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/epl-v10.html
7  *
8  * Contributors:
9  * IBM Corporation - initial API and implementation
10  *******************************************************************************/

11 package org.eclipse.jdt.core.jdom;
12
13 /**
14  * Represents an initializer. The corresponding syntactic
15  * units are InstanceInitializer (JLS2 8.6) and StaticDeclaration (JLS2 8.7).
16  * An initializer has no children and its parent is a type.
17  * <p>
18  * This interface is not intended to be implemented by clients.
19  * </p>
20  * @deprecated The JDOM was made obsolete by the addition in 2.0 of the more
21  * powerful, fine-grained DOM/AST API found in the
22  * org.eclipse.jdt.core.dom package.
23  */

24 public interface IDOMInitializer extends IDOMMember {
25 /**
26  * Returns the body of this initializer. The syntax for a body corresponds to
27  * InstanceInitializer (JLS2 8.6) and StaticDeclaration (JLS2 8.7).
28  *
29  * @return an initializer body, including braces, or <code>null</code> if
30  * no body is present
31  */

32 public String JavaDoc getBody();
33 /**
34  * The <code>IDOMInitializer</code> refinement of this <code>IDOMNode</code>
35  * method returns <code>null</code>. An initializer does not have a name.
36  *
37  * @return <code>null</code>
38  */

39 public String JavaDoc getName();
40 /**
41  * Sets the body of this initializer. The syntax for a body corresponds to
42  * InstanceInitializer (JLS2 8.6) and StaticDeclaration (JLS2 8.7). No formatting
43  * or syntax checking is performed on the body. Braces <b>must</b> be included.
44  *
45  * @param body an initializer body, including braces, or <code>null</code>
46  * indicating no body
47  */

48 public void setBody(String JavaDoc body);
49 /**
50  * The <code>IDOMInitializer</code> refinement of this <code>IDOMNode</code>
51  * method does nothing.
52  *
53  * @param name the given name
54  */

55 public void setName(String JavaDoc name);
56 }
57
Popular Tags