Package org.ctan.analysers
Class TexAnalyser
java.lang.Object
org.ctan.analysers.TexAnalyser
The class
TexAnalyser contains an analyser for TeX code.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Map<String, Analysis.DefType> The fieldOFcontains the classification of macros to types. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThe methodanalyseprovides means to analyse a single file.protected voidfindPattern(String line, int lineNo, Analysis analysis) The methodfindPatternprovides means to analyse a line with the help of some regular expressions.
-
Field Details
-
OF
The fieldOFcontains the classification of macros to types.
-
-
Constructor Details
-
TexAnalyser
public TexAnalyser()
-
-
Method Details
-
analyse
The methodanalyseprovides means to analyse a single file.- Parameters:
in- the reader to get lines fromsource- the source file name- Returns:
- the analysis result
- Throws:
IOException- in case of an I/O error
-
findPattern
The methodfindPatternprovides means to analyse a line with the help of some regular expressions.- Parameters:
line- the input linelineNo- the input line numberanalysis- the analysis result container
-