@Retention(value=CLASS)
@Target(value=TYPE)
public @interface JavaScriptPrototype
String.
One can do it by making String subclass JavaScript String
and use String.prototype as a container for all String
methods.| Modifier and Type | Required Element and Description |
|---|---|
java.lang.String |
prototype
Expression that defines the way to construct prototype for this
class.
|
| Modifier and Type | Optional Element and Description |
|---|---|
java.lang.String |
container
Expression that identifies the function where all methods
should be added into.
|
public abstract java.lang.String prototype
public abstract java.lang.String container
prototype().Copyright © 2013 API Design. All Rights Reserved.