本文整理了Java中clojure.lang.RT.mapUniqueKeys
方法的一些代码示例,展示了RT.mapUniqueKeys
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。RT.mapUniqueKeys
方法的具体详情如下:
包路径:clojure.lang.RT
类名称:RT
方法名:mapUniqueKeys
暂无
代码示例来源:origin: org.dunaj/clojure
static private Object installPlatformFeature(Object opts) {
if(opts == null)
return RT.mapUniqueKeys(LispReader.OPT_FEATURES, PLATFORM_FEATURES);
else {
IPersistentMap mopts = (IPersistentMap) opts;
Object features = mopts.valAt(OPT_FEATURES);
if (features == null)
return mopts.assoc(LispReader.OPT_FEATURES, PLATFORM_FEATURES);
else
return mopts.assoc(LispReader.OPT_FEATURES, RT.conj((IPersistentSet) RT.conj((IPersistentSet) features, PLATFORM_KEY), DUNAJ_KEY));
}
}
代码示例来源:origin: videlalvaro/clochure
static void doInit() throws ClassNotFoundException, IOException{
load("clojure/core");
Var.pushThreadBindings(
RT.mapUniqueKeys(CURRENT_NS, CURRENT_NS.deref(),
WARN_ON_REFLECTION, WARN_ON_REFLECTION.deref()
,RT.UNCHECKED_MATH, RT.UNCHECKED_MATH.deref()));
try {
Symbol USER = Symbol.intern("user");
Symbol CLOJURE = Symbol.intern("clojure.core");
Var in_ns = var("clojure.core", "in-ns");
Var refer = var("clojure.core", "refer");
in_ns.invoke(USER);
refer.invoke(CLOJURE);
maybeLoadResourceScript("user.clj");
}
finally {
Var.popThreadBindings();
}
}
代码示例来源:origin: org.dunaj/clojure
RT.mapUniqueKeys(
METHOD, method,
LOCAL_ENV, LOCAL_ENV.deref(),
代码示例来源:origin: org.dunaj/clojure
try {
Var.pushThreadBindings(
RT.mapUniqueKeys(CURRENT_NS, CURRENT_NS.deref(),
WARN_ON_REFLECTION, WARN_ON_REFLECTION.deref()
,RT.UNCHECKED_MATH, RT.UNCHECKED_MATH.deref()));
代码示例来源:origin: videlalvaro/clochure
pnode = new PathNode(PATHTYPE.PATH,null);
Var.pushThreadBindings(
RT.mapUniqueKeys(
METHOD, method,
LOCAL_ENV, LOCAL_ENV.deref(),
代码示例来源:origin: org.dunaj/clojure
pnode = new PathNode(PATHTYPE.PATH,null);
Var.pushThreadBindings(
RT.mapUniqueKeys(
METHOD, method,
LOCAL_ENV, LOCAL_ENV.deref(),
代码示例来源:origin: videlalvaro/clochure
RT.mapUniqueKeys(CONSTANTS, PersistentVector.EMPTY,
CONSTANT_IDS, new IdentityHashMap(),
KEYWORDS, PersistentHashMap.EMPTY,
代码示例来源:origin: videlalvaro/clochure
RT.mapUniqueKeys(
METHOD, method,
LOCAL_ENV, LOCAL_ENV.deref(),
代码示例来源:origin: org.dunaj/clojure
static void doInit() throws ClassNotFoundException, IOException{
Protocol.init();
load("clojure/core");
Var.pushThreadBindings(
RT.mapUniqueKeys(CURRENT_NS, CURRENT_NS.deref(),
WARN_ON_REFLECTION, WARN_ON_REFLECTION.deref()
,RT.UNCHECKED_MATH, RT.UNCHECKED_MATH.deref()));
try {
Symbol USER = Symbol.intern("user");
Symbol CLOJURE = Symbol.intern("clojure.core");
Var in_ns = var("clojure.core", "in-ns");
Var refer = var("clojure.core", "refer");
in_ns.invoke(USER);
refer.invoke(CLOJURE);
maybeLoadResourceScript("user.clj");
}
finally {
Var.popThreadBindings();
}
}
代码示例来源:origin: org.dunaj/clojure
RT.mapUniqueKeys(CONSTANTS, PersistentVector.EMPTY,
CONSTANT_IDS, new IdentityHashMap(),
KEYWORDS, PersistentHashMap.EMPTY,
if(ret.isDeftype())
Var.pushThreadBindings(RT.mapUniqueKeys(METHOD, null,
LOCAL_ENV, ret.fields
, COMPILE_STUB_SYM, Symbol.intern(null, tagName)
代码示例来源:origin: org.dunaj/clojure
RT.mapUniqueKeys(CONSTANTS, PersistentVector.EMPTY,
CONSTANT_IDS, new IdentityHashMap(),
KEYWORDS, PersistentHashMap.EMPTY,
代码示例来源:origin: org.dunaj/clojure
consumeWhitespaces(pushbackReader);
Var.pushThreadBindings(
RT.mapUniqueKeys(LOADER, RT.makeClassLoader(),
SOURCE_PATH, sourcePath,
SOURCE, sourceName,
代码示例来源:origin: org.dunaj/clojure
new LineNumberingPushbackReader(rdr);
Var.pushThreadBindings(
RT.mapUniqueKeys(SOURCE_PATH, sourcePath,
SOURCE, sourceName,
METHOD, null,
内容来源于网络,如有侵权,请联系作者删除!