Created
October 9, 2012 16:39
-
-
Save skRyo/3859937 to your computer and use it in GitHub Desktop.
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
public class StepCount { | |
// 全ライン数 | |
private static int AllStep; | |
// 実コードライン数 | |
private static int CodeStep; | |
// コメントライン数 | |
private static int CommentStep; | |
// 空白ライン数 | |
private static int EmptyStep; | |
public StepCount() { | |
this.AllStep = 0; | |
this.CodeStep = 0; | |
this.CommentStep = 0; | |
this.EmptyStep = 0; | |
} | |
// 全ライン数 | |
public static int getAllStep() { | |
return AllStep; | |
} | |
public void countupAllStep() { | |
AllStep++; | |
this.setAllStep(AllStep); | |
} | |
public void setAllStep(int allStep) { | |
AllStep = allStep; | |
} | |
// 実コードライン数 | |
public static int getCodeStep() { | |
return CodeStep; | |
} | |
public void countupCodeStep() { | |
CodeStep++; | |
this.setCodeStep(CodeStep); | |
} | |
public void setCodeStep(int codeStep) { | |
CodeStep = codeStep; | |
} | |
// コメントライン数 | |
public static int getCommentStep() { | |
return CommentStep; | |
} | |
public void countupCommentStep() { | |
CommentStep++; | |
this.setCommentStep(CommentStep); | |
} | |
public void setCommentStep(int commentStep) { | |
CommentStep = commentStep; | |
} | |
// 空白ライン数 | |
public static int getEmptyStep() { | |
return EmptyStep; | |
} | |
public void countupEmptyStep() { | |
EmptyStep++; | |
this.setEmptyStep(EmptyStep); | |
} | |
public void setEmptyStep(int emptyStep) { | |
EmptyStep = emptyStep; | |
} | |
} |
コメントのパターン訳がめんどくさいよね
//コレはコメント
これは//コメントじゃない。
/これはこめんと行だけど/
/これは
こめんと行おだけど/
これはこめんと行じゃない/んですよね/
/これもコメント行じゃ/ないですね。
/このばあいは/どうしましょうかね/コメント行じゃないですね/
/この場合は/どうしましょうかね/コメント行じゃないですね。/
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
コメントのパターン訳がめんどくさいよね
//コレはコメント
これは//コメントじゃない。
/これはこめんと行だけど/
/これは
こめんと行おだけど/
これはこめんと行じゃない/んですよね/
/これもコメント行じゃ/ないですね。