public class ScriptContext
extends java.lang.Object
Constructor and Description |
---|
ScriptContext(java.io.File scriptFile)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getCSS(java.lang.String path)
Return the absolute path of a file defined relative to the script file.
|
java.io.File |
getPath(java.lang.String path)
Return the absolute path of a file defined relative to the script file.
|
java.io.File |
getScriptFile()
Return the script file.
|
public ScriptContext(java.io.File scriptFile)
scriptFile
- the script filepublic java.io.File getScriptFile()
public java.io.File getPath(java.lang.String path)
path
- the relative pathpublic java.lang.String getCSS(java.lang.String path)
path
- the relative pathCopyright © 2021, 2022 Herve Girod. All Rights Reserved. Documentation and source under the BSD 3-Clause licence