Java org.eclipse.jdt.core.jdom IDOMNode fields, constructors, methods, implement or subclass

Example usage for Java org.eclipse.jdt.core.jdom IDOMNode fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.eclipse.jdt.core.jdom IDOMNode.

The text is from its open source code.

Field

intCOMPILATION_UNIT
Node type constant indicating a compilation unit.
intPACKAGE
Node type constant indicating a package declaration.
intIMPORT
Node type constant indicating an import declaration.
intTYPE
Node type constant indicating a type declaration.
intFIELD
Node type constant indicating a field declaration.
intMETHOD
Node type constant indicating a method (or constructor) declaration.
intINITIALIZER
Node type constant indicating an initializer declaration.

Method

voidaddChild(IDOMNode child)
Adds the given un-parented node (document fragment) as the last child of this node.
Objectclone()
Returns a stand-alone copy of the document fragment represented by this node that is in no way dependent on the document this node is part of.
EnumerationgetChildren()
Returns an enumeration of children of this node.
StringgetContents()
Returns the current contents of this document fragment.
IDOMNodegetFirstChild()
Returns the first child of this node.
StringgetName()
Returns the name of this node.
IDOMNodegetNextNode()
Returns the sibling node immediately following this node.
intgetNodeType()
Returns the type of this node.
IDOMNodegetParent()
Returns the parent of this node.
IDOMNodegetPreviousNode()
Returns the sibling node immediately preceding this node.
voidinsertSibling(IDOMNode sibling)
Inserts the given un-parented node as a sibling of this node, immediately before this node.
voidremove()
Separates this node from its parent and siblings, maintaining any ties that this node has to the underlying document fragment.