net.sourceforge.pmd.parsers
Interface Parser

All Known Implementing Classes:
Java13Parser, Java14Parser, Java15Parser, Java16Parser, Java17Parser, JspParser

public interface Parser

Common interface for calling tree-building parsers or source files.

Author:
Pieter_Van_Raemdonck - Application Engineers NV/SA - www.ae.be

Method Summary
 java.util.Map<java.lang.Integer,java.lang.String> getExcludeMap()
           
 java.lang.Object parse(java.io.Reader source)
          Parse source code and return the root node of the AST.
 void setExcludeMarker(java.lang.String marker)
           
 

Method Detail

parse

java.lang.Object parse(java.io.Reader source)
                       throws ParseException
Parse source code and return the root node of the AST.

Parameters:
source - Reader that provides the source code of a compilation unit
Returns:
the root node of the AST that is built from the source code
Throws:
ParseException - In case the source code could not be parsed, probably due to syntactical errors.

getExcludeMap

java.util.Map<java.lang.Integer,java.lang.String> getExcludeMap()

setExcludeMarker

void setExcludeMarker(java.lang.String marker)


Copyright © 2002-2011 InfoEther. All Rights Reserved.