| java.lang.Object de.uka.ilkd.key.util.make.GenericParser
GenericParser | public class GenericParser (Code) | | |
Inner Class :class Template | |
Method Summary | |
public static String | createMakefileEntry(Template t, String path) | public static String[] | dependencies(Template t, String path) | public static String | getClassName(String file) | public static String | getPath(String file) | public static void | main(String[] args) | public static String | makeAction(Template t, String path) | public static String | makeRule(String pattern, String[] dep) | public static String | parse(String parseStr) | public static String | replace(String str, int pos, int len, String replaceStr) | public static String | replace(String str, Template tpl) | public static void | replaceAll(StringBuffer sb, String search, String repl) |
compileListFileName | public static String compileListFileName(Code) | | The generated makefile will write the names of generated
java files into this file
|
dep | public static String[][] dep(Code) | | dependencies as the .gjava-file (same position as above)
if you write % the % will be replaced with the nr-th
template (nr<=9) e.g. IteratorOf%1 becomes IteratorOfString if it is
a dependency of SetOfString
|
genClass | public static String[][] genClass(Code) | | the existing java classes with its dividers.
The value of genClass[i].length has to be equal to
the amount of templates.
|
genericPath | public static String genericPath(Code) | | .gjava directory
|
createMakefileEntry | public static String createMakefileEntry(Template t, String path)(Code) | | creates a single Makefile entry
|
dependencies | public static String[] dependencies(Template t, String path)(Code) | | create dependencies
|
getClassName | public static String getClassName(String file)(Code) | | get name of class (filename without suffix)
|
main | public static void main(String[] args)(Code) | | run parser and create makestr
|
replace | public static String replace(String str, int pos, int len, String replaceStr)(Code) | | replace char at position pos with pos+len in str with replaceStr
Parameters: str - String to be edited Parameters: pos - int the position Parameters: len - int the len of the substring being replaced Parameters: replaceStr - the String we put at pos in str |
replace | public static String replace(String str, Template tpl)(Code) | | Parameters: String - str the String we want to replace %nr Parameters: Template - tpl the corresponding template str replace took place |
|
|