Skip to content

Instantly share code, notes, and snippets.

@ip-imamoto
Created February 21, 2016 17:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ip-imamoto/9f171bf72feabe48dbea to your computer and use it in GitHub Desktop.
Save ip-imamoto/9f171bf72feabe48dbea to your computer and use it in GitHub Desktop.
アノテーションとは
package myannotation;
public class MyAnnotationTest {
@MyAnnotation //←こんなのとか
public String hoge;
@MyAnnotation(value = "コンストラクタ!!!") //←こんなのとか
public MyAnnotationTest(String hoge) {
this.hoge = hoge;
}
@MyAnnotation("メソッド!!") //←こんなのとか
public String getHoge() {
return hoge;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment