Game Control Plus
1.2.2
|
Public Member Functions | |
Plug (final Object i_object, final String i_methodName) | |
Plug (final Object i_object, final String i_methodName, final boolean i_hasParameter) | |
Package Functions | |
boolean | hasParamter () |
void | call (final float i_x, final float i_y) |
void | call () |
Private Member Functions | |
boolean | checkParameter (final Class<?>[] objectMethodParams) throws Exception |
Method | initPlug () |
Private Attributes | |
final Method | method |
final String | methodName |
final Object | object |
final Class<?> | objectClass |
boolean | hasParameter = false |
A Plug is the invocation of a method to handle incoming Events. These methods are plugged by reflection, so a plug needs the name of this method and the object where it is declared.
org.gamecontrolplus.Plug.Plug | ( | final Object | i_object, |
final String | i_methodName | ||
) |
Initializes a new Plug by a method name and the object declaring the method.
i_object | |
i_methodName |
org.gamecontrolplus.Plug.Plug | ( | final Object | i_object, |
final String | i_methodName, | ||
final boolean | i_hasParameter | ||
) |
Initializes a new Plug by a method name and the object declaring the method.
i_object | |
i_methodName |
|
package |
Calls the plug by invoking the method given by the plug.
i_value |
|
private |
Exception |
|
private |
Intitializes the method that has been plugged.
|
private |
Kind of Parameter that is handled by the plug can be NOTE, Controller, Program Change or a MidiEvent at general
|
private |
The plugged method
|
private |
Name of the method to plug
|
private |
Object containing the method to plug
|
private |
Class of the object containing the method to plug