org.javagen.agile.core.visitor
Class EmitterVisitor

java.lang.Object
  extended by org.javagen.agile.core.visitor.DefaultVisitor
      extended by org.javagen.agile.core.visitor.EmitterVisitor
All Implemented Interfaces:
Generator, Visit, Visitor

public class EmitterVisitor
extends DefaultVisitor

Walks the arbitrary model tree and invokes code generator modules attatched to model nodes.

Author:
Richard Easterling

Field Summary
protected  Binder binder
           
protected  ContextHolderStack contextHolderStack
           
protected  EmitterContextLoader contextLoader
           
 
Fields inherited from class org.javagen.agile.core.visitor.DefaultVisitor
itinerary
 
Constructor Summary
EmitterVisitor()
           
EmitterVisitor(Binder binder)
           
 
Method Summary
 Binder getBinder()
           
 EmitterContextLoader getContextLoader()
           
 void setBinder(Binder binder)
           
 void setContextLoader(EmitterContextLoader contextLoader)
           
 void visit(Model model)
          Called to perform a specific process on a model instance.
 
Methods inherited from class org.javagen.agile.core.visitor.DefaultVisitor
gen, getItinerary, itinerary, setItinerary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

binder

protected Binder binder

contextLoader

protected EmitterContextLoader contextLoader

contextHolderStack

protected ContextHolderStack contextHolderStack
Constructor Detail

EmitterVisitor

public EmitterVisitor()

EmitterVisitor

public EmitterVisitor(Binder binder)
Method Detail

visit

public void visit(Model model)
Description copied from interface: Visit
Called to perform a specific process on a model instance.

Specified by:
visit in interface Visit
Specified by:
visit in interface Visitor
Overrides:
visit in class DefaultVisitor
Parameters:
model - instance to visit.

getBinder

public Binder getBinder()

setBinder

public void setBinder(Binder binder)

getContextLoader

public EmitterContextLoader getContextLoader()

setContextLoader

public void setContextLoader(EmitterContextLoader contextLoader)


Copyright 2006-2006-2007 Outsource Cafe Inc.. All Rights Reserved.