orchard.java.parser

Source and docstring info for Java classes and members

docstring

(docstring doc)
Given a Java parse tree `Doc` instance, return its parsed docstring text.

markdown

Syntax map from html tag to a tuple of tag type key, start, and end chars

parse-html

(parse-html html)
Parse html to markdown text.

parse-java

(parse-java path)
Load and parse the resource path, returning a `RootDoc` object.

Parsed

protocol

members

parse-info

(parse-info o)

set-field!

(set-field! obj field val)

source-info

(source-info klass)
If the source for the Java class is available on the classpath, parse it
and return info to supplement reflection. Specifically, this includes source
file and position, docstring, and argument name info. Info returned has the
same structure as that of `orchard.java/reflect-info`.

source-path

(source-path klass)
Return the relative `.java` source path for the top-level class.

typesym

(typesym t)
Using parse tree info, return the type's name equivalently to the `typesym`
function in `orchard.java`.