Package org.apache.felix.gogo.shell
Class Procedural
- java.lang.Object
-
- org.apache.felix.gogo.shell.Procedural
-
public class Procedural extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Procedural()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
_if(org.apache.felix.service.command.CommandSession session, org.apache.felix.service.command.Function[] fns)
void
_throw(java.lang.Exception e)
void
_throw(java.lang.String message)
void
_throw(org.apache.felix.service.command.CommandSession session)
java.lang.Object
_try(org.apache.felix.service.command.CommandSession session, org.apache.felix.service.command.Function func)
java.lang.Object
_try(org.apache.felix.service.command.CommandSession session, org.apache.felix.service.command.Function func, org.apache.felix.service.command.Function error)
void
_while(org.apache.felix.service.command.CommandSession session, org.apache.felix.service.command.Function condition, org.apache.felix.service.command.Function ifTrue)
java.util.List<java.lang.Object>
each(org.apache.felix.service.command.CommandSession session, java.util.Collection<java.lang.Object> list, org.apache.felix.service.command.Function closure)
boolean
not(org.apache.felix.service.command.CommandSession session, org.apache.felix.service.command.Function condition)
void
until(org.apache.felix.service.command.CommandSession session, org.apache.felix.service.command.Function condition, org.apache.felix.service.command.Function ifTrue)
-
-
-
Method Detail
-
each
public java.util.List<java.lang.Object> each(org.apache.felix.service.command.CommandSession session, java.util.Collection<java.lang.Object> list, org.apache.felix.service.command.Function closure) throws java.lang.Exception
- Throws:
java.lang.Exception
-
_if
public java.lang.Object _if(org.apache.felix.service.command.CommandSession session, org.apache.felix.service.command.Function[] fns) throws java.lang.Exception
- Throws:
java.lang.Exception
-
not
public boolean not(org.apache.felix.service.command.CommandSession session, org.apache.felix.service.command.Function condition) throws java.lang.Exception
- Throws:
java.lang.Exception
-
_throw
public void _throw(java.lang.String message)
-
_throw
public void _throw(java.lang.Exception e) throws java.lang.Exception
- Throws:
java.lang.Exception
-
_throw
public void _throw(org.apache.felix.service.command.CommandSession session) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
_try
public java.lang.Object _try(org.apache.felix.service.command.CommandSession session, org.apache.felix.service.command.Function func) throws java.lang.Exception
- Throws:
java.lang.Exception
-
_try
public java.lang.Object _try(org.apache.felix.service.command.CommandSession session, org.apache.felix.service.command.Function func, org.apache.felix.service.command.Function error) throws java.lang.Exception
- Throws:
java.lang.Exception
-
_while
public void _while(org.apache.felix.service.command.CommandSession session, org.apache.felix.service.command.Function condition, org.apache.felix.service.command.Function ifTrue) throws java.lang.Exception
- Throws:
java.lang.Exception
-
until
public void until(org.apache.felix.service.command.CommandSession session, org.apache.felix.service.command.Function condition, org.apache.felix.service.command.Function ifTrue) throws java.lang.Exception
- Throws:
java.lang.Exception
-
-