Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
アノテーションとは
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
You can’t perform that action at this time.