Provides access to system related operations,
such as server's resources and configuration.
Classes
Configurable represents entities declared in server's configuration.
These entities form a tree which can be investigated and modified through
this class.
Envelope represents compiled script in server's cache.
Resource represents resources stored in zone's containers.
Resources may be obtained through anvil.system.rawImport().
Functions
Assumes data pointed by given parameter is an anvil script
and formats and outputs it accordingly.
If optional handler is given it may contain any number of predefined
callbacks, which should output representation of
element they reflect.
onWhitespace(line, column, image) - called on whitespace sequences
onComment(line, column, image) - called on comments
onString(line, column, image) - called on strings literals
onNumber(line, column, image) - called on number literals
onPattern(line, column, image) - called on pattern literals
onSymbol(line, column, image) - called on symbols
onDelimiter(line, column, image) - called on delimiter operator
onOperator(line, column, image) - called on operator
onOperatorKeyword(line, column, image) - called on operator keyword
onKeyword(line, column, image) - called on keyword
onDefault(line, column, image) - called on anything else
Handler may be:
- class instance, returning functions or method delegates
- scope of functions (module, namespace, class, interface)
- array of functions or delegates
Assumes data pointed by given parameter is an anvil template
and formats and outputs it accordingly.
If optional handler is given it may contain any number of predefined
callbacks, which should output representation of
element they reflect.
onCharacters(line, column, cdata) - called on character data
onHtmlComment(line, column, cdata) - called on HTML comment
onProcessingInstruction(line, column, cdata) - called on processing instruction
onTagStart(line, column, tagname) - called on start of tag
onTagEnd(line, column, hasEndSlash) - called on end of tag
onAttribute(line, column, attrName, attrValue) - called on tag attribute
Handler may be:
- class instance, returning functions or method delegates
- scope of functions (module, namespace, class, interface)
- array of functions or delegates
Returns the build id of Anvil software.
Returns the amount of free memory at JVM heap, in bytes.
Returns the full version of Anvil software.
Returns an array containing all the properties from
application configuration section.
Returns a named property from application configuration
section, or undefined if property does not exist.
Returns the root configuration.
Returns an array of system properties from underlying JVM.
Returns a system property from underlying JVM.
Returns the total size of memory allocated for JVM heap, in bytes.
Returns the version of Anvil software.
Imports resource pointed at given path 'as is'.
| Throws |
ImportError -
If import failed
|