1 11 package org.eclipse.jdt.core.jdom; 12 13 import java.util.Enumeration ; 14 15 import org.eclipse.jdt.core.IJavaElement; 16 17 61 public interface IDOMNode extends Cloneable { 62 63 68 public static int COMPILATION_UNIT= 1; 69 70 75 public static int PACKAGE= 2; 76 77 82 public static int IMPORT= 3; 83 84 89 public static int TYPE= 4; 90 91 96 public static int FIELD= 5; 97 98 103 public static int METHOD= 6; 104 105 110 public static int INITIALIZER= 7; 111 112 127 public void addChild(IDOMNode child) throws DOMException, IllegalArgumentException ; 128 133 public boolean canHaveChildren(); 134 143 public Object clone(); 144 153 public char[] getCharacters(); 154 160 public IDOMNode getChild(String name); 161 168 public Enumeration getChildren(); 169 178 public String getContents(); 179 186 public IDOMNode getFirstChild(); 187 197 public IJavaElement getJavaElement(IJavaElement parent) throws IllegalArgumentException ; 198 204 public String getName(); 205 210 public IDOMNode getNextNode(); 211 216 public int getNodeType(); 217 223 public IDOMNode getParent(); 224 229 public IDOMNode getPreviousNode(); 230 247 public void insertSibling(IDOMNode sibling) throws DOMException, IllegalArgumentException ; 248 254 public boolean isAllowableChild(IDOMNode node); 255 263 public boolean isSignatureEqual(IDOMNode node); 264 274 public void remove(); 275 281 public void setName(String name); 282 } 283 | Popular Tags |