org.eclipse.emf.codegen.merge.java.facade.jdom
Class JDOMJNode

java.lang.Object
  extended byorg.eclipse.emf.codegen.merge.java.facade.AbstractJNode
      extended byorg.eclipse.emf.codegen.merge.java.facade.jdom.JDOMJNode
All Implemented Interfaces:
JNode
Direct Known Subclasses:
JDOMJCompilationUnit, JDOMJImport, JDOMJMember, JDOMJPackage

public abstract class JDOMJNode
extends AbstractJNode

Since:
2.2.0

Field Summary
 
Fields inherited from class org.eclipse.emf.codegen.merge.java.facade.AbstractJNode
EMPTY_STRING_ARRAY, facadeHelper, qualifiedName, wrappedObject
 
Constructor Summary
protected JDOMJNode(org.eclipse.jdt.core.jdom.IDOMNode idomNode)
           
 
Method Summary
 List getChildren()
          Returns the children of this node.
 String getContents()
          Returns the current contents of this document fragment.
 int getFlags()
          Returns the modifier flags for this node.
protected  org.eclipse.jdt.core.jdom.IDOMNode getIDOMNode()
           
 String getName()
          Returns the name of this node.
 JNode getParent()
          Returns the parent of this node.
 void setFlags(int flags)
          Sets the flags for this member.
 
Methods inherited from class org.eclipse.emf.codegen.merge.java.facade.AbstractJNode
computeQualifiedName, computeQualifiedName, computeQualifiedName, computeQualifiedName, dispose, getFacadeHelper, getName, getQualifiedName, getWrappedObject, setFacadeHelper
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JDOMJNode

protected JDOMJNode(org.eclipse.jdt.core.jdom.IDOMNode idomNode)
Method Detail

getIDOMNode

protected org.eclipse.jdt.core.jdom.IDOMNode getIDOMNode()

getName

public String getName()
Description copied from interface: JNode
Returns the name of this node.

Returns:
the name, or null if it has no name

getFlags

public int getFlags()
Description copied from interface: JNode
Returns the modifier flags for this node. The flags can be examined using class FacadeFlags.


setFlags

public void setFlags(int flags)
Description copied from interface: JNode
Sets the flags for this member. The flags can be examined using the FacadeFlags class.

Parameters:
flags - the flags

getContents

public String getContents()
Description copied from interface: JNode
Returns the current contents of this document fragment.

Note: To obtain complete source for the ".java" file, ask a compilation unit node for its contents.

Returns:
the contents, or null if this node has no contents

getParent

public JNode getParent()
Description copied from interface: JNode
Returns the parent of this node.

Returns:
the parent node, or null if this node does not have a parent

getChildren

public List getChildren()
Description copied from interface: JNode
Returns the children of this node. Returns an empty list if this node has no children (including nodes that cannot have children). Children appear in the order in which they are declared in the source code.

The list must be unmodifiable if the implementation doesn't support direct manipulation.

Returns:
a list of the children

Copyright 2001-2006 IBM Corporation and others.
All Rights Reserved.