|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectes.uned.compiler.code.FinalCodeFactory
public class FinalCodeFactory
Clase que genera el fichero con el código final a partir de una lista de cuartetos
Constructor Summary | |
---|---|
FinalCodeFactory()
Constructor for FinalCodeFactory. |
|
FinalCodeFactory(java.io.File file)
Constructor for FinalCodeFactory. |
|
FinalCodeFactory(java.io.File file,
ExecutionEnvironmentIF environment)
Constructor for FinalCodeFactory. |
Method Summary | |
---|---|
void |
create(java.util.List intermediateCode)
Creates the final code and serializes to the file. |
ExecutionEnvironmentIF |
getEnvironment()
Returns the environment. |
java.io.File |
getFile()
Returns the file. |
void |
setEnvironment(ExecutionEnvironmentIF environment)
Sets The environment. |
void |
setFile(java.io.File file)
Sets The file. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FinalCodeFactory()
public FinalCodeFactory(java.io.File file)
file
- The final code file.public FinalCodeFactory(java.io.File file, ExecutionEnvironmentIF environment)
file
- The final code file.environment
- The target environment.Method Detail |
---|
public void create(java.util.List intermediateCode) throws java.io.IOException
create
in interface FinalCodeFactoryIF
intermediateCode
- The intermediateCode.
java.io.IOException
- Thrown when an IO Error occurs.public ExecutionEnvironmentIF getEnvironment()
getEnvironment
in interface FinalCodeFactoryIF
public java.io.File getFile()
getFile
in interface FinalCodeFactoryIF
public void setEnvironment(ExecutionEnvironmentIF environment)
setEnvironment
in interface FinalCodeFactoryIF
environment
- The environment to set.public void setFile(java.io.File file)
setFile
in interface FinalCodeFactoryIF
file
- The file to set.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |