This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.io.File; | |
public class Main { | |
/** | |
* @param args | |
*/ | |
public static void main(String[] args) { | |
// TODO Auto-generated method stub | |
/*解析対象ファイル*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.io.BufferedReader; | |
import java.io.File; | |
import java.io.FileNotFoundException; | |
import java.io.FileReader; | |
import java.io.IOException; | |
/** | |
* fileを審査する | |
* @author becurt | |
*/ | |
public class FileAnalyze { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.regex.Matcher; | |
import java.util.regex.Pattern; | |
/** | |
* 行の性質をパターンで分析する | |
* ただし、ブロックコメントの途中行については無視しここではハンドリングしない。 | |
* 一行にブロックコメントが複数ある場合については対応しない。そんなの馬鹿げてる。 | |
* @author becurt | |
* | |
*/ | |
public class LinePattern implements AutoCloseable{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package example; | |
class Control { | |
//重なった四角形の頂点x計算 | |
static int CalcOverlapTopX(Model m1, Model m2){ | |
int x = Math.max(m1.getX(),m2.getX()); | |
return x; | |
} | |
//重なった四角形の頂点y計算 |