Every export of @skiffyard/javaser. Guides are listed in the introduction.
jennifer
import"@skiffyard/javaser/"as javaser;
Every failure is Error{kind: "javaser"}, except a reached cap (Options.maxNodes, Options.maxDepth), which is kind "limit". An s argument is a Stream; an n argument is a node number. Node 0 is null.
The tables behind the accessors, one entry per node (lists indexed by node number) or per class (indexed by class number). Prefer the accessors; the layout is plain lists so a Stream is not rebuilt when passed to the deck.
Field
Meaning
data as bytes
the bytes decoded
offset as int
where the stream starts in data
kinds as list of int
each node's kind, an index into the typeOf names
classOf as list of int
each node's class number, -1 for none
ints as list of int
a primitive value, a float's bits, an array length, a block's byte count
floats as list of float
a finite float / double value, else 0.0
texts as list of string
a string, an enum constant, a char
at as list of int
a primitive array's first element in data, -1 otherwise
segments as map of int to list of int
a block's pieces in data, offset / length pairs
children as list of list of int
each node's children: fields, custom data, elements
names as list of list of string
each child's field name, "" for custom data and elements
owners as list of list of int
each child's class number, -1 for array elements
classNames as list of string
each class's name, $Proxy for a proxy class
classUids as list of int
each class's serialVersionUID
classFlags as list of int
each class's SC_* flags
classSupers as list of int
each class's superclass, -1 for none
classFieldNames as list of list of string
each class's serializable fields, in stream order
classFieldTypes as list of list of string
each field's type code: B C D F I J S Z, L object, [ array
classFieldClasses as list of list of string
each object field's declared type, "" for primitives