Modifier and Type | Class and Description |
---|---|
static class |
Args.ArgsBuilder
A builder for
Args . |
Constructor and Description |
---|
Args() |
Modifier and Type | Method and Description |
---|---|
boolean |
allowThreadLocal()
Default is true.
|
static Args.ArgsBuilder |
builder() |
boolean |
displayBytecode() |
void |
enableVMThreadLocal(boolean allow)
When this is disabled, the Leola runtime will not spawn
a
VM instance per thread in which the runtime is invoked
on. |
boolean |
executeStatement() |
boolean |
generateBytecode() |
String |
getFileName() |
List<File> |
getIncludeDirectories() |
int |
getMaxStackSize() |
static String |
getOptions() |
static String |
getOptionsWithDescription() |
LeoObject |
getScriptArgs() |
int |
getStackSize() |
String |
getStatement() |
boolean |
isBarebones() |
boolean |
isDebugMode() |
boolean |
isSandboxed() |
static Args |
parse(String... args)
Parses the argument list
|
void |
setBarebones(boolean barebones) |
void |
setDebugMode(boolean isDebugMode) |
void |
setDisplayBytecode(boolean displayBytecode) |
void |
setExecuteStatement(boolean isExecuteStatement) |
void |
setFileName(String fileName) |
void |
setGenerateBytecode(boolean generateBytecode) |
void |
setIncludeDirectories(List<File> includeDirectories) |
void |
setMaxStackSize(int maxStackSize) |
void |
setSandboxed(boolean isSandboxed) |
void |
setScriptArgs(LeoObject scriptArgs) |
void |
setStackSize(int stackSize) |
void |
setStatement(String statement) |
public static String getOptions()
public static String getOptionsWithDescription()
public static Args.ArgsBuilder builder()
Args.ArgsBuilder
public static Args parse(String... args) throws LeolaRuntimeException
args
- LeolaRuntimeException
public String getFileName()
public boolean displayBytecode()
public boolean generateBytecode()
public int getStackSize()
public boolean isBarebones()
public boolean isDebugMode()
public boolean executeStatement()
public String getStatement()
public LeoObject getScriptArgs()
public boolean allowThreadLocal()
enableVMThreadLocal(boolean)
public boolean isSandboxed()
public void setSandboxed(boolean isSandboxed)
isSandboxed
- the isSandboxed to setpublic void setFileName(String fileName)
fileName
- the fileName to setpublic void setDisplayBytecode(boolean displayBytecode)
displayBytecode
- the displayBytecode to setpublic void setGenerateBytecode(boolean generateBytecode)
generateBytecode
- the generateBytecode to setpublic void setBarebones(boolean barebones)
barebones
- the barebones to setpublic void setExecuteStatement(boolean isExecuteStatement)
isExecuteStatement
- the isExecuteStatement to setpublic void setStatement(String statement)
statement
- the statement to setpublic void setScriptArgs(LeoObject scriptArgs)
scriptArgs
- the scriptArgs to setpublic void setStackSize(int stackSize)
stackSize
- the stackSize to setpublic int getMaxStackSize()
public void setMaxStackSize(int maxStackSize)
maxStackSize
- the maxStackSize to setpublic void setIncludeDirectories(List<File> includeDirectories)
includeDirectories
- the includeDirectories to setpublic void setDebugMode(boolean isDebugMode)
isDebugMode
- the isDebugMode to setpublic void enableVMThreadLocal(boolean allow)
VM
instance per thread in which the runtime is invoked
on. This property is enabled by default to allow for better
multi-threaded support.allow
- Copyright © 2010–2015. All rights reserved.