The following code
(-> (.getField (Class/forName
"ccg.flow.processnodes.text.retrievers.Dictionary.Dictionary")
"wordsTuples") .getType)
tells me that wordsTuples is a java.util.ArrayList. But what I would like to be able to learn is that it is an ArrayList with elements of type String[], since it happens to be declared like this:
public class Dictionary extends ProcessNode {
public ArrayList<String[]> wordsTuples;
public ArrayList<String> words;
...
Is there a way to obtain the "type hint" information programmatically within Clojure?
classinstead of that more complicated expression to identify the object as anArrayList. e.g.(class (java.util.ArrayList. ["a" "b" "c"])) ;=> java.util.ArrayList.