de.java2html.javasource
Class JavaSource
java.lang.Object
de.java2html.javasource.JavaSource
public class JavaSource
- extends java.lang.Object
This class represents java source code in a parsed, but still flat style.
It contains the raw text along with an array of source type entries
(JavaSourceType
) for each character.
JavaSource
objects are created using the
JavaSourceParser
.
A JavaSource
object can be pretty-printed to HTML by using the
JavaSource2HTMLConverter
.
For questions, suggestions, bug-reports, enhancement-requests etc. I may be contacted at:
markus@jave.de
The Java2html home page is located at:
http://www.java2html.de
Constructor Summary |
JavaSource(java.lang.String source)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JavaSource
public JavaSource(java.lang.String source)
getClassification
public JavaSourceType[] getClassification()
setClassification
public void setClassification(JavaSourceType[] types)
getCode
public java.lang.String getCode()
print
public void print()
- Debug output of the code
print
protected void print(int start,
int end)
getStatisticsString
public java.lang.String getStatisticsString()
- Deprecated. As of 26.02.2006 (Markus Gebhard), replaced by
getStatistic()
- Returns statistical information as String
getFileName
public java.lang.String getFileName()
setFileName
public void setFileName(java.lang.String fileName)
getLineCount
public int getLineCount()
getMaxLineLength
public int getMaxLineLength()
getStatistic
public JavaSourceStatistic getStatistic()
getIterator
public JavaSourceIterator getIterator()