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