代码搜索:Annotation
找到约 6,069 项符合「Annotation」的源代码
代码结果 6,069
www.eeworm.com/read/419922/10829068
java myannotation.java
package com.langsin.annotation;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
@Retention(RetentionPolicy.RUNTIME)
public @interface MyAnnotation
{
Stri
www.eeworm.com/read/419922/10829069
java subdeprecatedtest.java
package com.langsin.annotation;
public class SubDeprecatedTest extends DeprecatedTest
{
@Override
public void doSomething()
{
System.out.println("do something in sub class");
}
pub
www.eeworm.com/read/419922/10829072
java deprecatedtest.java
package com.langsin.annotation;
public class DeprecatedTest
{
@Deprecated
public void doSomething()
{
System.out.println("do something");
}
public static void main(String[] args)
www.eeworm.com/read/419922/10829076
java mytargettest.java
package com.langsin.annotation;
public class MyTargetTest
{
@MyTarget("xyz")
public void doSomething()
{
System.out.println("hello world");
}
}
www.eeworm.com/read/419922/10829078
java annotationusage.java
package com.langsin.annotation;
public class AnnotationUsage
{
public void method()
{
System.out.println("usage of annotation");
}
public static void main(String[] args)
{
Anno
www.eeworm.com/read/419922/10829080
java mytarget.java
package com.langsin.annotation;
import java.lang.annotation.*;
public @interface MyTarget
{
String value();
}
www.eeworm.com/read/419922/10829081
java overridetest.java
package com.langsin.annotation;
public class OverrideTest
{
@Override
public String toString()
{
return "This is override";
}
public static void main(String[] args)
{
OverrideT
www.eeworm.com/read/419922/10829084
java documentedtest.java
package com.langsin.annotation;
public class DocumentedTest
{
/**
* This is the comments that I have added
*/
@DocumentedAnnotation(hello = "welcome")
public void method()
{
Syste
www.eeworm.com/read/419922/10829086
java mytest.java
package com.langsin.annotation;
@MyAnnotation(hello = "beijing", world = "shanghai")
public class MyTest
{
@MyAnnotation(hello = "beijing", world = "shanghai")
@Deprecated
@SuppressWarnings