net.sourceforge.pmd
Interface TargetJDKVersion

All Known Implementing Classes:
TargetJDK1_3, TargetJDK1_4, TargetJDK1_5, TargetJDK1_6, TargetJDK1_7

public interface TargetJDKVersion

Interface to create JDK-appropriate parsers.

Author:
Tom Copeland

Field Summary
static TargetJDKVersion DEFAULT_JDK_VERSION
          Default target version.
 
Method Summary
 JavaParser createParser(java.io.InputStream in)
          Creates a parser.
 JavaParser createParser(java.io.Reader in)
          Creates a parser.
 java.lang.String getVersionString()
           
 

Field Detail

DEFAULT_JDK_VERSION

static final TargetJDKVersion DEFAULT_JDK_VERSION
Default target version.

Method Detail

createParser

JavaParser createParser(java.io.InputStream in)
Creates a parser.

Parameters:
in - the stream to parser
Returns:
a parser for the input stream

createParser

JavaParser createParser(java.io.Reader in)
Creates a parser.

Parameters:
in - an input stream reader
Returns:
a parser for the stream read by the stream reader

getVersionString

java.lang.String getVersionString()


Copyright © 2002-2011 InfoEther. All Rights Reserved.