public interface JavaToJavaScriptMap
Modifier and Type | Field and Description |
---|---|
static JavaToJavaScriptMap |
EMPTY |
Modifier and Type | Method and Description |
---|---|
JsName |
nameForField(JField field)
Return the JavaScript name corresponding to a Java field.
|
JsName |
nameForMethod(JMethod method)
Return the JavaScript name corresponding to a Java method.
|
JsName |
nameForType(JClassType type)
Return the JavaScript name corresponding to a Java type.
|
JField |
nameToField(JsName name)
If
name is the name of a
var |
JMethod |
nameToMethod(JsName name)
If
name is the name of a function that corresponds to a Java
method, then return that method. |
JClassType |
nameToType(JsName name)
If
name is the name of a constructor function corresponding to
a Java type, then return that type. |
JClassType |
typeForStatement(JsStatement stat)
If
stat is used to set up the definition of some class, return
that class. |
JMethod |
vtableInitToMethod(JsStatement stat)
If
stat is used to set up a vtable entry for a method, then
return that method. |
static final JavaToJavaScriptMap EMPTY
JsName nameForField(JField field)
JsName nameForMethod(JMethod method)
JsName nameForType(JClassType type)
JField nameToField(JsName name)
name
is the name of a
var that corresponds to a Java
static field, then return that field. Otherwise, return null.
JMethod nameToMethod(JsName name)
name
is the name of a function that corresponds to a Java
method, then return that method. Otherwise, return null.JClassType nameToType(JsName name)
name
is the name of a constructor function corresponding to
a Java type, then return that type. Otherwise, return null
.JClassType typeForStatement(JsStatement stat)
stat
is used to set up the definition of some class, return
that class. Otherwise, return null.JMethod vtableInitToMethod(JsStatement stat)
stat
is used to set up a vtable entry for a method, then
return that method. Otherwise return null.Copyright © 2018. All rights reserved.