1 package polyglot.types; 2 3 import java.util.List ; 4 5 9 public interface MethodInstance extends ProcedureInstance 10 { 11 14 Type returnType(); 15 16 19 MethodInstance returnType(Type returnType); 20 21 24 String name(); 25 26 29 MethodInstance name(String name); 30 31 34 MethodInstance flags(Flags flags); 35 36 41 MethodInstance formalTypes(List l); 42 43 48 MethodInstance throwTypes(List l); 49 50 53 MethodInstance container(ReferenceType container); 54 55 63 List overrides(); 64 65 68 boolean canOverride(MethodInstance mi); 69 70 74 void checkOverride(MethodInstance mi) throws SemanticException; 75 76 82 List implemented(); 83 84 87 boolean isSameMethod(MethodInstance mi); 88 89 96 boolean methodCallValid(String name, List actualTypes); 97 98 107 List overridesImpl(); 108 109 117 boolean canOverrideImpl(MethodInstance mi, boolean quiet) throws SemanticException; 118 119 125 List implementedImpl(ReferenceType rt); 126 127 132 boolean isSameMethodImpl(MethodInstance mi); 133 134 140 boolean methodCallValidImpl(String name, List actualTypes); 141 } 142 | Popular Tags |