|
JET | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.utep.cs.jet.gui.tester.DefaultTester
edu.utep.cs.jet.gui.tester.Parser
public class Parser
This class separates the JML requirements from the whole code. The Parser object contains a file and a syntax document, and it uses it for the process of separation. It returns the JML requirements according to the method that the user selects.
| Field Summary |
|---|
| Constructor Summary | |
|---|---|
Parser(File file)
Constructor that receives the current file displayed in the editor, and a document. |
|
| Method Summary | |
|---|---|
static String |
createMethodSignature(Member meth)
Creates a method signature from a Member type. |
static String |
isInString(String word,
String separator)
Method that checks if the method signature generated from the Member attribute is a substring of a code's line . |
static String |
specification(Member meth)
This method is called whenever is necessary to separate the JML requirements from the source code. |
| Methods inherited from class edu.utep.cs.jet.gui.tester.DefaultTester |
|---|
addClassFileChangeListener, createTestCaseGenerationListener, createTestMenu, doTest, doTest, enableStatDialog, getExplorerView, getOptionPanel, getPopTest, getPopTestAll, getPopTestDeclared, getPopTestInherited, getView, loadFile, setDropTarget, setHideViewAction, setSourceCodeViewer |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Parser(File file)
| Method Detail |
|---|
public static String specification(Member meth)
throws IOException,
BadLocationException
meth -
IOException
BadLocationExceptionpublic static String createMethodSignature(Member meth)
public static String isInString(String word,
String separator)
|
JET | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||