de.uni_paderborn.fujaba.parser
Class Parser

java.lang.Object
  extended byde.uni_paderborn.fujaba.parser.Parser

public abstract class Parser
extends java.lang.Object

Abstract super class for parsers connected to Fujaba

Associations

         0..1      currentParser      0..1
 Parser <---------------------------------- ParserManager
         currentParser      parserManager

         0..n     parsers      0..1
 Parser ---------------------------- ParserManager
         parsers      parserManager
 

Version:
$Revision: 1.13 $
Author:
$Author: lowende $

Constructor Summary
Parser()
           
 
Method Summary
abstract  void addParserPostProcessor(ParserPostProcessor parserPostProcessor)
          Access method for a To N-association.
 ParserManager getParserManager()
          Get the parserManager attribute of the Parser object
abstract  FFile parseCompilationUnit(java.lang.String filename, java.io.Reader reader)
          Parses the compilation unit and returns the abstract syntax graph (ASG) with an FFile as root.
abstract  void parseFiles(java.util.HashSet files)
          Parses the given files.
abstract  ASTRootNode parseMethodBody(FMethod fMethod)
          Parses the given method body and returns the root node of the abstract syntax tree.
abstract  void removeParserPostProcessor(ParserPostProcessor parserPostProcessor)
          No comment provided by developer, please add a comment to improve documentation.
 void removeYou()
          No comment provided by developer, please add a comment to improve documentation.
 boolean setParserManager(ParserManager value)
          Sets the parserManager attribute of the Parser object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Parser

public Parser()
Method Detail

parseFiles

public abstract void parseFiles(java.util.HashSet files)
Parses the given files.

Parameters:
files - The files to be parsed

parseCompilationUnit

public abstract FFile parseCompilationUnit(java.lang.String filename,
                                           java.io.Reader reader)
Parses the compilation unit and returns the abstract syntax graph (ASG) with an FFile as root.

Parameters:
filename - The name of the file to be parsed
reader - An input reader
Returns:
An FFile with the ASG of the parsed compilation unit

parseMethodBody

public abstract ASTRootNode parseMethodBody(FMethod fMethod)
Parses the given method body and returns the root node of the abstract syntax tree.

Parameters:
fMethod - The method/constructor to be parsed
Returns:
The ASTRootNode

addParserPostProcessor

public abstract void addParserPostProcessor(ParserPostProcessor parserPostProcessor)
Access method for a To N-association.

Parameters:
parserPostProcessor - The object added.

removeParserPostProcessor

public abstract void removeParserPostProcessor(ParserPostProcessor parserPostProcessor)
No comment provided by developer, please add a comment to improve documentation.

Parameters:
parserPostProcessor - No description provided

getParserManager

public ParserManager getParserManager()
Get the parserManager attribute of the Parser object

Returns:
The parserManager value

setParserManager

public boolean setParserManager(ParserManager value)
Sets the parserManager attribute of the Parser object

Parameters:
value - The new parserManager value
Returns:
No description provided

removeYou

public void removeYou()
No comment provided by developer, please add a comment to improve documentation.