1 19 20 package org.netbeans.modules.java; 21 22 import org.openide.src.*; 23 24 32 public interface ElementFactory { 33 34 35 41 public Item createClass(boolean isInterface, int modifiers, Identifier name, Identifier superclass, Identifier[] interfaces); 42 43 50 public Item createMethod(int modifiers, Identifier name, Type returnType, MethodParameter[] params, Identifier[] exceptions); 51 52 58 public Item createField(int modifiers, Identifier name, Type type, String initializer); 59 60 63 public Item createConstructor(int modifiers, Identifier id, MethodParameter[] params, Identifier[] exceptions); 64 65 68 public Item createInitializer(int modifiers); 69 70 75 public void createImport(Import im, int begin, int end); 76 77 82 public void createPackage(Identifier name, int begin, int end); 83 84 88 public void setParent(Item child, Item parent); 89 90 93 public void setBounds(Item item, int begin, int end); 94 95 97 public void setBodyBounds(Item item, int begin, int end); 98 99 public void setHeaderBounds(Item item, int begin, int end); 100 101 106 public void setDocumentation(Item item, int begin, int end, String text); 107 108 110 public void setPrecedingField(Item item, Item previous); 111 112 114 public void setFieldTypeBounds(Item item, int begin, int end); 115 116 public void markError(Item item); 117 118 120 public interface Item { 121 } 122 } 123 | Popular Tags |