Packageandromeda.util.visitor
Classpublic class AbstractVisitable
InheritanceAbstractVisitable Inheritance CoreObject
ImplementsIVisitable

The abstract representation of the IVisitable interface. To implements a Visitor pattern you must inspired your IVisitor classes with this interface. This Abstract class is a basical implementation of the Visitor pattern, you can inspirate your custom Visitor design pattern implementation with it easy representation.



Public Methods
 MethodDefined by
  
Abstract constructor to creates a concrete constructor when this constructor is extended.
AbstractVisitable
  
accept(visitor:IVisitor):void
Accept a IVisitor object.
AbstractVisitable
 Inherited
Returns the internal ILogger reference of this ILogable object.
CoreObject
 Inherited
hashCode():uint
Returns a hashcode value for the object.
CoreObject
 Inherited
setLogger(log:ILogger = null):void
Sets the internal ILogger reference of this ILogable object.
CoreObject
 Inherited
toSource(indent:int = 0):String
Returns the string representation the source code of the object.
CoreObject
 Inherited
toString():String
Returns the string representation of this instance.
CoreObject
Constructor detail
AbstractVisitable()constructor
public function AbstractVisitable()

Abstract constructor to creates a concrete constructor when this constructor is extended.

Method detail
accept()method
public function accept(visitor:IVisitor):void

Accept a IVisitor object. You can overrides this method in complex Visitor pattern implementation.

Parameters
visitor:IVisitor