@Plugin(name="ScriptFile", category="Core", printObject=true) public class ScriptFile extends AbstractScript
DEFAULT_LANGUAGE, LOGGER
Constructor and Description |
---|
ScriptFile(String name,
Path filePath,
String language,
boolean isWatched,
String scriptText) |
Modifier and Type | Method and Description |
---|---|
static ScriptFile |
createScript(String name,
String language,
String filePathOrUri,
Boolean isWatched,
Charset charset) |
Path |
getPath() |
boolean |
isWatched() |
String |
toString() |
getLanguage, getName, getScriptText
public Path getPath()
public boolean isWatched()
@PluginFactory public static ScriptFile createScript(@PluginAttribute(value="name") String name, @PluginAttribute(value="language") String language, @PluginAttribute(value="path") String filePathOrUri, @PluginAttribute(value="isWatched") Boolean isWatched, @PluginAttribute(value="charset") Charset charset)
Copyright © 1999-2023 The Apache Software Foundation. All Rights Reserved.
Apache Logging, Apache Log4j, Log4j, Apache, the Apache feather logo, the Apache Logging project logo, and the Apache Log4j logo are trademarks of The Apache Software Foundation.