| Modifier and Type | Field | Description |
|---|---|---|
static String |
LOCATION |
|
static String |
PIPE_EXCEPTION |
| Constructor | Description |
|---|---|
Closure(CommandSessionImpl session,
Closure parent,
CharSequence source) |
|
Closure(CommandSessionImpl session,
Closure parent,
Parser.Program program) |
| Modifier and Type | Method | Description |
|---|---|---|
ClassLoader |
classLoader() |
|
Path |
currentDir() |
|
Object |
eval(Token t) |
|
Object |
eval(Token t,
boolean convertNumeric) |
|
Object |
execute(Parser.Executable executable) |
|
Object |
execute(CommandSession x,
List<Object> values) |
Execute this function and return the result.
|
Object |
execute(CommandSession x,
List<Object> values,
Channel capturingOutput) |
|
Object |
executeStatement(Parser.Statement statement) |
|
Object |
expr(Token expr) |
|
Object |
get(String name) |
|
protected boolean |
isSet(String name,
boolean def) |
|
Object |
put(String key,
Object value) |
|
CommandSessionImpl |
session() |
|
String |
toString() |
public static final String LOCATION
public static final String PIPE_EXCEPTION
public Closure(CommandSessionImpl session, Closure parent, CharSequence source) throws Exception
Exceptionpublic Closure(CommandSessionImpl session, Closure parent, Parser.Program program)
public CommandSessionImpl session()
public Object execute(CommandSession x, List<Object> values) throws Exception
Functionpublic Object execute(CommandSession x, List<Object> values, Channel capturingOutput) throws Exception
Exceptionpublic Object execute(Parser.Executable executable) throws Exception
Exceptionpublic Object executeStatement(Parser.Statement statement) throws Exception
Exceptionpublic Path currentDir()
currentDir in interface Evaluatepublic ClassLoader classLoader()
classLoader in interface Evaluateprotected boolean isSet(String name, boolean def)
Copyright © 2006–2019 The Apache Software Foundation. All rights reserved.