Package org.apache.felix.gogo.shell
Class Procedural
- java.lang.Object
-
- org.apache.felix.gogo.shell.Procedural
-
public class Procedural extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description (package private) static java.lang.String[]functions
-
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)private voidcheckInterrupt()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)private booleanisTrue(java.lang.Object result)booleannot(org.apache.felix.service.command.CommandSession session, org.apache.felix.service.command.Function condition)voiduntil(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)
-
_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
-
isTrue
private boolean isTrue(java.lang.Object result) throws java.lang.InterruptedException- Throws:
java.lang.InterruptedException
-
checkInterrupt
private void checkInterrupt() throws java.lang.InterruptedException- Throws:
java.lang.InterruptedException
-
-