|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.emf.codegen.merge.java.facade.AbstractJNode
org.eclipse.emf.codegen.merge.java.facade.ast.ASTJNode<T>
org.eclipse.emf.codegen.merge.java.facade.ast.ASTJMember<T>
org.eclipse.emf.codegen.merge.java.facade.ast.ASTJAbstractType<org.eclipse.jdt.core.dom.EnumDeclaration>
org.eclipse.emf.codegen.merge.java.facade.ast.ASTJEnum
public class ASTJEnum
| Field Summary | |
|---|---|
protected java.util.List<java.lang.String> |
addedSuperInterfaces
List of added interfaces by calling addSuperInterface(String). |
protected java.lang.String[] |
superInterfaces
Array of cached super interfaces. |
| Fields inherited from class org.eclipse.emf.codegen.merge.java.facade.ast.ASTJMember |
|---|
comment |
| Fields inherited from class org.eclipse.emf.codegen.merge.java.facade.ast.ASTJNode |
|---|
isCommentedOut, name, rewriter, UNITIALIZED_STRING |
| Fields inherited from class org.eclipse.emf.codegen.merge.java.facade.AbstractJNode |
|---|
EMPTY_STRING_ARRAY, qualifiedName |
| Constructor Summary | |
|---|---|
ASTJEnum(org.eclipse.jdt.core.dom.EnumDeclaration enumDeclaration)
|
|
| Method Summary | |
|---|---|
boolean |
addChild(ASTJNode<?> child)
Adds a child to this node. |
void |
addSuperInterface(java.lang.String superInterface)
Adds an interface to the list of interfaces. |
void |
dispose()
|
java.util.List<JNode> |
getChildren()
Returns the list of children. |
protected java.util.List<JNode> |
getEnumConstants()
|
java.lang.String[] |
getSuperInterfaces()
Returns ordered array of super interfaces as declared in source in "implements" clause. |
boolean |
insertSibling(ASTJNode<?> node,
ASTJNode<?> newSibling,
boolean before)
Inserts newSibling as a child of this node before or after the given node. |
boolean |
remove(ASTJNode<?> node)
Removes the node. |
void |
setSuperInterfaces(java.lang.String[] superInterfaces)
Sets ordered super interfaces array of super interfaces to the given array. |
| Methods inherited from class org.eclipse.emf.codegen.merge.java.facade.ast.ASTJAbstractType |
|---|
computeQualifiedName, getMembers, getName, setName |
| Methods inherited from class org.eclipse.emf.codegen.merge.java.facade.ast.ASTJMember |
|---|
getAnnotationList, getComment, getFlags, insertLastAnnotation, setComment, setFlags |
| Methods inherited from class org.eclipse.emf.codegen.merge.java.facade.ast.ASTJNode |
|---|
addValueToListProperty, addValueToListProperty, ancestorInserted, ancestorToBeRemoved, childToBeChanged, combineArrayAndList, commentOut, convertASTNodeListToStringArray, disableTrackAndReplace, enableTrackAndReplace, getASTNode, getContents, getFacadeHelper, getParent, getRemovedASTNode, getRewriter, getWrappedObject, insert, insertFirst, insertLast, isDisposed, nodeToBeMoved, nodeToBeRemoved, remove, removeNodeFromListProperty, removeTrackAndReplace, setASTNode, setFacadeHelper, setListNodeProperty, setNodeProperty, setNodeProperty, setParent, setRemovedASTNode, setRewriter, setTrackedNodeProperty, setWrappedObject, trackAndReplace |
| Methods inherited from class org.eclipse.emf.codegen.merge.java.facade.AbstractJNode |
|---|
computeQualifiedName, computeQualifiedName, computeQualifiedName, getName, getQualifiedName |
| 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.JMember |
|---|
getComment, setComment |
| Methods inherited from interface org.eclipse.emf.codegen.merge.java.facade.JNode |
|---|
getContents, getFlags, getName, getParent, getQualifiedName, setFlags, setName |
| Field Detail |
|---|
protected java.util.List<java.lang.String> addedSuperInterfaces
addSuperInterface(String).
This list does not include existing interfaces, nor interfaces set by setSuperInterfaces(String[])
protected java.lang.String[] superInterfaces
addedSuperInterfaces.
| Constructor Detail |
|---|
public ASTJEnum(org.eclipse.jdt.core.dom.EnumDeclaration enumDeclaration)
enumDeclaration - | Method Detail |
|---|
public void dispose()
dispose in class ASTJMember<org.eclipse.jdt.core.dom.EnumDeclaration>public void addSuperInterface(java.lang.String superInterface)
JEnum
addSuperInterface in interface JEnumpublic java.lang.String[] getSuperInterfaces()
JEnum
getSuperInterfaces in interface JEnumpublic void setSuperInterfaces(java.lang.String[] superInterfaces)
JEnum
setSuperInterfaces in interface JEnum
public boolean insertSibling(ASTJNode<?> node,
ASTJNode<?> newSibling,
boolean before)
ASTJNodenewSibling as a child of this node before or after the given node.
Default implementation does nothing and returns false.
insertSibling in class ASTJAbstractType<org.eclipse.jdt.core.dom.EnumDeclaration>newSibling - to insertbefore - true if newSibling must be before node, false if after
true if operation successful, false otherwisepublic boolean addChild(ASTJNode<?> child)
ASTJNode
Default implementation does nothing and returns false.
addChild in class ASTJAbstractType<org.eclipse.jdt.core.dom.EnumDeclaration>child - to add
true if operation successful, false otherwisepublic boolean remove(ASTJNode<?> node)
ASTJAbstractType
This implementation supports moving the nodes by calling ASTJAbstractType.remove(ASTJNode) and
then ASTJAbstractType.insertSibling(ASTJNode, ASTJNode, boolean) or ASTJAbstractType.addChild(ASTJNode).
remove in class ASTJAbstractType<org.eclipse.jdt.core.dom.EnumDeclaration>node - must be a child of this node
true if operation successful, false otherwiseASTJNode.remove(ASTJNode)public java.util.List<JNode> getChildren()
ASTJAbstractType
getChildren in interface JNodegetChildren in class ASTJAbstractType<org.eclipse.jdt.core.dom.EnumDeclaration>FacadeHelper.convertToNode(Object),
AbstractJNode.getChildren()protected java.util.List<JNode> getEnumConstants()
|
Copyright 2001-2006 IBM Corporation and others. All Rights Reserved. |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||