com.puppycrawl.tools.checkstyle.gui

Class ParseTreeInfoPanel


public class ParseTreeInfoPanel
extends JPanel

Displays information about a parse tree. The user can change the file that is parsed and displayed through a JFileChooser.
Author:
Lars Kühne

Constructor Summary

ParseTreeInfoPanel()
Create a new ParseTreeInfoPanel instance.

Method Summary

void
openFile(File aFile, Component aParent)
static DetailAST
parseFile(String aFileName)
Parses a file and returns the parse tree.

Constructor Details

ParseTreeInfoPanel

public ParseTreeInfoPanel()
Create a new ParseTreeInfoPanel instance.

Method Details

openFile

public void openFile(File aFile,
                     Component aParent)

parseFile

public static DetailAST parseFile(String aFileName)
            throws IOException,
                   ANTLRException
Parses a file and returns the parse tree.
Parameters:
aFileName - the file to parse
Returns:
the root node of the parse tree