Zpracování předpisů CSS v jazyce Java

Loading...
Thumbnail Image

Date

Authors

Švercl, Jan

Mark

B

Journal Title

Journal ISSN

Volume Title

Publisher

Vysoké učení technické v Brně. Fakulta informačních technologií

ORCID

Abstract

Tato práce se věnuje problematice manipulace s předpisy kaskádových stylů. Prvním cílem je vytvoření knihovny pro manipulaci s předpisy CSS - je navrhnuto objektové rozhraní předpisu CSS, pomocí nástroje JavaCC vygenerován syntaktický analyzátor, doplněna implementace rozhraní a vše spojeno do funkčního celku. Knihovna umožňuje načtení předpisu CSS a převedení do objektové reprezentace, editaci či následně export zpět do textového souboru. Druhá část práce se zabývá implementací knihovny pro ohodnocení stromu dokumentu - každý (X)HTML dokument je tvořen stromem elementů, ke kterým jsou následně v předpisu CSS vyhledávána pravidla a ve správném pořadí přiřazovány jejich deklarace. V závěru práce je popsána DEMO aplikace, která demonstruje možnosti obou knihoven a umožňuje provádění experimentů či testování. Ukázána je také technika profiling, umožňující vyhledat ve zdrojovém kódu výkonnostně náročné pasáže, které mohou být dále optimalizovány.
This thesis concerns itself with the problems of manipulation with Cascading Style Sheets. The first aim is to create a library for manipulation with Cascading Style Sheets - an object interface of Cascading Style Sheet is proposed, a parser is generated by means of an appliance of JavaCC, the implementation of interface is completed and as a whole connected to a functional unit. The library enables reading Cascading Style Sheet and its transfer into an object representation, editing and subsequently exporting back to the text file. The second part of the thesis deals with the implementation of library for assign property values - every (X)HTML document is formed by the tree of elements to which the rules are consequently searched for in CSS and their declarations are asigned in the correct order. In conclusion of the thesis the DEMO application, which illustrates the possibilities of both libraries and facilitates performing of experiments or testing, is described. Hereafter the technique of profiling, which enables to find out the efficiently demanding passages, which can be optimised further, in the source code, is shown.

Description

Citation

ŠVERCL, J. Zpracování předpisů CSS v jazyce Java [online]. Brno: Vysoké učení technické v Brně. Fakulta informačních technologií. .

Document type

Document version

Date of access to the full text

Language of document

cs

Study field

Informační systémy

Comittee

Date of acceptance

Defence

Result of defence

práce byla úspěšně obhájena

DOI

Collections

Endorsement

Review

Supplemented By

Referenced By

Citace PRO