de.java2html.javasource
Class TypedSource

java.lang.Object
  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: markus@jave.de The Java2html home page is located at: http://www.java2html.de

Author:
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

TypedSource

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

getClassification

public SourceType[] getClassification()

getCode

public java.lang.String getCode()

print

public void print()
Debug output of the code


getStatisticsString

@Deprecated
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 TypedSourceIterator getIterator()


Copyright 2003 - 2006