Permalink
Browse files

Merge pull request #10 from kellerkeller/patch-4

Removed test code.
  • Loading branch information...
2 parents 3bdf901 + aeda0eb commit b686c6f69c5212a60e6cdaf0acc016a208ad87fc @Radvendii committed Mar 1, 2012
Showing with 2 additions and 13 deletions.
  1. +2 −13 StringHolder.java
View
@@ -2,7 +2,8 @@
import java.util.regex.Pattern;
/**
* <code>StringHolder</code> takes in strings from the input loop and
- * returns the proper file. Use the process method.
+ * returns the proper file. Use add to put a string in, and toFile to
+ * get the string to be turned into a file.
* @author Keller Scholl keller.scholl@gmail.com
* @since 29/3/12
*/
@@ -56,16 +57,4 @@ static private String combine(ArrayList<String> adder, String base){
base = base.concat(anImport.toString() + "\n");
return base;
}
- //Editin
- public static void main(String[] args){
- //Test code
- if (!(("(".matches("\\("))&&
- ("void add".matches("[a-zA-Z0-9]+ [a-zA-Z0-9]+"))&&
- ("(String entry)".matches("\\(.*\\)"))&&
- ("void add(String entry)".matches("[a-zA-Z0-9]+ [a-zA-Z0-9]+\\(.*\\)"))&&
- ("{ n\t]*\\.*\\')) methods.add(entry); else orders.add(entry);}".matches("\\{.+\\}"))&&
- (Pattern.compile(".*?[a-zA-Z0-9]* [a-zA-Z0-9]*\\(.*\\)[ \n\t]+\\{.*\\}", Pattern.DOTALL).matcher(
- "void add(String entry) { entry.matches(' *import .*;'); if (entry.matches(' *import .*;')) imports.add(entry); else if (entry.matches('.*?[a-zA-Z0-9]* [a-zA-Z0-9]*\\(.*\\)[ \n\t]*\\{.*\\}')) methods.add(entry); else orders.add(entry);}").matches())))
- System.out.println("Failure!");
- }
}

0 comments on commit b686c6f

Please sign in to comment.