Compiler.CompilerListener| Modifier and Type | Field and Description |
|---|---|
protected long |
pluginID
Identification number of this plug-in assigned by emuStudio
|
protected int |
programStart
Program start address (memory location)
|
| Constructor and Description |
|---|
AbstractCompiler(Long pluginID)
Public constructor initializes compilerListeners list and event object for
event passing.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
addCompilerListener(Compiler.CompilerListener listener)
Adds a listener onto compilerListeners list
|
int |
getProgramStartAddress()
Returns program start address (memory location) after the compilation
process.
|
String |
getTitle()
Get run-time title of this plug-in.
|
void |
initialize(SettingsManager settings)
This method semi-initializes the simple compiler.
|
protected void |
notifyCompileFinish(int errorCode)
This method notifies all compilerListeners that the compiler finished
the compile process right now.
|
protected void |
notifyCompileStart()
This method notifies all compilerListeners that the compiler is starting
the compile process.
|
void |
notifyError(String mes)
Notifies the error message.
|
void |
notifyInfo(String mes)
Notifies information message
|
void |
notifyOnMessage(Message message)
This method notifies all compilerListeners that the compiler wants to print
something out (a message).
|
void |
notifyWarning(String mes)
Fires warning message
|
boolean |
removeCompilerListener(Compiler.CompilerListener listener)
Removes the listener from compilerListeners list
|
void |
reset()
Does nothing.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcompile, compile, getLexer, getSourceSuffixListdestroy, getVersion, isShowSettingsSupported, showSettingsprotected int programStart
protected final long pluginID
public AbstractCompiler(Long pluginID)
pluginID - ID of the plug-in assigned by emuStudiopublic void initialize(SettingsManager settings) throws PluginInitializationException
initialize in interface Pluginsettings - settings manipulation objectPluginInitializationException - never in the default implementationpublic String getTitle()
Pluginpublic int getProgramStartAddress()
getProgramStartAddress in interface Compilerpublic boolean addCompilerListener(Compiler.CompilerListener listener)
addCompilerListener in interface Compilerlistener - listener objectpublic boolean removeCompilerListener(Compiler.CompilerListener listener)
removeCompilerListener in interface Compilerlistener - listener objectprotected void notifyCompileStart()
protected void notifyCompileFinish(int errorCode)
errorCode - compiler-specific error codepublic void notifyOnMessage(Message message)
message - The messagepublic void notifyError(String mes)
mes - text of the messagepublic void notifyInfo(String mes)
mes - text of the messagepublic void notifyWarning(String mes)
mes - text of the messageCopyright © 2017. All rights reserved.