Package org.apache.felix.gogo.runtime
Class Closure
java.lang.Object
org.apache.felix.gogo.runtime.Closure
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionClosure
(CommandSessionImpl session, Closure parent, CharSequence source) Closure
(CommandSessionImpl session, Closure parent, Parser.Program program) -
Method Summary
Modifier and TypeMethodDescriptionexecute
(Parser.Executable executable) execute
(CommandSession x, List<Object> values) Execute this function and return the result.execute
(CommandSession x, List<Object> values, Channel capturingOutput) executeStatement
(Parser.Statement statement) protected boolean
session()
toString()
-
Field Details
-
LOCATION
- See Also:
-
PIPE_EXCEPTION
- See Also:
-
-
Constructor Details
-
Closure
- Throws:
Exception
-
Closure
-
-
Method Details
-
session
-
execute
Description copied from interface:Function
Execute this function and return the result. -
execute
public Object execute(CommandSession x, List<Object> values, Channel capturingOutput) throws Exception - Throws:
Exception
-
eval
-
eval
- Throws:
Exception
-
execute
- Throws:
Exception
-
executeStatement
- Throws:
Exception
-
expr
-
get
-
put
-
currentDir
- Specified by:
currentDir
in interfaceEvaluate
-
classLoader
- Specified by:
classLoader
in interfaceEvaluate
-
isSet
-
toString
-