Weaver 3.1.0a1-D1

com.oldlight.weaver.interpreter.components
Class WeaverApplicationComponentChoice

java.lang.Object
  extended bycom.oldlight.weaver.interpreter.components.WeaverApplicationComponentChoice
All Implemented Interfaces:
WeaverApplicationComponent

public class WeaverApplicationComponentChoice
extends Object
implements WeaverApplicationComponent

Author:
pharvey To change the template for this generated type comment go to Window>Preferences>Java>Code Generation>Code and Comments

Nested Class Summary
private  class WeaverApplicationComponentChoice.When
           
 
Field Summary
private  Logger l
           
private  WeaverFileLocation location
           
private  WeaverApplicationComponentGroup otherwise
           
private  WeaverFileLocation otherwiseLocation
           
private  ArrayList whens
           
 
Constructor Summary
WeaverApplicationComponentChoice(WeaverFileLocation location)
           
 
Method Summary
 void addWhen(WeaverApplicationComponentGroup when, WeaverPredicate guard, WeaverFileLocation location)
           
 void attemptToHandle(WeaverExecutionContextImpl context, WeaverPrivateExecutionContext privateExecutionContext, WeaverInterpreter interpreter, WeaverInterpreterResult interpreterResult)
           
 void setOtherwise(WeaverApplicationComponentGroup otherwise, WeaverFileLocation location)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

l

private Logger l

whens

private ArrayList whens

location

private WeaverFileLocation location

otherwise

private WeaverApplicationComponentGroup otherwise

otherwiseLocation

private WeaverFileLocation otherwiseLocation
Constructor Detail

WeaverApplicationComponentChoice

public WeaverApplicationComponentChoice(WeaverFileLocation location)
Method Detail

addWhen

public void addWhen(WeaverApplicationComponentGroup when,
                    WeaverPredicate guard,
                    WeaverFileLocation location)

setOtherwise

public void setOtherwise(WeaverApplicationComponentGroup otherwise,
                         WeaverFileLocation location)

attemptToHandle

public void attemptToHandle(WeaverExecutionContextImpl context,
                            WeaverPrivateExecutionContext privateExecutionContext,
                            WeaverInterpreter interpreter,
                            WeaverInterpreterResult interpreterResult)
                     throws WeaverExecutionException
Specified by:
attemptToHandle in interface WeaverApplicationComponent
Throws:
WeaverExecutionException

Copyright ©Paul Harvey