Class CodeBuf

Summary

Hold a copy of the source code in a form suitable for display using whatever conversion class is currently in use. Relies on the conversion class providing a method for protecting any text symbols that might interfere with the conversion. The normal conversion class is UniHTML, which produces HTML.

Superclasses:
Object

Package:
UniDoc
File:
UniFile.icn
Methods:
add, getLines, insertTag

Methods inherited from Object:
Type, className, clone, equals, fieldNames, genMethods, getField, get_class, get_class_name, get_id, hasField, hasMethod, hash_code, instanceOf, invoke, is_instance, setField, to_string

Fields:
buffer

Source code.

Details
Constructor

CodeBuf()

Methods:

add(line)

Add a source code line to the end of the buffer. Protects the line by having the converter hide any text that might interfere with the conversion process later.


getLines()

Generate the source code lines that have been buffered up.


insertTag(tagName)

Insert a tag just prior the last source code line. The tag is produced by the converter given the source code file name and the tagged name.


Fields:
buffer


This page produced by UniDoc on 2021/04/15 @ 23:59:53.