org.jclouds.scriptbuilder
Class ExitInsteadOfReturn
java.lang.Object
com.google.common.collect.ForwardingObject
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
Methods inherited from class com.google.common.collect.ForwardingObject |
toString |
ExitInsteadOfReturn
public ExitInsteadOfReturn(Statement delegate)
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.