org.jclouds.scriptbuilder
Class ExitInsteadOfReturn

java.lang.Object
  extended by com.google.common.collect.ForwardingObject
      extended by org.jclouds.scriptbuilder.ExitInsteadOfReturn
All Implemented Interfaces:
Statement

public class ExitInsteadOfReturn
extends com.google.common.collect.ForwardingObject
implements Statement

you cannot return from a top-level script, so if you are using snippets that issue return then you'll want to wrap them in this.

Author:
Adrian Cole

Constructor Summary
ExitInsteadOfReturn(Statement delegate)
           
 
Method Summary
protected  Statement delegate()
           
 Iterable<String> functionDependencies(OsFamily family)
           
 String render(OsFamily family)
           
 
Methods inherited from class com.google.common.collect.ForwardingObject
toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ExitInsteadOfReturn

public ExitInsteadOfReturn(Statement delegate)
Method Detail

functionDependencies

public Iterable<String> functionDependencies(OsFamily family)
Specified by:
functionDependencies in interface Statement

render

public String render(OsFamily family)
Specified by:
render in interface Statement

delegate

protected Statement delegate()
Specified by:
delegate in class com.google.common.collect.ForwardingObject


Copyright © 2009-2012 jclouds. All Rights Reserved.