Top Description Methods
com.google.j2objc.annotations

public @Interface ObjectiveCName

extends Annotation
Annotations
@Documented
@Target:TYPE, METHOD, CONSTRUCTOR, PACKAGE
@Retention:CLASS
Imports
java.lang.annotation.Documented, .ElementType, .Retention, .RetentionPolicy, .Target

Annotation that specifies what the Objective-C class, protocol, method, constructor or package declaration should be when translated.

For packages add the annotation to the package declaration in a package-info.java file to specify the desired package prefix. Alternatively, package prefixes may be specified using the --prefix or --prefixes flags when invoking j2objc.

For classes specify the desired Objective-C class name for the translated type.

For methods specify the desired Objective-C selector for the translated method:

@ObjectiveCName("setDateWithYear:month:day:")
public void setDate(int year, int month, int day);
Author
Tom Ball

Method Summary

Modifier and TypeMethod and Description
public String

Returns:

the Objective-C name.
value
()

The Objective-C name to use for this element.

Inherited from java.lang.annotation.Annotation:
annotationTypeequalshashCodetoString

Method Detail

valueback to summary
public String value()

The Objective-C name to use for this element.

Returns:String

the Objective-C name.