Schnittstelle IDOMInitializer

Alle Superschnittstellen:
Cloneable, IDOMMember, IDOMNode

public interface IDOMInitializer extends IDOMMember
Veraltet.
The JDOM was made obsolete by the addition in 2.0 of the more powerful, fine-grained DOM/AST API found in the org.eclipse.jdt.core.dom package.
Represents an initializer. The corresponding syntactic units are InstanceInitializer (JLS2 8.6) and StaticDeclaration (JLS2 8.7). An initializer has no children and its parent is a type.
  • Methodendetails

    • getBody

      String getBody()
      Veraltet.
      Returns the body of this initializer. The syntax for a body corresponds to InstanceInitializer (JLS2 8.6) and StaticDeclaration (JLS2 8.7).
      Gibt zurück:
      an initializer body, including braces, or null if no body is present
    • getName

      String getName()
      Veraltet.
      The IDOMInitializer refinement of this IDOMNode method returns null. An initializer does not have a name.
      Angegeben von:
      getName in Schnittstelle IDOMNode
      Gibt zurück:
      null
    • setBody

      void setBody(String body)
      Veraltet.
      Sets the body of this initializer. The syntax for a body corresponds to InstanceInitializer (JLS2 8.6) and StaticDeclaration (JLS2 8.7). No formatting or syntax checking is performed on the body. Braces must be included.
      Parameter:
      body - an initializer body, including braces, or null indicating no body
    • setName

      void setName(String name)
      Veraltet.
      The IDOMInitializer refinement of this IDOMNode method does nothing.
      Angegeben von:
      setName in Schnittstelle IDOMNode
      Parameter:
      name - the given name