本文整理了Java中com.google.gwt.core.shared.GWT.isScript()
方法的一些代码示例,展示了GWT.isScript()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。GWT.isScript()
方法的具体详情如下:
包路径:com.google.gwt.core.shared.GWT
类名称:GWT
方法名:isScript
[英]Determines whether or not the running program is script or bytecode.
[中]确定正在运行的程序是脚本还是字节码。
代码示例来源:origin: com.google.gwt/gwt-servlet
/**
* Determines whether or not the running program is script or bytecode.
*/
public static boolean isScript() {
return com.google.gwt.core.shared.GWT.isScript();
}
代码示例来源:origin: com.google.gwt/gwt-servlet
public final String getSerializationSignature(Class<?> clazz) {
assert clazz != null : "clazz";
if (GWT.isScript()) {
return signatureMapNative.get(clazz.hashCode());
} else {
return signatureMapJava.get(clazz.getName());
}
}
代码示例来源:origin: com.google.gwt/gwt-servlet
if (GWT.isScript()) {
uri = URL.encode(uri);
代码示例来源:origin: com.google.gwt/gwt-servlet
public final void deserialize(SerializationStreamReader stream,
Object instance, String typeSignature) throws SerializationException {
if (GWT.isScript()) {
check(typeSignature, 2);
methodMapNative.deserialize(stream, instance, typeSignature);
} else {
TypeHandler typeHandler = getTypeHandler(typeSignature);
typeHandler.deserial(stream, instance);
}
}
代码示例来源:origin: com.google.gwt/gwt-servlet
public final void serialize(SerializationStreamWriter stream,
Object instance, String typeSignature) throws SerializationException {
if (GWT.isScript()) {
check(typeSignature, 3);
methodMapNative.serialize(stream, instance, typeSignature);
} else {
TypeHandler typeHandler = getTypeHandler(typeSignature);
typeHandler.serial(stream, instance);
}
}
代码示例来源:origin: com.google.gwt/gwt-servlet
public final Object instantiate(SerializationStreamReader stream,
String typeSignature) throws SerializationException {
if (GWT.isScript()) {
check(typeSignature, 1);
return methodMapNative.instantiate(stream, typeSignature);
} else {
TypeHandler typeHandler = getTypeHandler(typeSignature);
return typeHandler.create(stream);
}
}
代码示例来源:origin: net.wetheinter/gwt-user
/**
* Determines whether or not the running program is script or bytecode.
*/
public static boolean isScript() {
return com.google.gwt.core.shared.GWT.isScript();
}
代码示例来源:origin: com.vaadin.external.gwt/gwt-user
/**
* Determines whether or not the running program is script or bytecode.
*/
public static boolean isScript() {
return com.google.gwt.core.shared.GWT.isScript();
}
代码示例来源:origin: com.google.web.bindery/requestfactory-server
/**
* Determines whether or not the running program is script or bytecode.
*/
public static boolean isScript() {
return com.google.gwt.core.shared.GWT.isScript();
}
代码示例来源:origin: com.vaadin.external.gwt/gwt-user
public final String getSerializationSignature(Class<?> clazz) {
assert clazz != null : "clazz";
if (GWT.isScript()) {
return signatureMapNative.get(clazz.hashCode());
} else {
return signatureMapJava.get(clazz.getName());
}
}
代码示例来源:origin: net.wetheinter/gwt-user
public final String getSerializationSignature(Class<?> clazz) {
assert clazz != null : "clazz";
if (GWT.isScript()) {
return signatureMapNative.get(clazz.hashCode());
} else {
return signatureMapJava.get(clazz.getName());
}
}
代码示例来源:origin: net.wetheinter/gwt-user
public static void serialize(SerializationStreamWriter streamWriter,
List<?> instance) throws SerializationException {
Object[] array;
if (GWT.isScript()) {
// Violator pattern.
array = ArraysViolator.getArray0(instance);
} else {
// Clone the underlying array.
array = instance.toArray();
}
streamWriter.writeObject(array);
}
代码示例来源:origin: com.vaadin.external.gwt/gwt-user
public static void serialize(SerializationStreamWriter streamWriter,
List<?> instance) throws SerializationException {
Object[] array;
if (GWT.isScript()) {
// Violator pattern.
array = ArraysViolator.getArray0(instance);
} else {
// Clone the underlying array.
array = instance.toArray();
}
streamWriter.writeObject(array);
}
代码示例来源:origin: net.wetheinter/gwt-reflect
private static String annotationToString(Annotation defaultValue) {
if (GWT.isScript()) {
return defaultValue.toString();
} else {
代码示例来源:origin: com.vaadin.external.gwt/gwt-user
public final void serialize(SerializationStreamWriter stream,
Object instance, String typeSignature) throws SerializationException {
if (GWT.isScript()) {
check(typeSignature, 3);
methodMapNative.serialize(stream, instance, typeSignature);
} else {
TypeHandler typeHandler = getTypeHandler(typeSignature);
typeHandler.serial(stream, instance);
}
}
代码示例来源:origin: com.vaadin.external.gwt/gwt-user
public final void deserialize(SerializationStreamReader stream,
Object instance, String typeSignature) throws SerializationException {
if (GWT.isScript()) {
check(typeSignature, 2);
methodMapNative.deserialize(stream, instance, typeSignature);
} else {
TypeHandler typeHandler = getTypeHandler(typeSignature);
typeHandler.deserial(stream, instance);
}
}
代码示例来源:origin: com.vaadin.external.gwt/gwt-user
public final Object instantiate(SerializationStreamReader stream,
String typeSignature) throws SerializationException {
if (GWT.isScript()) {
check(typeSignature, 1);
return methodMapNative.instantiate(stream, typeSignature);
} else {
TypeHandler typeHandler = getTypeHandler(typeSignature);
return typeHandler.create(stream);
}
}
代码示例来源:origin: net.wetheinter/gwt-user
public final void deserialize(SerializationStreamReader stream,
Object instance, String typeSignature) throws SerializationException {
if (GWT.isScript()) {
check(typeSignature, 2);
methodMapNative.deserialize(stream, instance, typeSignature);
} else {
TypeHandler typeHandler = getTypeHandler(typeSignature);
typeHandler.deserial(stream, instance);
}
}
代码示例来源:origin: net.wetheinter/gwt-user
public final void serialize(SerializationStreamWriter stream,
Object instance, String typeSignature) throws SerializationException {
if (GWT.isScript()) {
check(typeSignature, 3);
methodMapNative.serialize(stream, instance, typeSignature);
} else {
TypeHandler typeHandler = getTypeHandler(typeSignature);
typeHandler.serial(stream, instance);
}
}
代码示例来源:origin: net.wetheinter/gwt-user
public final Object instantiate(SerializationStreamReader stream,
String typeSignature) throws SerializationException {
if (GWT.isScript()) {
check(typeSignature, 1);
return methodMapNative.instantiate(stream, typeSignature);
} else {
TypeHandler typeHandler = getTypeHandler(typeSignature);
return typeHandler.create(stream);
}
}
内容来源于网络,如有侵权,请联系作者删除!