org.eclipse.emf.codegen.merge.java.facade.ast
Class ASTJNode

java.lang.Object
  extended byorg.eclipse.emf.codegen.merge.java.facade.AbstractJNode
      extended byorg.eclipse.emf.codegen.merge.java.facade.ast.ASTJNode
All Implemented Interfaces:
JNode
Direct Known Subclasses:
ASTJCompilationUnit, ASTJImport, ASTJMember, ASTJPackage

public abstract class ASTJNode
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 ASTJNode(org.eclipse.jdt.core.dom.ASTNode astNode)
           
 
Method Summary
protected  org.eclipse.jdt.core.dom.ASTNode getASTNode()
           
 List getChildren()
          Returns the children of this node.
 String getContents()
          Returns the current contents of this document fragment.
protected  String getContents(org.eclipse.jdt.core.dom.ASTNode astNode)
           
 int getFlags()
          Returns the modifier flags for this node.
 JNode getParent()
          Returns the parent of this node.
 void setFlags(int flags)
          Sets the flags for this member.
protected  String toString(org.eclipse.jdt.core.dom.Javadoc javadoc)
           
 
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
 
Methods inherited from interface org.eclipse.emf.codegen.merge.java.facade.JNode
getName
 

Constructor Detail

ASTJNode

protected ASTJNode(org.eclipse.jdt.core.dom.ASTNode astNode)
Method Detail

getASTNode

protected org.eclipse.jdt.core.dom.ASTNode getASTNode()

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

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

getFlags

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


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

getContents

protected String getContents(org.eclipse.jdt.core.dom.ASTNode astNode)

toString

protected String toString(org.eclipse.jdt.core.dom.Javadoc javadoc)

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