diff --git a/annotations/src/main/java/com/google/j2objc/annotations/ObjectiveCTypeName.java b/annotations/src/main/java/com/google/j2objc/annotations/ObjectiveCTypeName.java new file mode 100644 index 0000000000..a9b1a1b813 --- /dev/null +++ b/annotations/src/main/java/com/google/j2objc/annotations/ObjectiveCTypeName.java @@ -0,0 +1,21 @@ +package com.google.j2objc.annotations; + +import java.lang.annotation.Documented; +import java.lang.annotation.ElementType; +import java.lang.annotation.Retention; +import java.lang.annotation.RetentionPolicy; +import java.lang.annotation.Target; + +/** Annotation that specifies what the Objective-C class or protocol should be when translated. */ +@Documented +@Target({ElementType.TYPE}) +@Retention(RetentionPolicy.CLASS) +public @interface ObjectiveCTypeName { + + /** + * The Objective-C name to use for this type. + * + * @return the Objective-C name. + */ + String value(); +}