|
Crossfire JXClient, Trunk
|
Collaboration diagram for Reflection:Classes | |
| interface | Animal |
| class | Dog |
Static Public Member Functions | |
| static void | main (final String[] args) throws NoSuchMethodException |
The code sample illustrates changes in the reflection API linked default methods. Since Java SE 8, a new method is added into the class java.lang.reflect.Method, with which you can reflectively determine whether or not a default method provided by an interface (Method.isDefault()).
Definition at line 44 of file Reflection.java.
|
static |
Illustrate the usage of the method java.lang.reflect.Method.isDefault()
| args | command-line arguments |
| NoSuchMethodException | internal demo error |
Definition at line 122 of file Reflection.java.