1 19 20 package org.netbeans.modules.java.bridge; 21 22 import java.util.*; 23 24 import org.openide.src.*; 25 26 35 public interface Binding { 36 37 39 public interface Member extends Binding { 40 43 public void changeModifiers(int newMods) throws SourceException; 44 45 48 public void changeName(Identifier name) throws SourceException; 49 } 50 51 public interface Body { 52 public String getBodyContent() throws SourceException; 53 public void changeBody(String bodyString) throws SourceException; 54 public void copyBody(String bodyString); 55 } 56 57 59 public interface Initializer extends Binding, Body { 60 63 public void changeStatic(boolean enable) throws SourceException; 64 } 65 66 public interface Field extends Member { 67 69 public void changeType(Type newType) throws SourceException; 70 71 73 public void changeInitializer(String newInitializer) throws SourceException; 74 } 75 76 78 public interface Method extends Member, Body { 79 81 public String getBodyContent() throws SourceException; 82 83 86 public void makeAbstract() throws SourceException; 87 88 90 public void createBody(String bodyText) throws SourceException; 91 92 94 public void changeReturnType(Type type) throws SourceException; 95 96 98 public void changeParameters(MethodParameter[] params) throws SourceException; 99 100 102 public void changeExceptions(Identifier[] exceptions) throws SourceException; 103 } 104 105 108 public interface Container { 109 115 public void insert(Binding toInitialize, Binding previous) throws SourceException; 116 117 119 public void replace(Binding oldBinding, Binding newBinding) throws SourceException; 120 121 123 public void reorder(Map fromToMap) throws SourceException; 124 125 128 public boolean canInsertAfter(Binding b); 129 130 134 public void changeMembers(MultiPropertyChangeEvent evt) throws SourceException; 135 } 136 137 public interface Class extends Member, Container { 138 141 public void changeSuperclass(Identifier id) throws SourceException; 142 143 145 public void changeInterfaces(Identifier[] replaceWith) throws SourceException; 146 147 151 public void changeClassType(boolean properClass) throws SourceException; 152 } 153 154 public interface Import extends Binding { 155 public void changeImport(org.openide.src.Import i) throws SourceException; 156 } 157 158 public interface Source extends Binding { 159 public void changePackage(Identifier id) throws SourceException; 160 public Binding.Container getImportsSection(); 161 public Binding.Container getClassSection(); 162 } 163 164 public void changeJavaDoc(JavaDoc content) throws SourceException; 165 } 166 167 | Popular Tags |