java.lang.Object
org.bzdev.drama.OnConditionChange
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, OnConditionChange.Caller caller) Add dispatch method.protected void
Indicate all displatch callers have been added.protected void
dispatch
(Actor obj, Condition arg0, ConditionMode arg1, SimObject arg2) Dispatch the method.static final OnConditionChange
Get the helper.protected void
Register a class.
-
Constructor Details
-
OnConditionChange
public OnConditionChange()
-
-
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
-