Searched refs:getMethod (Results 1 - 25 of 46) sorted by relevance

12

/libcore/luni/src/test/java/libcore/java/lang/
H A DIntrinsicTest.java27 String.class.getMethod("charAt", int.class).invoke("hello", 0);
32 String.class.getMethod("compareTo", String.class).invoke("hello", "world");
37 String.class.getMethod("equals", Object.class).invoke("hello", "world");
42 String.class.getMethod("indexOf", int.class).invoke("hello", 'l');
47 String.class.getMethod("isEmpty").invoke("hello");
52 String.class.getMethod("length").invoke("hello");
57 Math.class.getMethod("abs", int.class).invoke(null, 1);
59 Math.class.getMethod("abs", long.class).invoke(null, 1L);
61 Math.class.getMethod("abs", float.class).invoke(null, 1.0f);
63 Math.class.getMethod("ab
[all...]
/libcore/luni/src/test/java/libcore/java/lang/reflect/
H A DMethodTest.java25 Method m = String.class.getMethod("charAt", int.class);
60 Method method = MethodTestHelper.class.getMethod("m1", new Class[0]);
73 Method method = MethodTestHelper.class.getMethod("m2", expectedParameters);
85 assertEquals(InterfaceA.class, Sub.class.getMethod("a").getDeclaringClass());
89 assertEquals(InterfaceA.class, ImplementsC.class.getMethod("a").getDeclaringClass());
90 assertEquals(InterfaceA.class, ExtendsImplementsC.class.getMethod("a").getDeclaringClass());
108 MethodTestHelper.class.getMethod("<init>");
116 MethodTestHelper.class.getMethod(null);
123 Method m1 = MethodTestHelper.class.getMethod("m1", (Class[]) null);
129 MethodTestHelper.class.getMethod("m
[all...]
H A DMethodOverridesTest.java30 Method method = StringBuilder.class.getMethod("append", char.class);
35 Method method = StringBuilder.class.getMethod("append", char.class);
41 Method method = StringBuilder.class.getMethod("append", char.class);
46 Method method = StringBuilder.class.getMethod("append", char.class);
51 Method method = StringBuilder.class.getMethod("append", char.class);
66 assertEquals(Sub.class, Sub.class.getMethod("unchanged").getDeclaringClass());
74 assertEquals(Sub.class, Sub.class.getMethod("thrower").getDeclaringClass());
82 Method method = Sub.class.getMethod("returner");
92 Method method = Sub.class.getMethod("returner");
109 Method method = Sub.class.getMethod("visibilit
[all...]
H A DGenericExceptionsTest.java31 Method method = Thrower.class.getMethod("parameterizedMethod");
37 Method method = Thrower.class.getMethod("genericParameters", List.class);
63 Method method = ThrowerT.class.getMethod("throwsTypeVariable");
71 Method method = ThrowerT.class.getMethod("throwsMethodTypeParameter");
79 Method method = ThrowerT.class.getMethod("throwsEverything");
H A DAnnotationsTest.java53 Method method = Type.class.getMethod("method", String.class, String.class);
58 Method method = Type.class.getMethod("method", String.class, String.class);
H A DProxyTest.java55 assertEquals("foo", proxy.getClass().getMethod("echo", String.class).invoke(proxy, "foo"));
/libcore/luni/src/test/java/tests/api/org/xml/sax/support/
H A DMethodLogger.java59 public String getMethod(int index) { method in class:MethodLogger
67 public String getMethod() { method in class:MethodLogger
68 return (size() == 0 ? null : getMethod(size() - 1));
/libcore/luni/src/test/java/tests/api/java/lang/reflect/
H A DGenericMethodsTests.java87 Method method = clazz.getMethod("noParamNoReturn");
92 Method method = clazz.getMethod("paramNoReturn", Object.class);
98 Method method = clazz.getMethod("noParamReturn");
104 Method method = clazz.getMethod("paramReturn", Object.class);
110 Method method0 = clazz.getMethod("paramNoReturn", Object.class);
113 Method method1 = clazz.getMethod("noParamNoReturn");
H A DBoundedGenericMethodsTests.java108 Method method = clazz.getMethod("noParamNoReturn");
112 Method method = clazz.getMethod("paramNoReturn", BoundedGenericMethods.class);
117 Method method = clazz.getMethod("noParamReturn");
123 Method method = clazz.getMethod("paramReturn", BoundedGenericMethods.class);
H A DAccessibleObjectTest.java135 AccessibleObject ao = SubTestClass.class.getMethod("annotatedMethod");
156 AccessibleObject ao = SubTestClass.class.getMethod("annotatedMethod");
171 AccessibleObject ao = SubTestClass.class.getMethod("annotatedMethod");
186 AccessibleObject ao = SubTestClass.class.getMethod("annotatedMethod");
H A DWildcardTypeTest.java125 Method method = clazz.getMethod("upperBoundedParamNoReturn", BoundedWildcardsGenericMethods.class);
131 Method method = clazz.getMethod("lowerBoundedParamReturn", BoundedWildcardsGenericMethods.class);
138 Method method = clazz.getMethod("upperBoundedParamReturn", BoundedWildcardsGenericMethods.class);
145 Method method = clazz.getMethod("lowerBoundedParamNoReturn", BoundedWildcardsGenericMethods.class);
H A DMethodTest.java201 m1 = TestMethod.class.getMethod("invokeInstanceTest", new Class[0]);
202 m2 = TestMethodSub.class.getMethod("invokeInstanceTest",
210 m1 = TestMethod.class.getMethod("invokeStaticTest", new Class[0]);
212 .getMethod("invokeStaticTest", new Class[0]);
220 * java.lang.Class#getMethod(java.lang.String, java.lang.Class[])
223 // Check that getMethod treats null parameterTypes the same as an empty array.
224 Method m1 = TestMethod.class.getMethod("invokeInstanceTest", new Class[0]);
225 Method m2 = TestMethod.class.getMethod("invokeInstanceTest", (Class[]) null);
267 Method mth = TestMethod.class.getMethod("voidMethod", new Class[0]);
273 mth = TestMethod.class.getMethod("intMetho
[all...]
/libcore/luni/src/test/java/libcore/java/lang/annotation/
H A DAnnotationTypeMismatchExceptionTest.java27 Method m = String.class.getMethod("length");
34 Method m = String.class.getMethod("length");
/libcore/luni/src/main/java/java/lang/
H A DVoid.java40 Method method = Runnable.class.getMethod("run", EmptyArray.CLASS);
/libcore/luni/src/test/java/tests/api/org/xml/sax/helpers/
H A DXMLReaderAdapterTest.java141 assertEquals("startDocument", logger.getMethod());
168 assertEquals("parse", logger.getMethod(0));
183 assertEquals("parse", logger.getMethod());
192 assertEquals("setDocumentLocator", logger.getMethod());
208 assertEquals("startDocument", logger.getMethod());
220 assertEquals("endDocument", logger.getMethod());
246 assertEquals("startElement", logger.getMethod());
260 assertEquals("endElement", logger.getMethod());
274 assertEquals("characters", logger.getMethod());
288 assertEquals("ignorableWhitespace", logger.getMethod());
[all...]
H A DXMLFilterImplTest.java195 assertEquals("parse", logger.getMethod());
221 assertEquals("parse", logger.getMethod());
279 assertEquals("notationDecl", logger.getMethod());
292 assertEquals("unparsedEntityDecl", logger.getMethod());
303 assertEquals("setDocumentLocator", logger.getMethod());
309 assertEquals("setDocumentLocator", logger.getMethod());
321 assertEquals("startDocument", logger.getMethod());
333 assertEquals("endDocument", logger.getMethod());
345 assertEquals("startPrefixMapping", logger.getMethod());
358 assertEquals("endPrefixMapping", logger.getMethod());
[all...]
H A DParserAdapterTest.java202 assertEquals("parse", logger.getMethod());
217 assertEquals("parse", logger.getMethod());
227 assertEquals("setDocumentLocator", logger.getMethod());
233 assertEquals("setDocumentLocator", logger.getMethod());
245 assertEquals("startDocument", logger.getMethod());
257 assertEquals("endDocument", logger.getMethod());
272 assertEquals("startElement", logger.getMethod());
291 assertEquals("endElement", logger.getMethod());
305 assertEquals("characters", logger.getMethod());
319 assertEquals("ignorableWhitespace", logger.getMethod());
[all...]
/libcore/luni/src/main/java/javax/xml/datatype/
H A DDatatypeConfigurationException.java144 Method m = this.getClass().getMethod("initCause", new Class[] {Throwable.class});
156 Method m1 = this.getClass().getMethod("getCause", new Class[] {});
162 Method m2 = this.getClass().getMethod("initCause", new Class[] {Throwable.class});
/libcore/dom/src/test/java/org/w3c/domts/
H A DLSDocumentBuilderFactory.java136 Method domConfigMethod = parser.getClass().getMethod("getDomConfig",
139 Method setParameterMethod = domConfig.getClass().getMethod(
154 Method domConfigMethod = parser.getClass().getMethod("getDomConfig",
157 Method getParameterMethod = domConfig.getClass().getMethod("getParameter",
275 Method newInstanceMethod = domImplRegistryClass.getMethod("newInstance", (Class<?>) null);
277 Method getDOMImplementationMethod = domImplRegistryClass.getMethod(
281 Method createLSParserMethod = impl.getClass().getMethod("createLSParser",
285 parseURIMethod = parser.getClass().getMethod("parseURI",
H A DDOM4JTestDocumentBuilderFactory.java71 Method getInstance = domFactoryClass.getMethod("getInstance", new Class[] {});
79 Method getReaderMethod = saxReaderClass.getMethod("getXMLReader",
83 readMethod = saxReaderClass.getMethod("read", new Class[] {java.net.URL.class});
H A DBatikTestDocumentBuilderFactory.java94 domFactoryClass.getMethod(
159 svgDomImplClass.getMethod(
H A DJTidyDocumentBuilderFactory.java54 tidyClass.getMethod("parseDOM",
/libcore/luni/src/main/java/org/xml/sax/helpers/
H A DNewInstance.java63 m = Thread.class.getMethod("getContextClassLoader");
/libcore/luni/src/main/java/java/util/zip/
H A DZipOutputStream.java130 if (currentEntry.getMethod() == DEFLATED) {
135 if (currentEntry.getMethod() == STORED) {
146 if (currentEntry.getMethod() != STORED) {
155 int flags = currentEntry.getMethod() == STORED ? 0 : ZipFile.GPBF_DATA_DESCRIPTOR_FLAG;
164 writeShort(cDir, currentEntry.getMethod());
168 if (currentEntry.getMethod() == DEFLATED) {
265 int method = ze.getMethod();
413 if (currentEntry.getMethod() == STORED) {
/libcore/libart/src/main/java/java/lang/reflect/
H A DProxy.java267 result.add(Object.class.getMethod("equals", Object.class));
268 result.add(Object.class.getMethod("hashCode", EmptyArray.CLASS));
269 result.add(Object.class.getMethod("toString", EmptyArray.CLASS));

Completed in 3370 milliseconds

12