lucee.Componentcommandbox.system.util.REPLParser
Copyright Since 2014 CommandBox by Ortus Solutions, Corp www.coldbox.org | www.ortussolutions.com I contain helpful methods for REPL parsing.
Property Summary | ||||
---|---|---|---|---|
type | property | default | serializable | required |
any
|
JSONService
|
true
|
false
|
|
any
|
formatterUtil
|
true
|
false
|
Constructor Summary | |
---|---|
init()
Constructor. |
Method Summary | |
---|---|
any
|
addCommandLine([string command])
Adds an additional line for the command we are parsing. |
any
|
addCommandLines([string command])
Adds one or more lines at once. |
any
|
evaluateCommand(any executor, any directory)
Returns serialized evaluation of command if possible. |
any
|
getCommandAsString()
Returns all commands lines as a single string. |
any
|
getCommandLines()
Returns an array with each line of the command seperated. |
any
|
getCommandPreparedForEvaluation()
Returns command as string with certain charaters removed that prevent evaluation. |
string
|
getFormatterUtil()
|
string
|
getJSONService()
|
any
|
isCommandComplete()
Returns true if the command is complete and is ready to be executed. |
any
|
serializeOutput([any result])
Serializes output. |
any
|
setFormatterUtil(any formatterUtil)
|
any
|
setJSONService(any JSONService)
|
any
|
startCommand()
Clears existing command lines and signal we are starting a new command. |
any
|
stripComments([string command])
Removes comments from command. |
Methods inherited from class lucee.Component |
---|
None |
Constructor Detail |
---|
Constructor
Property Detail |
---|
access
- publicrequired
- falsereturntype
- anyinject
- JSONServiceserializable
- trueaccess
- publicrequired
- falsereturntype
- anyinject
- Formatterserializable
- trueMethod Detail |
---|
Adds an additional line for the command we are parsing.
command
Adds one or more lines at once
command
Returns serialized evaluation of command if possible.
executor
- the executor context to attempt evaluationdirectory
Returns all commands lines as a single string.
Returns an array with each line of the command seperated
Returns command as string with certain charaters removed that prevent evaluation.
Returns true if the command is complete and is ready to be executed.
Serializes output
result
formatterUtil
JSONService
Clears existing command lines and signal we are starting a new command.
Removes comments from command
command