Package org.apache.felix.gogo.runtime
Class Closure
java.lang.Object
org.apache.felix.gogo.runtime.Closure
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Stringprivate Tokenprivate Tokenprivate static final ThreadLocal<String>static final Stringprivate final Closurestatic final Stringprivate final Parser.Programprivate final Objectprivate final CommandSessionImplprivate final CharSequence -
Constructor Summary
ConstructorsConstructorDescriptionClosure(CommandSessionImpl session, Closure parent, CharSequence source) Closure(CommandSessionImpl session, Closure parent, Parser.Program program) -
Method Summary
Modifier and TypeMethodDescriptionprivate Objectarray(Parser.Array array) private Objectassignment(String name, Object value) private boolean(package private) static Objectprivate Objectexecute(Parser.Executable executable) execute(CommandSession x, List<Object> values) Execute this function and return the result.execute(CommandSession x, List<Object> values, Channel capturingOutput) private ObjectexecuteCmd(String scmd, List<Object> values) private ObjectexecuteMethod(Object cmd, List<Object> values) executeStatement(Parser.Statement statement) private Objectprotected booleansession()private ExceptiontoString()private void
-
Field Details
-
LOCATION
- See Also:
-
PIPE_EXCEPTION
- See Also:
-
DEFAULT_LOCK
- See Also:
-
location
-
session
-
parent
-
source
-
program
-
script
-
errTok
-
errTok2
-
parms
-
parmv
-
-
Constructor Details
-
Closure
- Throws:
Exception
-
Closure
-
-
Method Details
-
session
-
setLocation
-
execute
Description copied from interface:FunctionExecute this function and return the result. -
execute
public Object execute(CommandSession x, List<Object> values, Channel capturingOutput) throws Exception - Throws:
Exception
-
execute
- Throws:
Exception
-
eval
-
eval
-
eval
- Throws:
Exception
-
execute
- Throws:
Exception
-
executeStatement
- Throws:
Exception
-
trace2
-
bareword
-
executeCmd
- Throws:
Exception
-
executeMethod
- Throws:
Exception
-
invoke
- Throws:
Exception
-
assignment
-
expr
-
array
- Throws:
Exception
-
get
-
put
-
currentDir
- Specified by:
currentDirin interfaceEvaluate
-
classLoader
- Specified by:
classLoaderin interfaceEvaluate
-
isSet
-
toString
-