Return to search

Generellt interface till Javadoc

Syftet med detta arbete var att undersöka möjligheten att få ett väl fungerande interface mellan ©VizzAnalyzer [3] och Javadoc, och därmed kunna producera htmldokumentation av de analyserade klasserna. VizzAnalyzer analyserar javaprogram och producerar därvid ett abstrakt syntaxträd (AST) som representerar det analyserade programmet. Detta AST kan sedan kopplas till javadocs interna AST-modell för att representera de klasser som förekommer vid analysen. Resultatet av detta blir då en komplett dokumentation av de analyserade klasserna. Det finns även möjligheter att dynamiskt lägga in ytterligare information om dem som kommit fram vid analysen. Utöver interfacet till VizzAnalyzer gjordes också ett mer generellt interface som kan kopplas till vilket program som helst som kan producera en lämplig representation av ett analyserat program. Detta gäller då främst javakod, men i och med att klasser, metoder, fält mm. enbart är representerade som text innan de behandlas av javadocinterfacet, finns det också möjligheter att använda det för andra objektorienterade språk. / The purpose of this work was to examine the possibility to get a well functioning interface between ©VizzAnalyzer [3] and Javadoc, thereby be able to produce html documentation of the analysed classes. The VizzAnalyzer analyses java programs and so produces an abstract syntax tree (AST) that represents the analysed program. This AST can then be coupled to the internal AST model of javadoc to represent the classes that were part of the analysis. The result of this is a complete documentation of the analysed classes. There is also the possibility to add further information about them that may have been discovered during analysis. A more general interface was also made in addition to the interface for VizzAnalyzer. This interface can be coupled with any program that can produce a suitable representation of the analysed program. This is mostly pertinent to java code, but due to classes being represented only as text before they are processed by the interface, there is a possibility to use it for other object oriented languages.

Identiferoai:union.ndltd.org:UPSALLA1/oai:DiVA.org:vxu-57
Date January 2005
CreatorsJohansson, Bo
PublisherVäxjö universitet, Matematiska och systemtekniska institutionen
Source SetsDiVA Archive at Upsalla University
LanguageSwedish
Detected LanguageEnglish
TypeStudent thesis, info:eu-repo/semantics/bachelorThesis, text
Formatapplication/pdf
Rightsinfo:eu-repo/semantics/openAccess

Page generated in 0.0023 seconds