Laminas\Server\Reflection
_ menyediakan mekanisme standar untuk melakukan fungsi dan introspeksi kelas untuk digunakan dengan kelas server. Ini didasarkan pada API Refleksi PHP, menambahnya dengan metode untuk mengambil parameter dan mengembalikan tipe dan deskripsi nilai, daftar lengkap prototipe fungsi dan metode [i. e. , semua kemungkinan kombinasi pemanggilan yang valid], dan deskripsi fungsi atau metode
Biasanya, fungsi ini hanya akan digunakan oleh pengembang kelas server bergaya RPC untuk kerangka kerja
Penggunaan
Penggunaan dasar adalah sebagai berikut
use My\Entity;
use Laminas\Server\Reflection;
$class = Reflection::reflectClass[Entity::class];
$function = Reflection::reflectFunction['my_function'];
// Get prototypes
$prototypes = $function->getPrototypes[];
// Loop through each prototype for the function
foreach [$prototypes as $prototype] {
// Get prototype return type
printf["Return type: %s\n", $prototype->getReturnType[]];
// Get prototype parameters
$parameters = $prototype->getParameters[];
echo "Parameters: \n";
foreach [$parameters as $parameter] {
// Get parameter type
printf[" %s\n", $parameter->getType[]];
}
}
// Get namespace for a class, function, or method.
// Namespaces may be set at instantiation time [second argument], or using
// setNamespace[].
$class->getNamespace[];
reflectFunction[]
mengembalikan objek Laminas\Server\Reflection\Function
; . Silakan lihat dokumentasi API untuk melihat metode apa yang tersedia untuk masing-masing
paket com. w3spoint; . keluar. println[pesan];
Tes Refleksi. Jawa
package com.w3spoint; import java.lang.reflect.Method; public class ReflectionTest { public static void main[String args[]]{ try { Class c=Class.forName["com.w3spoint.TestClass"]; Method method = c.getMethod["display", String.class]; System.out.println["Return Type: " + method.getReturnType[]]; } catch [Exception e] { e.printStackTrace[]; } } }_
paket com. w3spoint; . lang. mencerminkan. Metode; . forName["com. w3spoint. TestClass"]; Metode metode = c. getMethod["tampilan", String. kelas]; . keluar. println["Tipe Pengembalian. " + metode. getReturnType[]]; . printStackTrace[];
Tag sudah ada dengan nama cabang yang diberikan. Banyak perintah Git menerima nama tag dan cabang, jadi membuat cabang ini dapat menyebabkan perilaku yang tidak diharapkan. Anda yakin ingin membuat cabang ini?
Kelas Metode. metode getReturnType[] di Java
Meningkatkan Artikel
Simpan Artikel
Seperti Artikel
- Terakhir Diperbarui. 12 November 2021
Meningkatkan Artikel
Simpan Artikel
Prasyarat. Jawa. lang. Kelas kelas di Jawa. Set 1, Jawa. lang. Kelas kelas di Jawa. Atur 2
Jawa. lang. Kelas reflectMethod membantu dalam mendapatkan informasi tentang metode tunggal pada kelas atau antarmuka. Kelas ini juga menyediakan akses ke metode kelas dan memanggilnya saat runtime.
Metode getReturnType[] dari kelas Metode
Setiap Metode memiliki tipe pengembalian apakah itu void, int, double, string atau tipe data lainnya. Metode getReturnType[] dari kelas Metode mengembalikan objek Kelas yang mewakili tipe pengembalian, dideklarasikan dalam metode pada saat membuat metode
Sintaksis.
public Class getReturnType[]
Parameter. Metode ini tidak mengambil parameter apa pun
Nilai Pengembalian. Metode mengembalikan objek Kelas yang mewakili tipe pengembalian formal dari objek metode
Program di bawah ini mengilustrasikan metode getReturnType[] dari kelas Metode
Program 1. Program di bawah ini mencetak Jenis Pengembalian untuk beberapa metode tertentu dari suatu kelas yang disediakan sebagai input dalam metode utama program.
Jawa
/*
* Program Demonstrate how to apply getReturnType[] method
* of Method Class.
*/
import
java.lang.reflect.Method;
public
Method Name : setManyValues Return Type Details: void Method Name : getValue Return Type Details: java.lang.String Method Name : setValue Return Type Details: int0
Method Name : setManyValues Return Type Details: void Method Name : getValue Return Type Details: java.lang.String Method Name : setValue Return Type Details: int1
Method Name : setManyValues Return Type Details: void Method Name : getValue Return Type Details: java.lang.String Method Name : setValue Return Type Details: int2
Method Name : setManyValues Return Type Details: void Method Name : getValue Return Type Details: java.lang.String Method Name : setValue Return Type Details: int3
Method Name : setManyValues Return Type Details: void Method Name : getValue Return Type Details: java.lang.String Method Name : setValue Return Type Details: int2
public
Method Name : setManyValues Return Type Details: void Method Name : getValue Return Type Details: java.lang.String Method Name : setValue Return Type Details: int6
Method Name : setManyValues Return Type Details: void Method Name : getValue Return Type Details: java.lang.String Method Name : setValue Return Type Details: int7
Method Name : setManyValues Return Type Details: void Method Name : getValue Return Type Details: java.lang.String Method Name : setValue Return Type Details: int8
Method Name : setManyValues Return Type Details: void Method Name : getValue Return Type Details: java.lang.String Method Name : setValue Return Type Details: int2
Method Name : method3 Return Type Details: void Method Name : method2 Return Type Details: java.lang.String Method Name : method1 Return Type Details: int Method Name : main Return Type Details: void Method Name : wait Return Type Details: void Method Name : wait Return Type Details: void Method Name : wait Return Type Details: void Method Name : equals Return Type Details: boolean Method Name : toString Return Type Details: java.lang.String Method Name : hashCode Return Type Details: int Method Name : getClass Return Type Details: java.lang.Class Method Name : notify Return Type Details: void Method Name : notifyAll Return Type Details: void0
________12______1
Method Name : method3 Return Type Details: void Method Name : method2 Return Type Details: java.lang.String Method Name : method1 Return Type Details: int Method Name : main Return Type Details: void Method Name : wait Return Type Details: void Method Name : wait Return Type Details: void Method Name : wait Return Type Details: void Method Name : equals Return Type Details: boolean Method Name : toString Return Type Details: java.lang.String Method Name : hashCode Return Type Details: int Method Name : getClass Return Type Details: java.lang.Class Method Name : notify Return Type Details: void Method Name : notifyAll Return Type Details: void2
Method Name : method3 Return Type Details: void Method Name : method2 Return Type Details: java.lang.String Method Name : method1 Return Type Details: int Method Name : main Return Type Details: void Method Name : wait Return Type Details: void Method Name : wait Return Type Details: void Method Name : wait Return Type Details: void Method Name : equals Return Type Details: boolean Method Name : toString Return Type Details: java.lang.String Method Name : hashCode Return Type Details: int Method Name : getClass Return Type Details: java.lang.Class Method Name : notify Return Type Details: void Method Name : notifyAll Return Type Details: void0
Method Name : method3 Return Type Details: void Method Name : method2 Return Type Details: java.lang.String Method Name : method1 Return Type Details: int Method Name : main Return Type Details: void Method Name : wait Return Type Details: void Method Name : wait Return Type Details: void Method Name : wait Return Type Details: void Method Name : equals Return Type Details: boolean Method Name : toString Return Type Details: java.lang.String Method Name : hashCode Return Type Details: int Method Name : getClass Return Type Details: java.lang.Class Method Name : notify Return Type Details: void Method Name : notifyAll Return Type Details: void4
Method Name : method3 Return Type Details: void Method Name : method2 Return Type Details: java.lang.String Method Name : method1 Return Type Details: int Method Name : main Return Type Details: void Method Name : wait Return Type Details: void Method Name : wait Return Type Details: void Method Name : wait Return Type Details: void Method Name : equals Return Type Details: boolean Method Name : toString Return Type Details: java.lang.String Method Name : hashCode Return Type Details: int Method Name : getClass Return Type Details: java.lang.Class Method Name : notify Return Type Details: void Method Name : notifyAll Return Type Details: void5
Method Name : method3 Return Type Details: void Method Name : method2 Return Type Details: java.lang.String Method Name : method1 Return Type Details: int Method Name : main Return Type Details: void Method Name : wait Return Type Details: void Method Name : wait Return Type Details: void Method Name : wait Return Type Details: void Method Name : equals Return Type Details: boolean Method Name : toString Return Type Details: java.lang.String Method Name : hashCode Return Type Details: int Method Name : getClass Return Type Details: java.lang.Class Method Name : notify Return Type Details: void Method Name : notifyAll Return Type Details: void4
Method Name : method3 Return Type Details: void Method Name : method2 Return Type Details: java.lang.String Method Name : method1 Return Type Details: int Method Name : main Return Type Details: void Method Name : wait Return Type Details: void Method Name : wait Return Type Details: void Method Name : wait Return Type Details: void Method Name : equals Return Type Details: boolean Method Name : toString Return Type Details: java.lang.String Method Name : hashCode Return Type Details: int Method Name : getClass Return Type Details: java.lang.Class Method Name : notify Return Type Details: void Method Name : notifyAll Return Type Details: void7
Method Name : setManyValues Return Type Details: void Method Name : getValue Return Type Details: java.lang.String Method Name : setValue Return Type Details: int0
Method Name : method3 Return Type Details: void Method Name : method2 Return Type Details: java.lang.String Method Name : method1 Return Type Details: int Method Name : main Return Type Details: void Method Name : wait Return Type Details: void Method Name : wait Return Type Details: void Method Name : wait Return Type Details: void Method Name : equals Return Type Details: boolean Method Name : toString Return Type Details: java.lang.String Method Name : hashCode Return Type Details: int Method Name : getClass Return Type Details: java.lang.Class Method Name : notify Return Type Details: void Method Name : notifyAll Return Type Details: void9
Method Name : method3 Return Type Details: void Method Name : method2 Return Type Details: java.lang.String Method Name : method1 Return Type Details: int Method Name : main Return Type Details: void Method Name : wait Return Type Details: void Method Name : wait Return Type Details: void Method Name : wait Return Type Details: void Method Name : equals Return Type Details: boolean Method Name : toString Return Type Details: java.lang.String Method Name : hashCode Return Type Details: int Method Name : getClass Return Type Details: java.lang.Class Method Name : notify Return Type Details: void Method Name : notifyAll Return Type Details: void4
/*
1Method Name : method3 Return Type Details: void Method Name : method2 Return Type Details: java.lang.String Method Name : method1 Return Type Details: int Method Name : main Return Type Details: void Method Name : wait Return Type Details: void Method Name : wait Return Type Details: void Method Name : wait Return Type Details: void Method Name : equals Return Type Details: boolean Method Name : toString Return Type Details: java.lang.String Method Name : hashCode Return Type Details: int Method Name : getClass Return Type Details: java.lang.Class Method Name : notify Return Type Details: void Method Name : notifyAll Return Type Details: void4
/*
3
Method Name : method3 Return Type Details: void Method Name : method2 Return Type Details: java.lang.String Method Name : method1 Return Type Details: int Method Name : main Return Type Details: void Method Name : wait Return Type Details: void Method Name : wait Return Type Details: void Method Name : wait Return Type Details: void Method Name : equals Return Type Details: boolean Method Name : toString Return Type Details: java.lang.String Method Name : hashCode Return Type Details: int Method Name : getClass Return Type Details: java.lang.Class Method Name : notify Return Type Details: void Method Name : notifyAll Return Type Details: void4
/*
5Method Name : method3 Return Type Details: void Method Name : method2 Return Type Details: java.lang.String Method Name : method1 Return Type Details: int Method Name : main Return Type Details: void Method Name : wait Return Type Details: void Method Name : wait Return Type Details: void Method Name : wait Return Type Details: void Method Name : equals Return Type Details: boolean Method Name : toString Return Type Details: java.lang.String Method Name : hashCode Return Type Details: int Method Name : getClass Return Type Details: java.lang.Class Method Name : notify Return Type Details: void Method Name : notifyAll Return Type Details: void4
/*
7 /*
8
________145
Method Name : setManyValues Return Type Details: void Method Name : getValue Return Type Details: java.lang.String Method Name : setValue Return Type Details: int_146_______0
________145
Method Name : setManyValues Return Type Details: void Method Name : getValue Return Type Details: java.lang.String Method Name : setValue Return Type Details: int_146_______2
/*
9* Program Demonstrate how to apply getReturnType[] method
4 * Program Demonstrate how to apply getReturnType[] method
5* Program Demonstrate how to apply getReturnType[] method
6* Program Demonstrate how to apply getReturnType[] method
7
* Program Demonstrate how to apply getReturnType[] method
8* Program Demonstrate how to apply getReturnType[] method
9* of Method Class.
0* Program Demonstrate how to apply getReturnType[] method
7
* Program Demonstrate how to apply getReturnType[] method
8* Program Demonstrate how to apply getReturnType[] method
9* of Method Class.
4* of Method Class.
5
* Program Demonstrate how to apply getReturnType[] method
8* of Method Class.
7
________146
Method Name : setManyValues Return Type Details: void Method Name : getValue Return Type Details: java.lang.String Method Name : setValue Return Type Details: int_147_______9
________146
Method Name : setManyValues Return Type Details: void Method Name : getValue Return Type Details: java.lang.String Method Name : setValue Return Type Details: int_148_______1
* Program Demonstrate how to apply getReturnType[] method
8*/
3*/
4
*/
5*/
6
* Program Demonstrate how to apply getReturnType[] method
8*/
3*/
9 import
0
________145
Method Name : setManyValues Return Type Details: void Method Name : getValue Return Type Details: java.lang.String Method Name : setValue Return Type Details: int_149_______2
Method Name : method3 Return Type Details: void Method Name : method2 Return Type Details: java.lang.String Method Name : method1 Return Type Details: int Method Name : main Return Type Details: void Method Name : wait Return Type Details: void Method Name : wait Return Type Details: void Method Name : wait Return Type Details: void Method Name : equals Return Type Details: boolean Method Name : toString Return Type Details: java.lang.String Method Name : hashCode Return Type Details: int Method Name : getClass Return Type Details: java.lang.Class Method Name : notify Return Type Details: void Method Name : notifyAll Return Type Details: void4
import
2Method Name : method3 Return Type Details: void Method Name : method2 Return Type Details: java.lang.String Method Name : method1 Return Type Details: int Method Name : main Return Type Details: void Method Name : wait Return Type Details: void Method Name : wait Return Type Details: void Method Name : wait Return Type Details: void Method Name : equals Return Type Details: boolean Method Name : toString Return Type Details: java.lang.String Method Name : hashCode Return Type Details: int Method Name : getClass Return Type Details: java.lang.Class Method Name : notify Return Type Details: void Method Name : notifyAll Return Type Details: void1
import
2Method Name : method3 Return Type Details: void Method Name : method2 Return Type Details: java.lang.String Method Name : method1 Return Type Details: int Method Name : main Return Type Details: void Method Name : wait Return Type Details: void Method Name : wait Return Type Details: void Method Name : wait Return Type Details: void Method Name : equals Return Type Details: boolean Method Name : toString Return Type Details: java.lang.String Method Name : hashCode Return Type Details: int Method Name : getClass Return Type Details: java.lang.Class Method Name : notify Return Type Details: void Method Name : notifyAll Return Type Details: void1
import
8 import
9Method Name : method3 Return Type Details: void Method Name : method2 Return Type Details: java.lang.String Method Name : method1 Return Type Details: int Method Name : main Return Type Details: void Method Name : wait Return Type Details: void Method Name : wait Return Type Details: void Method Name : wait Return Type Details: void Method Name : equals Return Type Details: boolean Method Name : toString Return Type Details: java.lang.String Method Name : hashCode Return Type Details: int Method Name : getClass Return Type Details: java.lang.Class Method Name : notify Return Type Details: void Method Name : notifyAll Return Type Details: void4
java.lang.reflect.Method;
1Method Name : method3 Return Type Details: void Method Name : method2 Return Type Details: java.lang.String Method Name : method1 Return Type Details: int Method Name : main Return Type Details: void Method Name : wait Return Type Details: void Method Name : wait Return Type Details: void Method Name : wait Return Type Details: void Method Name : equals Return Type Details: boolean Method Name : toString Return Type Details: java.lang.String Method Name : hashCode Return Type Details: int Method Name : getClass Return Type Details: java.lang.Class Method Name : notify Return Type Details: void Method Name : notifyAll Return Type Details: void1
import
2Method Name : setManyValues Return Type Details: void Method Name : getValue Return Type Details: java.lang.String Method Name : setValue Return Type Details: int2
import
2import
_2
java.lang.reflect.Method;
_7
Method Name : setManyValues Return Type Details: void Method Name : getValue Return Type Details: java.lang.String Method Name : setValue Return Type Details: int0
java.lang.reflect.Method;
9
Method Name : setManyValues Return Type Details: void Method Name : getValue Return Type Details: java.lang.String Method Name : setValue Return Type Details: int2
public
1Method Name : setManyValues Return Type Details: void Method Name : getValue Return Type Details: java.lang.String Method Name : setValue Return Type Details: int2
public
public
4 public
5Method Name : setManyValues Return Type Details: void Method Name : getValue Return Type Details: java.lang.String Method Name : setValue Return Type Details: int2
Method Name : method3 Return Type Details: void Method Name : method2 Return Type Details: java.lang.String Method Name : method1 Return Type Details: int Method Name : main Return Type Details: void Method Name : wait Return Type Details: void Method Name : wait Return Type Details: void Method Name : wait Return Type Details: void Method Name : equals Return Type Details: boolean Method Name : toString Return Type Details: java.lang.String Method Name : hashCode Return Type Details: int Method Name : getClass Return Type Details: java.lang.Class Method Name : notify Return Type Details: void Method Name : notifyAll Return Type Details: void0
________12______1*/
3* Program Demonstrate how to apply getReturnType[] method
6
Method Name : setManyValues Return Type Details: void Method Name : getValue Return Type Details: java.lang.String Method Name : setValue Return Type Details: int01
________12______1
Method Name : setManyValues Return Type Details: void Method Name : getValue Return Type Details: java.lang.String Method Name : setValue Return Type Details: int03
Method Name : setManyValues Return Type Details: void Method Name : getValue Return Type Details: java.lang.String Method Name : setValue Return Type Details: int04
Method Name : method3 Return Type Details: void Method Name : method2 Return Type Details: java.lang.String Method Name : method1 Return Type Details: int Method Name : main Return Type Details: void Method Name : wait Return Type Details: void Method Name : wait Return Type Details: void Method Name : wait Return Type Details: void Method Name : equals Return Type Details: boolean Method Name : toString Return Type Details: java.lang.String Method Name : hashCode Return Type Details: int Method Name : getClass Return Type Details: java.lang.Class Method Name : notify Return Type Details: void Method Name : notifyAll Return Type Details: void9
Method Name : setManyValues Return Type Details: void Method Name : getValue Return Type Details: java.lang.String Method Name : setValue Return Type Details: int2
import
2
Method Name : setManyValues Return Type Details: void Method Name : getValue Return Type Details: java.lang.String Method Name : setValue Return Type Details: int2
Method Name : setManyValues Return Type Details: void Method Name : getValue Return Type Details: java.lang.String Method Name : setValue Return Type Details: int09
Method Name : setManyValues Return Type Details: void Method Name : getValue Return Type Details: java.lang.String Method Name : setValue Return Type Details: int2
public
Method Name : setManyValues Return Type Details: void Method Name : getValue Return Type Details: java.lang.String Method Name : setValue Return Type Details: int12
Method Name : setManyValues Return Type Details: void Method Name : getValue Return Type Details: java.lang.String Method Name : setValue Return Type Details: int2
Method Name : method3 Return Type Details: void Method Name : method2 Return Type Details: java.lang.String Method Name : method1 Return Type Details: int Method Name : main Return Type Details: void Method Name : wait Return Type Details: void Method Name : wait Return Type Details: void Method Name : wait Return Type Details: void Method Name : equals Return Type Details: boolean Method Name : toString Return Type Details: java.lang.String Method Name : hashCode Return Type Details: int Method Name : getClass Return Type Details: java.lang.Class Method Name : notify Return Type Details: void Method Name : notifyAll Return Type Details: void0
________12______1*/
3* of Method Class.
0
Method Name : setManyValues Return Type Details: void Method Name : getValue Return Type Details: java.lang.String Method Name : setValue Return Type Details: int01
________12______1
Method Name : setManyValues Return Type Details: void Method Name : getValue Return Type Details: java.lang.String Method Name : setValue Return Type Details: int03
* of Method Class.
0Method Name : method3 Return Type Details: void Method Name : method2 Return Type Details: java.lang.String Method Name : method1 Return Type Details: int Method Name : main Return Type Details: void Method Name : wait Return Type Details: void Method Name : wait Return Type Details: void Method Name : wait Return Type Details: void Method Name : equals Return Type Details: boolean Method Name : toString Return Type Details: java.lang.String Method Name : hashCode Return Type Details: int Method Name : getClass Return Type Details: java.lang.Class Method Name : notify Return Type Details: void Method Name : notifyAll Return Type Details: void9
Method Name : setManyValues Return Type Details: void Method Name : getValue Return Type Details: java.lang.String Method Name : setValue Return Type Details: int2
import
2
Method Name : setManyValues Return Type Details: void Method Name : getValue Return Type Details: java.lang.String Method Name : setValue Return Type Details: int2
Method Name : setManyValues Return Type Details: void Method Name : getValue Return Type Details: java.lang.String Method Name : setValue Return Type Details: int26
Method Name : setManyValues Return Type Details: void Method Name : getValue Return Type Details: java.lang.String Method Name : setValue Return Type Details: int2
public
Method Name : setManyValues Return Type Details: void Method Name : getValue Return Type Details: java.lang.String Method Name : setValue Return Type Details: int7
Method Name : setManyValues Return Type Details: void Method Name : getValue Return Type Details: java.lang.String Method Name : setValue Return Type Details: int30
public
4 Method Name : setManyValues Return Type Details: void Method Name : getValue Return Type Details: java.lang.String Method Name : setValue Return Type Details: int32
Method Name : setManyValues Return Type Details: void Method Name : getValue Return Type Details: java.lang.String Method Name : setValue Return Type Details: int2
Method Name : method3 Return Type Details: void Method Name : method2 Return Type Details: java.lang.String Method Name : method1 Return Type Details: int Method Name : main Return Type Details: void Method Name : wait Return Type Details: void Method Name : wait Return Type Details: void Method Name : wait Return Type Details: void Method Name : equals Return Type Details: boolean Method Name : toString Return Type Details: java.lang.String Method Name : hashCode Return Type Details: int Method Name : getClass Return Type Details: java.lang.Class Method Name : notify Return Type Details: void Method Name : notifyAll Return Type Details: void0
________12______1*/
3* of Method Class.
4
Method Name : setManyValues Return Type Details: void Method Name : getValue Return Type Details: java.lang.String Method Name : setValue Return Type Details: int01
Method Name : setManyValues Return Type Details: void Method Name : getValue Return Type Details: java.lang.String Method Name : setValue Return Type Details: int2
import
2import
_2
Keluaran.
Method Name : setManyValues Return Type Details: void Method Name : getValue Return Type Details: java.lang.String Method Name : setValue Return Type Details: int
Program 2. Program di bawah ini mencetak Jenis Pengembalian untuk semua metode kelas yang disediakan dalam metode utama program.
Jawa
/*
* Program Demonstrate how to apply getReturnType[] method
* of Method Class.
*/
import
java.lang.reflect.Method;
public
Method Name : setManyValues Return Type Details: void Method Name : getValue Return Type Details: java.lang.String Method Name : setValue Return Type Details: int0
Method Name : setManyValues Return Type Details: void Method Name : getValue Return Type Details: java.lang.String Method Name : setValue Return Type Details: int1
Method Name : setManyValues Return Type Details: void Method Name : getValue Return Type Details: java.lang.String Method Name : setValue Return Type Details: int2
Method Name : setManyValues Return Type Details: void Method Name : getValue Return Type Details: java.lang.String Method Name : setValue Return Type Details: int3
Method Name : setManyValues Return Type Details: void Method Name : getValue Return Type Details: java.lang.String Method Name : setValue Return Type Details: int2
public
Method Name : setManyValues Return Type Details: void Method Name : getValue Return Type Details: java.lang.String Method Name : setValue Return Type Details: int6
Method Name : setManyValues Return Type Details: void Method Name : getValue Return Type Details: java.lang.String Method Name : setValue Return Type Details: int7
Method Name : setManyValues Return Type Details: void Method Name : getValue Return Type Details: java.lang.String Method Name : setValue Return Type Details: int8
Method Name : setManyValues Return Type Details: void Method Name : getValue Return Type Details: java.lang.String Method Name : setValue Return Type Details: int2
Method Name : method3 Return Type Details: void Method Name : method2 Return Type Details: java.lang.String Method Name : method1 Return Type Details: int Method Name : main Return Type Details: void Method Name : wait Return Type Details: void Method Name : wait Return Type Details: void Method Name : wait Return Type Details: void Method Name : equals Return Type Details: boolean Method Name : toString Return Type Details: java.lang.String Method Name : hashCode Return Type Details: int Method Name : getClass Return Type Details: java.lang.Class Method Name : notify Return Type Details: void Method Name : notifyAll Return Type Details: void0
________12______1
Method Name : method3 Return Type Details: void Method Name : method2 Return Type Details: java.lang.String Method Name : method1 Return Type Details: int Method Name : main Return Type Details: void Method Name : wait Return Type Details: void Method Name : wait Return Type Details: void Method Name : wait Return Type Details: void Method Name : equals Return Type Details: boolean Method Name : toString Return Type Details: java.lang.String Method Name : hashCode Return Type Details: int Method Name : getClass Return Type Details: java.lang.Class Method Name : notify Return Type Details: void Method Name : notifyAll Return Type Details: void2
Method Name : method3 Return Type Details: void Method Name : method2 Return Type Details: java.lang.String Method Name : method1 Return Type Details: int Method Name : main Return Type Details: void Method Name : wait Return Type Details: void Method Name : wait Return Type Details: void Method Name : wait Return Type Details: void Method Name : equals Return Type Details: boolean Method Name : toString Return Type Details: java.lang.String Method Name : hashCode Return Type Details: int Method Name : getClass Return Type Details: java.lang.Class Method Name : notify Return Type Details: void Method Name : notifyAll Return Type Details: void0
Method Name : method3 Return Type Details: void Method Name : method2 Return Type Details: java.lang.String Method Name : method1 Return Type Details: int Method Name : main Return Type Details: void Method Name : wait Return Type Details: void Method Name : wait Return Type Details: void Method Name : wait Return Type Details: void Method Name : equals Return Type Details: boolean Method Name : toString Return Type Details: java.lang.String Method Name : hashCode Return Type Details: int Method Name : getClass Return Type Details: java.lang.Class Method Name : notify Return Type Details: void Method Name : notifyAll Return Type Details: void4
Method Name : method3 Return Type Details: void Method Name : method2 Return Type Details: java.lang.String Method Name : method1 Return Type Details: int Method Name : main Return Type Details: void Method Name : wait Return Type Details: void Method Name : wait Return Type Details: void Method Name : wait Return Type Details: void Method Name : equals Return Type Details: boolean Method Name : toString Return Type Details: java.lang.String Method Name : hashCode Return Type Details: int Method Name : getClass Return Type Details: java.lang.Class Method Name : notify Return Type Details: void Method Name : notifyAll Return Type Details: void5
________12______4
Method Name : setManyValues Return Type Details: void Method Name : getValue Return Type Details: java.lang.String Method Name : setValue Return Type Details: int66
Method Name : setManyValues Return Type Details: void Method Name : getValue Return Type Details: java.lang.String Method Name : setValue Return Type Details: int0
Method Name : method3 Return Type Details: void Method Name : method2 Return Type Details: java.lang.String Method Name : method1 Return Type Details: int Method Name : main Return Type Details: void Method Name : wait Return Type Details: void Method Name : wait Return Type Details: void Method Name : wait Return Type Details: void Method Name : equals Return Type Details: boolean Method Name : toString Return Type Details: java.lang.String Method Name : hashCode Return Type Details: int Method Name : getClass Return Type Details: java.lang.Class Method Name : notify Return Type Details: void Method Name : notifyAll Return Type Details: void9
Method Name : method3 Return Type Details: void Method Name : method2 Return Type Details: java.lang.String Method Name : method1 Return Type Details: int Method Name : main Return Type Details: void Method Name : wait Return Type Details: void Method Name : wait Return Type Details: void Method Name : wait Return Type Details: void Method Name : equals Return Type Details: boolean Method Name : toString Return Type Details: java.lang.String Method Name : hashCode Return Type Details: int Method Name : getClass Return Type Details: java.lang.Class Method Name : notify Return Type Details: void Method Name : notifyAll Return Type Details: void4
/*
1Method Name : method3 Return Type Details: void Method Name : method2 Return Type Details: java.lang.String Method Name : method1 Return Type Details: int Method Name : main Return Type Details: void Method Name : wait Return Type Details: void Method Name : wait Return Type Details: void Method Name : wait Return Type Details: void Method Name : equals Return Type Details: boolean Method Name : toString Return Type Details: java.lang.String Method Name : hashCode Return Type Details: int Method Name : getClass Return Type Details: java.lang.Class Method Name : notify Return Type Details: void Method Name : notifyAll Return Type Details: void4
/*
3
Method Name : method3 Return Type Details: void Method Name : method2 Return Type Details: java.lang.String Method Name : method1 Return Type Details: int Method Name : main Return Type Details: void Method Name : wait Return Type Details: void Method Name : wait Return Type Details: void Method Name : wait Return Type Details: void Method Name : equals Return Type Details: boolean Method Name : toString Return Type Details: java.lang.String Method Name : hashCode Return Type Details: int Method Name : getClass Return Type Details: java.lang.Class Method Name : notify Return Type Details: void Method Name : notifyAll Return Type Details: void4
/*
5Method Name : method3 Return Type Details: void Method Name : method2 Return Type Details: java.lang.String Method Name : method1 Return Type Details: int Method Name : main Return Type Details: void Method Name : wait Return Type Details: void Method Name : wait Return Type Details: void Method Name : wait Return Type Details: void Method Name : equals Return Type Details: boolean Method Name : toString Return Type Details: java.lang.String Method Name : hashCode Return Type Details: int Method Name : getClass Return Type Details: java.lang.Class Method Name : notify Return Type Details: void Method Name : notifyAll Return Type Details: void4
/*
7 /*
8
/*
_9
Method Name : setManyValues Return Type Details: void Method Name : getValue Return Type Details: java.lang.String Method Name : setValue Return Type Details: int79
________145
Method Name : setManyValues Return Type Details: void Method Name : getValue Return Type Details: java.lang.String Method Name : setValue Return Type Details: int_147_______9
/*
_9
Method Name : setManyValues Return Type Details: void Method Name : getValue Return Type Details: java.lang.String Method Name : setValue Return Type Details: int83
________145
Method Name : setManyValues Return Type Details: void Method Name : getValue Return Type Details: java.lang.String Method Name : setValue Return Type Details: int_148_______3
*/
4Method Name : setManyValues Return Type Details: void Method Name : getValue Return Type Details: java.lang.String Method Name : setValue Return Type Details: int87
*/
6
________145
Method Name : setManyValues Return Type Details: void Method Name : getValue Return Type Details: java.lang.String Method Name : setValue Return Type Details: int_148_______3
*/
9 import
0Method Name : method3 Return Type Details: void Method Name : method2 Return Type Details: java.lang.String Method Name : method1 Return Type Details: int Method Name : main Return Type Details: void Method Name : wait Return Type Details: void Method Name : wait Return Type Details: void Method Name : wait Return Type Details: void Method Name : equals Return Type Details: boolean Method Name : toString Return Type Details: java.lang.String Method Name : hashCode Return Type Details: int Method Name : getClass Return Type Details: java.lang.Class Method Name : notify Return Type Details: void Method Name : notifyAll Return Type Details: void4
import
2Method Name : method3 Return Type Details: void Method Name : method2 Return Type Details: java.lang.String Method Name : method1 Return Type Details: int Method Name : main Return Type Details: void Method Name : wait Return Type Details: void Method Name : wait Return Type Details: void Method Name : wait Return Type Details: void Method Name : equals Return Type Details: boolean Method Name : toString Return Type Details: java.lang.String Method Name : hashCode Return Type Details: int Method Name : getClass Return Type Details: java.lang.Class Method Name : notify Return Type Details: void Method Name : notifyAll Return Type Details: void1
import
2Method Name : method3 Return Type Details: void Method Name : method2 Return Type Details: java.lang.String Method Name : method1 Return Type Details: int Method Name : main Return Type Details: void Method Name : wait Return Type Details: void Method Name : wait Return Type Details: void Method Name : wait Return Type Details: void Method Name : equals Return Type Details: boolean Method Name : toString Return Type Details: java.lang.String Method Name : hashCode Return Type Details: int Method Name : getClass Return Type Details: java.lang.Class Method Name : notify Return Type Details: void Method Name : notifyAll Return Type Details: void1
import
8 import
9Method Name : method3 Return Type Details: void Method Name : method2 Return Type Details: java.lang.String Method Name : method1 Return Type Details: int Method Name : main Return Type Details: void Method Name : wait Return Type Details: void Method Name : wait Return Type Details: void Method Name : wait Return Type Details: void Method Name : equals Return Type Details: boolean Method Name : toString Return Type Details: java.lang.String Method Name : hashCode Return Type Details: int Method Name : getClass Return Type Details: java.lang.Class Method Name : notify Return Type Details: void Method Name : notifyAll Return Type Details: void4
java.lang.reflect.Method;
1Method Name : method3 Return Type Details: void Method Name : method2 Return Type Details: java.lang.String Method Name : method1 Return Type Details: int Method Name : main Return Type Details: void Method Name : wait Return Type Details: void Method Name : wait Return Type Details: void Method Name : wait Return Type Details: void Method Name : equals Return Type Details: boolean Method Name : toString Return Type Details: java.lang.String Method Name : hashCode Return Type Details: int Method Name : getClass Return Type Details: java.lang.Class Method Name : notify Return Type Details: void Method Name : notifyAll Return Type Details: void1
import
2Method Name : setManyValues Return Type Details: void Method Name : getValue Return Type Details: java.lang.String Method Name : setValue Return Type Details: int2
import
2Method Name : setManyValues Return Type Details: void Method Name : getValue Return Type Details: java.lang.String Method Name : setValue Return Type Details: int2
public
1Method Name : setManyValues Return Type Details: void Method Name : getValue Return Type Details: java.lang.String Method Name : setValue Return Type Details: int2
public
public
4 Method Name : method3 Return Type Details: void Method Name : method2 Return Type Details: java.lang.String Method Name : method1 Return Type Details: int Method Name : main Return Type Details: void Method Name : wait Return Type Details: void Method Name : wait Return Type Details: void Method Name : wait Return Type Details: void Method Name : equals Return Type Details: boolean Method Name : toString Return Type Details: java.lang.String Method Name : hashCode Return Type Details: int Method Name : getClass Return Type Details: java.lang.Class Method Name : notify Return Type Details: void Method Name : notifyAll Return Type Details: void11
Method Name : setManyValues Return Type Details: void Method Name : getValue Return Type Details: java.lang.String Method Name : setValue Return Type Details: int2
Method Name : method3 Return Type Details: void Method Name : method2 Return Type Details: java.lang.String Method Name : method1 Return Type Details: int Method Name : main Return Type Details: void Method Name : wait Return Type Details: void Method Name : wait Return Type Details: void Method Name : wait Return Type Details: void Method Name : equals Return Type Details: boolean Method Name : toString Return Type Details: java.lang.String Method Name : hashCode Return Type Details: int Method Name : getClass Return Type Details: java.lang.Class Method Name : notify Return Type Details: void Method Name : notifyAll Return Type Details: void0
Method Name : method3 Return Type Details: void Method Name : method2 Return Type Details: java.lang.String Method Name : method1 Return Type Details: int Method Name : main Return Type Details: void Method Name : wait Return Type Details: void Method Name : wait Return Type Details: void Method Name : wait Return Type Details: void Method Name : equals Return Type Details: boolean Method Name : toString Return Type Details: java.lang.String Method Name : hashCode Return Type Details: int Method Name : getClass Return Type Details: java.lang.Class Method Name : notify Return Type Details: void Method Name : notifyAll Return Type Details: void1
*/
3Method Name : method3 Return Type Details: void Method Name : method2 Return Type Details: java.lang.String Method Name : method1 Return Type Details: int Method Name : main Return Type Details: void Method Name : wait Return Type Details: void Method Name : wait Return Type Details: void Method Name : wait Return Type Details: void Method Name : equals Return Type Details: boolean Method Name : toString Return Type Details: java.lang.String Method Name : hashCode Return Type Details: int Method Name : getClass Return Type Details: java.lang.Class Method Name : notify Return Type Details: void Method Name : notifyAll Return Type Details: void16
Method Name : setManyValues Return Type Details: void Method Name : getValue Return Type Details: java.lang.String Method Name : setValue Return Type Details: int01
________12______1
Method Name : setManyValues Return Type Details: void Method Name : getValue Return Type Details: java.lang.String Method Name : setValue Return Type Details: int03
Method Name : setManyValues Return Type Details: void Method Name : getValue Return Type Details: java.lang.String Method Name : setValue Return Type Details: int04
Method Name : method3 Return Type Details: void Method Name : method2 Return Type Details: java.lang.String Method Name : method1 Return Type Details: int Method Name : main Return Type Details: void Method Name : wait Return Type Details: void Method Name : wait Return Type Details: void Method Name : wait Return Type Details: void Method Name : equals Return Type Details: boolean Method Name : toString Return Type Details: java.lang.String Method Name : hashCode Return Type Details: int Method Name : getClass Return Type Details: java.lang.Class Method Name : notify Return Type Details: void Method Name : notifyAll Return Type Details: void9
Method Name : setManyValues Return Type Details: void Method Name : getValue Return Type Details: java.lang.String Method Name : setValue Return Type Details: int2
import
2
Method Name : setManyValues Return Type Details: void Method Name : getValue Return Type Details: java.lang.String Method Name : setValue Return Type Details: int2
Method Name : setManyValues Return Type Details: void Method Name : getValue Return Type Details: java.lang.String Method Name : setValue Return Type Details: int09
Method Name : setManyValues Return Type Details: void Method Name : getValue Return Type Details: java.lang.String Method Name : setValue Return Type Details: int2
public
Method Name : method3 Return Type Details: void Method Name : method2 Return Type Details: java.lang.String Method Name : method1 Return Type Details: int Method Name : main Return Type Details: void Method Name : wait Return Type Details: void Method Name : wait Return Type Details: void Method Name : wait Return Type Details: void Method Name : equals Return Type Details: boolean Method Name : toString Return Type Details: java.lang.String Method Name : hashCode Return Type Details: int Method Name : getClass Return Type Details: java.lang.Class Method Name : notify Return Type Details: void Method Name : notifyAll Return Type Details: void28
Method Name : setManyValues Return Type Details: void Method Name : getValue Return Type Details: java.lang.String Method Name : setValue Return Type Details: int2
Method Name : method3 Return Type Details: void Method Name : method2 Return Type Details: java.lang.String Method Name : method1 Return Type Details: int Method Name : main Return Type Details: void Method Name : wait Return Type Details: void Method Name : wait Return Type Details: void Method Name : wait Return Type Details: void Method Name : equals Return Type Details: boolean Method Name : toString Return Type Details: java.lang.String Method Name : hashCode Return Type Details: int Method Name : getClass Return Type Details: java.lang.Class Method Name : notify Return Type Details: void Method Name : notifyAll Return Type Details: void0
________12______1*/
3
Method Name : method3 Return Type Details: void Method Name : method2 Return Type Details: java.lang.String Method Name : method1 Return Type Details: int Method Name : main Return Type Details: void Method Name : wait Return Type Details: void Method Name : wait Return Type Details: void Method Name : wait Return Type Details: void Method Name : equals Return Type Details: boolean Method Name : toString Return Type Details: java.lang.String Method Name : hashCode Return Type Details: int Method Name : getClass Return Type Details: java.lang.Class Method Name : notify Return Type Details: void Method Name : notifyAll Return Type Details: void33
Method Name : setManyValues Return Type Details: void Method Name : getValue Return Type Details: java.lang.String Method Name : setValue Return Type Details: int01
________12______1
Method Name : setManyValues Return Type Details: void Method Name : getValue Return Type Details: java.lang.String Method Name : setValue Return Type Details: int03
Method Name : method3 Return Type Details: void Method Name : method2 Return Type Details: java.lang.String Method Name : method1 Return Type Details: int Method Name : main Return Type Details: void Method Name : wait Return Type Details: void Method Name : wait Return Type Details: void Method Name : wait Return Type Details: void Method Name : equals Return Type Details: boolean Method Name : toString Return Type Details: java.lang.String Method Name : hashCode Return Type Details: int Method Name : getClass Return Type Details: java.lang.Class Method Name : notify Return Type Details: void Method Name : notifyAll Return Type Details: void37
Method Name : method3 Return Type Details: void Method Name : method2 Return Type Details: java.lang.String Method Name : method1 Return Type Details: int Method Name : main Return Type Details: void Method Name : wait Return Type Details: void Method Name : wait Return Type Details: void Method Name : wait Return Type Details: void Method Name : equals Return Type Details: boolean Method Name : toString Return Type Details: java.lang.String Method Name : hashCode Return Type Details: int Method Name : getClass Return Type Details: java.lang.Class Method Name : notify Return Type Details: void Method Name : notifyAll Return Type Details: void9
Method Name : setManyValues Return Type Details: void Method Name : getValue Return Type Details: java.lang.String Method Name : setValue Return Type Details: int2
import
2
Method Name : setManyValues Return Type Details: void Method Name : getValue Return Type Details: java.lang.String Method Name : setValue Return Type Details: int2
Method Name : setManyValues Return Type Details: void Method Name : getValue Return Type Details: java.lang.String Method Name : setValue Return Type Details: int26
Method Name : setManyValues Return Type Details: void Method Name : getValue Return Type Details: java.lang.String Method Name : setValue Return Type Details: int2
public
Method Name : setManyValues Return Type Details: void Method Name : getValue Return Type Details: java.lang.String Method Name : setValue Return Type Details: int7
Method Name : method3 Return Type Details: void Method Name : method2 Return Type Details: java.lang.String Method Name : method1 Return Type Details: int Method Name : main Return Type Details: void Method Name : wait Return Type Details: void Method Name : wait Return Type Details: void Method Name : wait Return Type Details: void Method Name : equals Return Type Details: boolean Method Name : toString Return Type Details: java.lang.String Method Name : hashCode Return Type Details: int Method Name : getClass Return Type Details: java.lang.Class Method Name : notify Return Type Details: void Method Name : notifyAll Return Type Details: void46
public
4 Method Name : setManyValues Return Type Details: void Method Name : getValue Return Type Details: java.lang.String Method Name : setValue Return Type Details: int32
Method Name : setManyValues Return Type Details: void Method Name : getValue Return Type Details: java.lang.String Method Name : setValue Return Type Details: int2
Method Name : method3 Return Type Details: void Method Name : method2 Return Type Details: java.lang.String Method Name : method1 Return Type Details: int Method Name : main Return Type Details: void Method Name : wait Return Type Details: void Method Name : wait Return Type Details: void Method Name : wait Return Type Details: void Method Name : equals Return Type Details: boolean Method Name : toString Return Type Details: java.lang.String Method Name : hashCode Return Type Details: int Method Name : getClass Return Type Details: java.lang.Class Method Name : notify Return Type Details: void Method Name : notifyAll Return Type Details: void0
________12______1*/
3
Method Name : method3 Return Type Details: void Method Name : method2 Return Type Details: java.lang.String Method Name : method1 Return Type Details: int Method Name : main Return Type Details: void Method Name : wait Return Type Details: void Method Name : wait Return Type Details: void Method Name : wait Return Type Details: void Method Name : equals Return Type Details: boolean Method Name : toString Return Type Details: java.lang.String Method Name : hashCode Return Type Details: int Method Name : getClass Return Type Details: java.lang.Class Method Name : notify Return Type Details: void Method Name : notifyAll Return Type Details: void37
Method Name : setManyValues Return Type Details: void Method Name : getValue Return Type Details: java.lang.String Method Name : setValue Return Type Details: int01
Method Name : setManyValues Return Type Details: void Method Name : getValue Return Type Details: java.lang.String Method Name : setValue Return Type Details: int2
import
2import
_2
Keluaran.
Method Name : method3 Return Type Details: void Method Name : method2 Return Type Details: java.lang.String Method Name : method1 Return Type Details: int Method Name : main Return Type Details: void Method Name : wait Return Type Details: void Method Name : wait Return Type Details: void Method Name : wait Return Type Details: void Method Name : equals Return Type Details: boolean Method Name : toString Return Type Details: java.lang.String Method Name : hashCode Return Type Details: int Method Name : getClass Return Type Details: java.lang.Class Method Name : notify Return Type Details: void Method Name : notifyAll Return Type Details: void
Penjelasan. Output dari program ini juga menampilkan hasil untuk objek metode selain metode yang didefinisikan dalam objek kelas seperti wait, equals, toString, hashCode, getClass, notify, notifyAll. Metode-metode ini diwarisi dari nama kelas super Object of java. paket lang lang berdasarkan objek kelas
Referensi.
Catatan Pribadi Saya arrow_drop_up
Menyimpan