java.lang.Object
org.bzdev.drama.OnConditionChange
Dynamic-method helper.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceInterface generated by an annotation processor to call a method. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddDispatch(Class[] types, OnConditionChange.Caller caller) Add dispatch method.protected voidIndicate all displatch callers have been added.protected voiddispatch(Actor obj, Condition arg0, ConditionMode arg1, SimObject arg2) Dispatch the method.static final OnConditionChangeGet the helper.protected voidRegister 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
-