uk.co.badgersinfoil.jactionscript
Class ActionHandle

java.lang.Object
  |
  +--uk.co.badgersinfoil.jactionscript.ActionHandle

public class ActionHandle
extends java.lang.Object


Constructor Summary
ActionHandle()
           
ActionHandle(Action op)
           
 
Method Summary
 void accept(Visitor v)
           
 void addTargeter(BranchAction targeter)
          It's the responsibility of the BranchAction to keep the handles it targets up to date by calling this method.
 void dispose()
          Breaks references held by this objects to others to promote garbage-collection and to expose code incorrectly using stale handles.
 Action getAction()
           
 ActionHandle getNext()
           
 ActionHandle getPrev()
           
 boolean hasTargeters()
          Do any BranchAction objects reference this handle?
 void removeTargeter(BranchAction targeter)
          Called by BranchAction to keep its targets up to date.
 void setAction(Action op)
           
 void setNext(ActionHandle next)
           
 void setPrev(ActionHandle prev)
           
 java.util.Iterator targeters()
          Return an iterator over any BranchAction objects targeting this handle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ActionHandle

public ActionHandle()

ActionHandle

public ActionHandle(Action op)
Method Detail

setAction

public void setAction(Action op)

getAction

public Action getAction()

setNext

public void setNext(ActionHandle next)

getNext

public ActionHandle getNext()

setPrev

public void setPrev(ActionHandle prev)

getPrev

public ActionHandle getPrev()

hasTargeters

public boolean hasTargeters()
Do any BranchAction objects reference this handle?


targeters

public java.util.Iterator targeters()
Return an iterator over any BranchAction objects targeting this handle


addTargeter

public void addTargeter(BranchAction targeter)
It's the responsibility of the BranchAction to keep the handles it targets up to date by calling this method.


removeTargeter

public void removeTargeter(BranchAction targeter)
Called by BranchAction to keep its targets up to date.


accept

public void accept(Visitor v)
            throws JASVisitorException
JASVisitorException

dispose

public void dispose()
Breaks references held by this objects to others to promote garbage-collection and to expose code incorrectly using stale handles. ActionList.remove(ActionHandle) calls this method on its argument as the final step of removal.