Skip to content
This repository was archived by the owner on Jun 30, 2024. It is now read-only.

Tria JSON format

Papierkorb edited this page Oct 19, 2014 · 2 revisions

This page describes the format of the JSON file as generated by Tria.

Tip: To write JSON data, pass -json-output=<Targetfile> to Tria!

Root

{
  "<source filename>": <FileData>,
  ...
}

FileData

{ "<class name>": <ClassData>, ... }

ClassData

{
  "annotations": <Annotations>,
  "bases": [ "<base class>", ... ],
  "memberMethods": <Methods>,
  "staticMethods": <Methods>,
  "constructors": <Methods>,
  "enums": <Enums>,
  "fields": <Fields>
}

Annotations

[ <AnnotationData>, ... ]

AnnotationData

{
  "name": <name>,
  "value": <value>
}

Methods

[ <MethodData>, ... ]

MethodData

{
  "name": <name>,
  "annotations": <Annotations>,
  "resultType": <result type>,
  "argumentNames": [ "<argument name>", ... ],
  "argumentTypes": [ "<argument type>", ... ]
}

Enums

{ "<name of enum>": <EnumData>, ... }

EnumData

{
  "annotations": <Annotations>,
  "values": { "<key>": <value>, ... }
}

Fields

{ "<name of field>": <FieldData>, ... }

FieldData

{
  "annotations": <Annotations>
  "type": "<type name>",
  "readOnly": <true/false>
}

Clone this wiki locally