java.lang.Object
org.bzdev.drama.DoReceive
Dynamic-method helper.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interface
Interface generated by an annotation processor to call a method. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
addDispatch
(Class[] types, DoReceive.Caller caller) Add dispatch method.protected void
Indicate all displatch callers have been added.protected void
Dispatch the method.static final DoReceive
Get the helper.protected void
Register a class.
-
Constructor Details
-
DoReceive
public DoReceive()
-
-
Method Details
-
addDispatch
Add dispatch method.- Parameters:
types
- an array of typescaller
- the caller
-
addDispatchComplete
protected void addDispatchComplete()Indicate all displatch callers have been added. -
register
Register a class. This causes classes to be loaded.- Parameters:
clazz
- the class to register with this helper.
-
getHelper
Get the helper.- Returns:
- the helper
-
dispatch
Dispatch the method.- Parameters:
obj
- the object whose method is being dispatchedarg0
- argument number 0arg1
- argument number 1arg2
- argument number 2
-