|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecthicosim.components.backend.io.Sourcefile
public class Sourcefile
Class for reading in and writing to a sourcefile.
Constructor Summary | |
---|---|
Sourcefile(Engine e)
|
Method Summary | |
---|---|
int |
getAddressAtLine(int linenum)
This method returns the address at a line. |
int |
getLineNumberAtAddress(int address)
This method returns the linenumber at a address. |
java.lang.String |
getLines()
|
int |
getNumberOfLines()
|
java.lang.String |
getPathOfSourcefile()
|
void |
putLine(int linenumber,
java.lang.String line)
This method is used to put a line in a Map to get the line by the linenumber. |
void |
read(java.lang.String PATH)
This method reads in a sourcefile(only .asm) and stores the lines in a stringbuffer; |
void |
reset()
|
void |
write(java.lang.String PATH,
java.lang.String text)
This method writes to a sourcefile(only .asm). |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Sourcefile(Engine e)
Method Detail |
---|
public void reset()
public void read(java.lang.String PATH) throws java.lang.Exception
java.lang.Exception
public void write(java.lang.String PATH, java.lang.String text) throws java.lang.Exception
java.lang.Exception
public java.lang.String getLines()
public int getNumberOfLines()
public java.lang.String getPathOfSourcefile()
public void putLine(int linenumber, java.lang.String line)
linenumber
- - intline
- - Stringpublic int getAddressAtLine(int linenum)
linenum
-
public int getLineNumberAtAddress(int address)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |