|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjml2b.util.Profiler
jml2b.structure.java.ParsedItem
This class provides features to store informations that allow to locate a parsed items. Those informations are the file where the item is located, with the line, the column and its length.
Constructor Summary | |
ParsedItem()
Constructs a default item. |
|
ParsedItem(JmlFile jf)
Constructs an item from a JML file. |
|
ParsedItem(JmlFile jf,
antlr.collections.AST tree)
Constructs an item from a JML file and an AST node. |
|
ParsedItem(ParsedItem b)
Constructs an item from another. |
Method Summary | |
void |
change(ParsedItem pi)
|
void |
change(java.util.Vector pi)
|
int |
getColumn()
Returns the column. |
JmlFile |
getJmlFile()
Returns the file. |
int |
getLine()
Returns the line. |
void |
save(JpoOutputStream s)
Saves the item in a .jpo file |
void |
setBox(ParsedItem b)
Deines an item from another. |
Methods inherited from class jml2b.util.Profiler |
runGC |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ParsedItem()
public ParsedItem(JmlFile jf)
jf
- The filepublic ParsedItem(JmlFile jf, antlr.collections.AST tree)
AST
node.
jf
- The filetree
- The AST
node from which the line, the column and
the length are extractedpublic ParsedItem(ParsedItem b)
b
- The item where informations are collectedMethod Detail |
public final void setBox(ParsedItem b)
b
- The item where informations are collectedpublic final void save(JpoOutputStream s) throws java.io.IOException
s
- output stream for the jpo file
java.io.IOException
public final int getLine()
line
public final int getColumn()
column
public final JmlFile getJmlFile()
jmlFile
public final void change(ParsedItem pi)
public final void change(java.util.Vector pi)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |