Package org.ejml
Class AutocodeConcurrentApp
java.lang.Object
org.ejml.AutocodeConcurrentApp
public class AutocodeConcurrentApp extends Object
Generates concurrent implementations of a class using hints provided in comments throughout the code.
- //CONCURRENT_CLASS_NAME TEXT override the default class name. Can be anywhere.
- //CONCURRENT_INLINE TEXT will remove the comment in insert the text
- //CONCURRENT_ABOVE TEXT will replace the line above with the text
- //CONCURRENT_BELOW TEXT will replace the line below with the text
- //CONCURRENT_REMOVE_BELOW will remove the line below
- //CONCURRENT_REMOVE_ABOVE will remove the line above
- //CONCURRENT_REMOVE_LINE will remove the line it is placed on
- //CONCURRENT_MACRO NAME TEXT creates a macro that can be used instead of text
- //CONCURRENT_OMIT_BEGIN It will omit everything until it finds an OMIT_END
- //CONCURRENT_OMIT_END It will stop omitting when this is encountered.
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceAutocodeConcurrentApp.FindProjectRoot -
Constructor Summary
Constructors Constructor Description AutocodeConcurrentApp() -
Method Summary
Modifier and Type Method Description static voidconvertDir(File directory, String include, String exclude)static voidconvertFile(File original)Converts the file from single thread into concurrent implementationstatic voidmain(String[] args)static List<String>readLines(File file, Charset encoding)
-
Constructor Details
-
AutocodeConcurrentApp
public AutocodeConcurrentApp()
-
-
Method Details
-
convertFile
Converts the file from single thread into concurrent implementation- Throws:
IOException
-
convertDir
-
readLines
- Throws:
IOException
-
main
- Throws:
IOException
-