Skip to content

Instantly share code, notes, and snippets.

@skRyo
Created October 9, 2012 16:39
Show Gist options
  • Save skRyo/3859937 to your computer and use it in GitHub Desktop.
Save skRyo/3859937 to your computer and use it in GitHub Desktop.
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;
}
}
@becurt
Copy link

becurt commented Oct 10, 2012

コメントのパターン訳がめんどくさいよね
//コレはコメント
これは//コメントじゃない。
/これはこめんと行だけど/

/これは
こめんと行おだけど
/

これはこめんと行じゃない/んですよね/
/これもコメント行じゃ/ないですね。

@becurt
Copy link

becurt commented Oct 10, 2012

コメントのパターン訳がめんどくさいよね
//コレはコメント
これは//コメントじゃない。
/これはこめんと行だけど/

/これは
こめんと行おだけど
/

これはこめんと行じゃない/んですよね/
/これもコメント行じゃ/ないですね。

@becurt
Copy link

becurt commented Oct 10, 2012

/このばあいは/どうしましょうかね/コメント行じゃないですね/

@becurt
Copy link

becurt commented Oct 10, 2012

/この場合は/どうしましょうかね/コメント行じゃないですね。/

@becurt
Copy link

becurt commented Oct 10, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment