JAC project
AOPSYS
CEDRIC & LIP6 labs

org.objectweb.jac.core
Class ParserImpl

java.lang.Object
  |
  +--org.objectweb.jac.core.ParserImpl
All Implemented Interfaces:
Parser

public class ParserImpl
extends Object
implements Parser

This is the default implementation for the aspect-configuration files.

For the moment, it supports XML and ACC formats.


Constructor Summary
ParserImpl()
           
 
Method Summary
 List parse(InputStream inputStream, String filePath, String targetClass, Set blockKeywords)
          Parse a stream.
 List parse(String filePath, String targetClass, Set blockKeywords)
          Parse config file specified by its file path.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ParserImpl

public ParserImpl()
Method Detail

parse

public List parse(String filePath,
                  String targetClass,
                  Set blockKeywords)
           throws IOException
Description copied from interface: Parser
Parse config file specified by its file path.

Specified by:
parse in interface Parser
Parameters:
filePath - path of file to parse
targetClass - the class name of the aspect component
blockKeywords - additional block keywords to factorize configuration methods
IOException

parse

public List parse(InputStream inputStream,
                  String filePath,
                  String targetClass,
                  Set blockKeywords)
Description copied from interface: Parser
Parse a stream.

Specified by:
parse in interface Parser
Parameters:
inputStream - the stream to parse
filePath - path of file corresponding to the input stream
targetClass - the class name of the aspect component
blockKeywords - additional block keywords to factorize configuration methods

Contact JAC development team:
Renaud Pawlak
Lionel Seinturier
Laurent Martelli