| java.lang.Object com.google.gwt.dev.util.Jsni
Jsni | public class Jsni (Code) | | Helper methods working with JSNI.
|
Inner Class :public static class Interval | |
JAVASCRIPTHOST_NAME | final public static String JAVASCRIPTHOST_NAME(Code) | | |
JSNI_BLOCK_END | final public static String JSNI_BLOCK_END(Code) | | |
JSNI_BLOCK_START | final public static String JSNI_BLOCK_START(Code) | | |
buildArgList | public static String buildArgList(JMethod method)(Code) | | Generates the code to wrap a set of parameters as an object array.
|
buildTypeList | public static String buildTypeList(JMethod method)(Code) | | Generates the code to pass the exact types associated with each argument of
this method.
|
countNewlines | public static int countNewlines(char[] buf, int start, int end)(Code) | | |
countNewlines | public static int countNewlines(String src, int start, int end)(Code) | | |
escapeQuotesAndSlashes | public static String escapeQuotesAndSlashes(String str)(Code) | | Replaces double-quotes and backslashes in native JS code with their
appropriate escaped form (so they can be encoded in a java string).
|
generateEscapedJavaScriptForHostedMode | public static String generateEscapedJavaScriptForHostedMode(JsNode> node)(Code) | | Returns a string representing the source output of the JsNode, where all
JSNI idents have been replaced with legal JavaScript for hosted mode.
The output has quotes and slashes escaped so that the result can be part of
a legal Java source code string literal.
|
getJsniSignature | public static String getJsniSignature(JMethod method)(Code) | | Gets a unique name for this method and its signature (this is used to
determine whether one method overrides another).
|
|
|