Annotation Type MethodName


@Target(METHOD) @Retention(RUNTIME) @Documented public @interface MethodName
Allows to specify the name of a method as represented in JavaScript - serves in cases where the name of a method can't be simply converted and needs to be defined explicitly or in cases where you want to name the method in Java differently than in JavaScript.

 @JavaScript("helloworld")
 @Dependency(sources = "helloworld.js")
 public interface HelloWorld {

     @MethodName("aloha")
     String getHello();

 }
 
Author:
Lukas Fryc
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
     
  • Element Details

    • value

      String value
      Default:
      ""