
clojure.walk__init.class Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of rest-resources-viz Show documentation
Show all versions of rest-resources-viz Show documentation
Transformations and visualizations for Cortex Rest resources
The newest version!
???? 1M clojure/walk__init java/lang/Object load ()V const__0 Lclojure/lang/Var; clojure/lang/Var
getRawRoot ()Ljava/lang/Object;
clojure/lang/IFn const__1 Lclojure/lang/AFn; invoke &(Ljava/lang/Object;)Ljava/lang/Object; clojure/lang/Symbol clojure/lang/Namespace find /(Lclojure/lang/Symbol;)Lclojure/lang/Namespace;
! clojure/lang/AReference # const__4 % & clojure/lang/IPersistentMap ( resetMeta <(Lclojure/lang/IPersistentMap;)Lclojure/lang/IPersistentMap; * +
$ , )clojure/walk$loading__7732__auto____10435 . 0
/ 1 3 const__5 5 6 equals (Ljava/lang/Object;)Z 8 9
: clojure/walk$fn__10437 <
= 1 java/util/concurrent/Callable ? clojure/lang/LockingTransaction A runInTransaction 3(Ljava/util/concurrent/Callable;)Ljava/lang/Object; C D
B E const__6 G H const__15 J K setMeta (Lclojure/lang/IPersistentMap;)V M N
O clojure/walk$walk Q
R 1 bindRoot (Ljava/lang/Object;)V T U
V const__16 X Y const__19 [ \ clojure/walk$postwalk ^
_ 1 const__20 a b const__23 d e clojure/walk$prewalk g
h 1 const__24 j k const__27 m n clojure/walk$postwalk_demo p
q 1 const__28 s t const__31 v w clojure/walk$prewalk_demo y
z 1 const__32 | } const__35 ? clojure/walk$keywordize_keys ?
? 1 const__36 ? ? const__39 ? ? clojure/walk$stringify_keys ?
? 1 const__40 ? ? const__43 ? ? clojure/walk$prewalk_replace ?
? 1 const__44 ? ? const__47 ? ? clojure/walk$postwalk_replace ?
? 1 const__48 ? ? const__51 ? ? clojure/walk$macroexpand_all ?
? 1 __init0 clojure.core ? in-ns ? clojure/lang/RT ? var 8(Ljava/lang/String;Ljava/lang/String;)Lclojure/lang/Var; ? ?
? ? clojure.walk ? intern ;(Ljava/lang/String;Ljava/lang/String;)Lclojure/lang/Symbol; ? ?
? clojure/lang/IObj ? author ? keyword <(Ljava/lang/String;Ljava/lang/String;)Lclojure/lang/Keyword; ? ?
? ?
Stuart Sierra ? doc ??This file defines a generic tree walker for Clojure data
structures. It takes any data structure (list, vector, map, set,
seq), calls a function on every element, and uses the return value
of the function in place of the original. This makes it fairly
easy to write recursive search-and-replace functions, as shown in
the examples.
Note: "walk" supports all Clojure data structures EXCEPT maps
created with sorted-map-by. There is no (obvious) way to retrieve
the sorting function. ? map 2([Ljava/lang/Object;)Lclojure/lang/IPersistentMap; ? ?
? ? withMeta 2(Lclojure/lang/IPersistentMap;)Lclojure/lang/IObj; ? ? ? ? clojure/lang/AFn ? walk ? arglists ? inner ? outer ? form ? clojure/lang/Tuple ? create X(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Lclojure/lang/IPersistentVector; ? ?
? ? java/util/Arrays ? asList %([Ljava/lang/Object;)Ljava/util/List; ? ?
? ? clojure/lang/PersistentList ? 0(Ljava/util/List;)Lclojure/lang/IPersistentList; ? ?
? ?Traverses form, an arbitrary data structure. inner and outer are
functions. Applies inner to each element of form, building up a
data structure of the same type, then applies outer to the result.
Recognizes all Clojure data structures. Consumes seqs as with doall. ? added ? 1.1 ? line ? java/lang/Integer ? valueOf (I)Ljava/lang/Integer; ? ?
? ? column ? file ? clojure/walk.clj ? postwalk f F(Ljava/lang/Object;Ljava/lang/Object;)Lclojure/lang/IPersistentVector; ?
? ?Performs a depth-first, post-order traversal of form. Calls f on
each sub-form, uses f's return value in place of the original.
Recognizes all Clojure data structures. Consumes seqs as with doall. prewalk
,Like postwalk, but does pre-order traversal.
postwalk-demo 4(Ljava/lang/Object;)Lclojure/lang/IPersistentVector; ?
? ]Demonstrates the behavior of postwalk by printing each form as it is
walked. Returns form. prewalk-demo \Demonstrates the behavior of prewalk by printing each form as it is
walked. Returns form. keywordize-keys m =Recursively transforms all map keys from strings to keywords. stringify-keys =Recursively transforms all map keys from keywords to strings.! prewalk-replace# smap% ?Recursively transforms form by replacing keys in smap with their
values. Like clojure/replace but works on any data structure. Does
replacement at the root of the tree first.' postwalk-replace) ?Recursively transforms form by replacing keys in smap with their
values. Like clojure/replace but works on any data structure. Does
replacement at the leaves of the tree first.+ macroexpand-all- :Recursively performs all possible macroexpansions in form./ ?
2 clojure.walk__init4 classForName %(Ljava/lang/String;)Ljava/lang/Class;67
?8 java/lang/Class: getClassLoader ()Ljava/lang/ClassLoader;<=
;> clojure/lang/Compiler@ pushNSandLoader (Ljava/lang/ClassLoader;)VBC
AD
F popThreadBindingsH
I Code LineNumberTable ! % 5 G J X [ a d j m s v | ? ? ? ? ? ? ? ? K ? I?
? ? ? ? ? ? ? "? $? '? )? -? /Y? 2? ? 4 ? ? ? 7? ;? ? W? =Y? >? @? FW? IY? L? )? PY? RY? S? W? ZY? ]? )? PY? _Y? `? W? cY? f? )? PY? hY? i? W? lY? o? )? PY? qY? r? W? uY? x? )? PY? zY? {? W? ~Y? ?? )? PY? ?Y? ?? W? ?Y? ?? )? PY? ?Y? ?? W? ?Y? ?? )? PY? ?Y? ?? W? ?Y? ?? )? PY? ?Y? ?? W? ?Y? ?? )? PY? ?Y? ?? W? L &