本文整理汇总了Java中jdk.nashorn.internal.runtime.ScriptFunction.getPrototype方法的典型用法代码示例。如果您正苦于以下问题:Java ScriptFunction.getPrototype方法的具体用法?Java ScriptFunction.getPrototype怎么用?Java ScriptFunction.getPrototype使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类jdk.nashorn.internal.runtime.ScriptFunction
的用法示例。
在下文中一共展示了ScriptFunction.getPrototype方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: initErrorSubtype
import jdk.nashorn.internal.runtime.ScriptFunction; //导入方法依赖的package包/类
private ScriptFunction initErrorSubtype(final String name, final ScriptObject errorProto) {
final ScriptFunction cons = initConstructor(name, ScriptFunction.class);
final ScriptObject prototype = ScriptFunction.getPrototype(cons);
prototype.set(NativeError.NAME, name, 0);
prototype.set(NativeError.MESSAGE, "", 0);
prototype.setInitialProto(errorProto);
tagBuiltinProperties(name, cons);
return cons;
}
示例2: getUint8ClampedArrayPrototype
import jdk.nashorn.internal.runtime.ScriptFunction; //导入方法依赖的package包/类
ScriptObject getUint8ClampedArrayPrototype() {
return ScriptFunction.getPrototype(getBuiltinUint8ClampedArray());
}
示例3: getWeakMapPrototype
import jdk.nashorn.internal.runtime.ScriptFunction; //导入方法依赖的package包/类
ScriptObject getWeakMapPrototype() {
return ScriptFunction.getPrototype(getBuiltinWeakMap());
}
示例4: getJavaImporterPrototype
import jdk.nashorn.internal.runtime.ScriptFunction; //导入方法依赖的package包/类
ScriptObject getJavaImporterPrototype() {
return ScriptFunction.getPrototype(getBuiltinJavaImporter());
}
示例5: getNumberPrototype
import jdk.nashorn.internal.runtime.ScriptFunction; //导入方法依赖的package包/类
ScriptObject getNumberPrototype() {
return ScriptFunction.getPrototype(builtinNumber);
}
示例6: getDatePrototype
import jdk.nashorn.internal.runtime.ScriptFunction; //导入方法依赖的package包/类
ScriptObject getDatePrototype() {
return ScriptFunction.getPrototype(getBuiltinDate());
}
示例7: getFloat32ArrayPrototype
import jdk.nashorn.internal.runtime.ScriptFunction; //导入方法依赖的package包/类
ScriptObject getFloat32ArrayPrototype() {
return ScriptFunction.getPrototype(builtinFloat32Array);
}
示例8: getErrorPrototype
import jdk.nashorn.internal.runtime.ScriptFunction; //导入方法依赖的package包/类
ScriptObject getErrorPrototype() {
return ScriptFunction.getPrototype(builtinError);
}
示例9: getInt16ArrayPrototype
import jdk.nashorn.internal.runtime.ScriptFunction; //导入方法依赖的package包/类
ScriptObject getInt16ArrayPrototype() {
return ScriptFunction.getPrototype(builtinInt16Array);
}
示例10: getRangeErrorPrototype
import jdk.nashorn.internal.runtime.ScriptFunction; //导入方法依赖的package包/类
ScriptObject getRangeErrorPrototype() {
return ScriptFunction.getPrototype(builtinRangeError);
}
示例11: getBooleanPrototype
import jdk.nashorn.internal.runtime.ScriptFunction; //导入方法依赖的package包/类
ScriptObject getBooleanPrototype() {
return ScriptFunction.getPrototype(builtinBoolean);
}
示例12: getUint8ClampedArrayPrototype
import jdk.nashorn.internal.runtime.ScriptFunction; //导入方法依赖的package包/类
ScriptObject getUint8ClampedArrayPrototype() {
return ScriptFunction.getPrototype(builtinUint8ClampedArray);
}
示例13: getInt16ArrayPrototype
import jdk.nashorn.internal.runtime.ScriptFunction; //导入方法依赖的package包/类
ScriptObject getInt16ArrayPrototype() {
return ScriptFunction.getPrototype(getBuiltinInt16Array());
}
示例14: getFloat32ArrayPrototype
import jdk.nashorn.internal.runtime.ScriptFunction; //导入方法依赖的package包/类
ScriptObject getFloat32ArrayPrototype() {
return ScriptFunction.getPrototype(getBuiltinFloat32Array());
}
示例15: getURIErrorPrototype
import jdk.nashorn.internal.runtime.ScriptFunction; //导入方法依赖的package包/类
ScriptObject getURIErrorPrototype() {
return ScriptFunction.getPrototype(getBuiltinURIError());
}