1 /* 2 * Copyright (C) 2020 The Android Open Source Project 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17 import java.lang.reflect.Method; 18 19 interface Itf { method0a()20 public void method0a(); method0b()21 public void method0b(); method0c()22 public void method0c(); method0d()23 public void method0d(); method0e()24 public void method0e(); method0f()25 public void method0f(); method0g()26 public void method0g(); method0h()27 public void method0h(); method0i()28 public void method0i(); method0j()29 public void method0j(); method0k()30 public void method0k(); method0l()31 public void method0l(); method0m()32 public void method0m(); method0n()33 public void method0n(); method0o()34 public void method0o(); method0p()35 public void method0p(); method0q()36 public void method0q(); method0r()37 public void method0r(); method0s()38 public void method0s(); method0t()39 public void method0t(); method0u()40 public void method0u(); method0v()41 public void method0v(); method0w()42 public void method0w(); method0x()43 public void method0x(); method0y()44 public void method0y(); method0z()45 public void method0z(); method1a()46 public void method1a(); method1b()47 public void method1b(); method1c()48 public void method1c(); method1d()49 public void method1d(); method1e()50 public void method1e(); method1f()51 public void method1f(); method1g()52 public void method1g(); method1h()53 public void method1h(); method1i()54 public void method1i(); method1j()55 public void method1j(); method1k()56 public void method1k(); method1l()57 public void method1l(); method1m()58 public void method1m(); method1n()59 public void method1n(); method1o()60 public void method1o(); method1p()61 public void method1p(); method1q()62 public void method1q(); method1r()63 public void method1r(); method1s()64 public void method1s(); method1t()65 public void method1t(); method1u()66 public void method1u(); method1v()67 public void method1v(); method1w()68 public void method1w(); method1x()69 public void method1x(); method1y()70 public void method1y(); method1z()71 public void method1z(); method2a()72 public void method2a(); method2b()73 public void method2b(); method2c()74 public void method2c(); method2d()75 public void method2d(); method2e()76 public void method2e(); method2f()77 public void method2f(); method2g()78 public void method2g(); method2h()79 public void method2h(); method2i()80 public void method2i(); method2j()81 public void method2j(); method2k()82 public void method2k(); method2l()83 public void method2l(); method2m()84 public void method2m(); method2n()85 public void method2n(); method2o()86 public void method2o(); method2p()87 public void method2p(); method2q()88 public void method2q(); method2r()89 public void method2r(); method2s()90 public void method2s(); method2t()91 public void method2t(); method2u()92 public void method2u(); method2v()93 public void method2v(); method2w()94 public void method2w(); method2x()95 public void method2x(); method2y()96 public void method2y(); method2z()97 public void method2z(); method3a()98 public void method3a(); method3b()99 public void method3b(); method3c()100 public void method3c(); method3d()101 public void method3d(); method3e()102 public void method3e(); method3f()103 public void method3f(); method3g()104 public void method3g(); method3h()105 public void method3h(); method3i()106 public void method3i(); method3j()107 public void method3j(); method3k()108 public void method3k(); method3l()109 public void method3l(); method3m()110 public void method3m(); method3n()111 public void method3n(); method3o()112 public void method3o(); method3p()113 public void method3p(); method3q()114 public void method3q(); method3r()115 public void method3r(); method3s()116 public void method3s(); method3t()117 public void method3t(); method3u()118 public void method3u(); method3v()119 public void method3v(); method3w()120 public void method3w(); method3x()121 public void method3x(); method3y()122 public void method3y(); method3z()123 public void method3z(); 124 } 125 126 public class Main implements Itf { 127 public static Itf main; main(String[] args)128 public static void main(String[] args) throws Exception { 129 main = new Main(); 130 Class<?> c = Class.forName("TestCase"); 131 Method m = c.getMethod("test"); 132 String result = (String)m.invoke(null); 133 if (!"MainInstance".equals(result)) { 134 throw new Error("Expected 'MainInstance', got '" + result + "'"); 135 } 136 } 137 toString()138 public String toString() { 139 return "MainInstance"; 140 } 141 method0a()142 public void method0a() {} method0b()143 public void method0b() {} method0c()144 public void method0c() {} method0d()145 public void method0d() {} method0e()146 public void method0e() {} method0f()147 public void method0f() {} method0g()148 public void method0g() {} method0h()149 public void method0h() {} method0i()150 public void method0i() {} method0j()151 public void method0j() {} method0k()152 public void method0k() {} method0l()153 public void method0l() {} method0m()154 public void method0m() {} method0n()155 public void method0n() {} method0o()156 public void method0o() {} method0p()157 public void method0p() {} method0q()158 public void method0q() {} method0r()159 public void method0r() {} method0s()160 public void method0s() {} method0t()161 public void method0t() {} method0u()162 public void method0u() {} method0v()163 public void method0v() {} method0w()164 public void method0w() {} method0x()165 public void method0x() {} method0y()166 public void method0y() {} method0z()167 public void method0z() {} method1a()168 public void method1a() {} method1b()169 public void method1b() {} method1c()170 public void method1c() {} method1d()171 public void method1d() {} method1e()172 public void method1e() {} method1f()173 public void method1f() {} method1g()174 public void method1g() {} method1h()175 public void method1h() {} method1i()176 public void method1i() {} method1j()177 public void method1j() {} method1k()178 public void method1k() {} method1l()179 public void method1l() {} method1m()180 public void method1m() {} method1n()181 public void method1n() {} method1o()182 public void method1o() {} method1p()183 public void method1p() {} method1q()184 public void method1q() {} method1r()185 public void method1r() {} method1s()186 public void method1s() {} method1t()187 public void method1t() {} method1u()188 public void method1u() {} method1v()189 public void method1v() {} method1w()190 public void method1w() {} method1x()191 public void method1x() {} method1y()192 public void method1y() {} method1z()193 public void method1z() {} method2a()194 public void method2a() {} method2b()195 public void method2b() {} method2c()196 public void method2c() {} method2d()197 public void method2d() {} method2e()198 public void method2e() {} method2f()199 public void method2f() {} method2g()200 public void method2g() {} method2h()201 public void method2h() {} method2i()202 public void method2i() {} method2j()203 public void method2j() {} method2k()204 public void method2k() {} method2l()205 public void method2l() {} method2m()206 public void method2m() {} method2n()207 public void method2n() {} method2o()208 public void method2o() {} method2p()209 public void method2p() {} method2q()210 public void method2q() {} method2r()211 public void method2r() {} method2s()212 public void method2s() {} method2t()213 public void method2t() {} method2u()214 public void method2u() {} method2v()215 public void method2v() {} method2w()216 public void method2w() {} method2x()217 public void method2x() {} method2y()218 public void method2y() {} method2z()219 public void method2z() {} method3a()220 public void method3a() {} method3b()221 public void method3b() {} method3c()222 public void method3c() {} method3d()223 public void method3d() {} method3e()224 public void method3e() {} method3f()225 public void method3f() {} method3g()226 public void method3g() {} method3h()227 public void method3h() {} method3i()228 public void method3i() {} method3j()229 public void method3j() {} method3k()230 public void method3k() {} method3l()231 public void method3l() {} method3m()232 public void method3m() {} method3n()233 public void method3n() {} method3o()234 public void method3o() {} method3p()235 public void method3p() {} method3q()236 public void method3q() {} method3r()237 public void method3r() {} method3s()238 public void method3s() {} method3t()239 public void method3t() {} method3u()240 public void method3u() {} method3v()241 public void method3v() {} method3w()242 public void method3w() {} method3x()243 public void method3x() {} method3y()244 public void method3y() {} method3z()245 public void method3z() {} 246 } 247