public class ScriptFile
extends java.lang.Object
| Constructor and Description |
|---|
ScriptFile(ITweaker tweaker,
IScriptIterator script,
boolean isSyntaxCommand) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(IPreprocessor preprocessor)
Delegates to the preprocessor List
|
boolean |
addAll(java.util.Collection<? extends IPreprocessor> c) |
boolean |
areBracketErrorsIgnored()
Change whether you want to have bracket errors show up for the specified file
|
java.util.List<IPreprocessor> |
getAffectingPreprocessors() |
java.lang.String |
getEffectiveName()
Gets the effective name that has every info in it that it can, like zip files don't use only the zip file name
|
java.lang.String |
getGroupName()
Group name is with relative path to the file or ZIP file name
|
java.lang.String |
getLoaderName()
Deprecated.
|
java.lang.String[] |
getLoaderNames() |
java.lang.String |
getName()
Actual name of the zs file
|
int |
getPriority()
Change the priority
|
IScriptIterator |
getScript() |
ITweaker |
getTweaker()
Gets the tweaker which handles the loading of the current file
|
boolean |
isCompileBlocked() |
boolean |
isDebugEnabled()
Change whether you want to enable debug mode for the specified file
|
boolean |
isExecutionBlocked()
Getters and setters which alter the loading of the code
|
boolean |
isParsingBlocked() |
boolean |
isSyntaxCommand()
Whether it is a by syntax command.
|
java.lang.String |
loaderNamesConcatCapitalized()
Compliant with the capitalization used in the name class generator
|
java.io.InputStream |
open()
Gives InputStream of the script,
must be closed again or might cause problems down the line
|
void |
setCompileBlocked(boolean compileBlocked) |
void |
setDebugEnabled(boolean debugEnabled) |
void |
setExecutionBlocked(boolean executionBlocked) |
void |
setIgnoreBracketErrors(boolean ignoreBracketErrors) |
void |
setLoaderName(java.lang.String loaderName)
Deprecated.
|
void |
setLoaderNames(java.lang.String... loaderNames)
Change the loader names to change whether it should be loaded or not
|
void |
setNetworkSide(NetworkSide networkSide)
Registers the file to be only loaded on this network side
|
void |
setParsingBlocked(boolean parsingBlocked) |
void |
setPriority(int priority) |
boolean |
shouldBeLoadedOn(NetworkSide proposedSide)
Returns whether it should be loaded on the side it was asked to be loaded on
|
java.lang.String |
toString() |
public ScriptFile(ITweaker tweaker, IScriptIterator script, boolean isSyntaxCommand)
public IScriptIterator getScript()
public java.lang.String getGroupName()
public java.lang.String getName()
public java.lang.String getEffectiveName()
public java.io.InputStream open()
throws java.io.IOException
java.io.IOExceptionpublic boolean add(IPreprocessor preprocessor)
public boolean addAll(java.util.Collection<? extends IPreprocessor> c)
public java.util.List<IPreprocessor> getAffectingPreprocessors()
public int getPriority()
public void setPriority(int priority)
public java.lang.String[] getLoaderNames()
public void setLoaderNames(java.lang.String... loaderNames)
@Deprecated public java.lang.String getLoaderName()
@Deprecated public void setLoaderName(java.lang.String loaderName)
public ITweaker getTweaker()
public boolean isExecutionBlocked()
public void setExecutionBlocked(boolean executionBlocked)
public boolean isParsingBlocked()
public void setParsingBlocked(boolean parsingBlocked)
public boolean isCompileBlocked()
public void setCompileBlocked(boolean compileBlocked)
public boolean isSyntaxCommand()
public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String loaderNamesConcatCapitalized()
public boolean areBracketErrorsIgnored()
public void setIgnoreBracketErrors(boolean ignoreBracketErrors)
public boolean isDebugEnabled()
public void setDebugEnabled(boolean debugEnabled)
public void setNetworkSide(NetworkSide networkSide)
public boolean shouldBeLoadedOn(NetworkSide proposedSide)