public abstract class ScriptParameter extends Object
Constructor and Description |
---|
ScriptParameter()
Creates a new empty code
|
ScriptParameter(ScriptParameter other)
Copies the code
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
String |
getCode() |
String |
getCode(Path workDirectory)
Gets the code.
|
abstract String |
getExtension()
Returns the default extension for this script
|
OptionalPathParameter |
getExternalScriptFile() |
abstract org.scijava.script.ScriptLanguage |
getLanguage()
The language info.
|
abstract String |
getLanguageName()
Returns the human-readable name of the language
|
abstract String |
getMimeType()
Returns the MIME type of this script
|
int |
hashCode() |
boolean |
isCollapsed() |
void |
makeExternalScriptFileRelative(Path workDirectory)
Converts the external script file reference into a relative path
|
void |
setCode(String code) |
void |
setCollapsed(boolean collapsed) |
void |
setExternalScriptFile(OptionalPathParameter externalScriptFile) |
public ScriptParameter()
public ScriptParameter(ScriptParameter other)
other
- the originalpublic String getCode()
public void setCode(String code)
public String getCode(Path workDirectory)
workDirectory
- the work directorypublic void makeExternalScriptFileRelative(Path workDirectory)
workDirectory
- the current work directorypublic abstract String getMimeType()
public abstract String getLanguageName()
public abstract String getExtension()
public boolean isCollapsed()
public void setCollapsed(boolean collapsed)
public OptionalPathParameter getExternalScriptFile()
public void setExternalScriptFile(OptionalPathParameter externalScriptFile)
public abstract org.scijava.script.ScriptLanguage getLanguage()
Copyright © 2020–2025 Leibniz Institute for Natural Product Research and Infection Biology - Hans Knöll Institute (HKI). All rights reserved.