Created
February 21, 2016 17:37
-
-
Save ip-imamoto/9f171bf72feabe48dbea to your computer and use it in GitHub Desktop.
アノテーションとは
This file contains 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 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