Crossfire JXClient, Trunk
Classes | Static Public Member Functions | List of all members
Reflection Class Reference
Collaboration diagram for Reflection:
Collaboration graph

Classes

interface  Animal
 
class  Dog
 

Static Public Member Functions

static void main (final String[] args) throws NoSuchMethodException
 

Detailed Description

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.

Member Function Documentation

◆ main()

static void Reflection.main ( final String[]  args) throws NoSuchMethodException
static

Illustrate the usage of the method java.lang.reflect.Method.isDefault()

Parameters
argscommand-line arguments
Exceptions
NoSuchMethodExceptioninternal demo error

Definition at line 122 of file Reflection.java.


The documentation for this class was generated from the following file: