Class TypedSource

  extended by de.java2html.javasource.TypedSource

public class TypedSource
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 (SourceType) 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: The Java2html home page is located at:

Markus Gebhard Copyright (C) Markus Gebhard 2000-2003 This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.

Constructor Summary
TypedSource(java.lang.String source, SourceType[] sourceTypes, JavaSourceStatistic statistics)
Method Summary
 SourceType[] getClassification()
 java.lang.String getCode()
 java.lang.String getFileName()
 TypedSourceIterator getIterator()
 int getLineCount()
 int getMaxLineLength()
 JavaSourceStatistic getStatistic()
 java.lang.String getStatisticsString()
          Deprecated. As of 26.02.2006 (Markus Gebhard), replaced by getStatistic()
 void print()
          Debug output of the code
 void setFileName(java.lang.String fileName)
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail


public TypedSource(java.lang.String source,
                   SourceType[] sourceTypes,
                   JavaSourceStatistic statistics)
Method Detail


public SourceType[] getClassification()


public java.lang.String getCode()


public void print()
Debug output of the code


public java.lang.String getStatisticsString()
Deprecated. As of 26.02.2006 (Markus Gebhard), replaced by getStatistic()

Returns statistical information as String


public java.lang.String getFileName()


public void setFileName(java.lang.String fileName)


public int getLineCount()


public int getMaxLineLength()


public JavaSourceStatistic getStatistic()


public TypedSourceIterator getIterator()

Copyright 2003 - 2006