corelib.tools.languages.parsers.javascript
Class JavascriptFileParserImpl

java.lang.Object
  extended by corelib.tools.languages.parsers.javascript.JavascriptFileParserImpl
All Implemented Interfaces:
JavascriptFileParser

public class JavascriptFileParserImpl
extends java.lang.Object
implements JavascriptFileParser

This class parse a Javascript file for construct raw javascript documentation informations.

Since:
0.3.0
Author:
Infini Software : Alexia Ramaļoli & Dominique Liard

Constructor Summary
JavascriptFileParserImpl(java.lang.String packagedFileName, java.io.File theFile, corelib.tools.documentation.javascript.model.Package thePackage)
          Class constructor
 
Method Summary
 void parseFile()
          This method realize the file parsing.
 void setTokenizer(LangageStreamTokenizer tokenizer)
          Changes the LangageStreamTokenizer instance to use for parse the Javascript file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JavascriptFileParserImpl

public JavascriptFileParserImpl(java.lang.String packagedFileName,
                                java.io.File theFile,
                                corelib.tools.documentation.javascript.model.Package thePackage)
Class constructor

Parameters:
packagedFileName - The packaged representation of the Javascript file to parse.
theFile - The Javascript file to parse
thePackage - The package that contain the Javascript file to parse.
Method Detail

setTokenizer

public void setTokenizer(LangageStreamTokenizer tokenizer)
Changes the LangageStreamTokenizer instance to use for parse the Javascript file.

Specified by:
setTokenizer in interface JavascriptFileParser
Parameters:
tokenizer - The new instance to use.

parseFile

public void parseFile()
This method realize the file parsing. All readed tokens are associated to discover all semantic constructions.

Specified by:
parseFile in interface JavascriptFileParser


CAUTION: Ellipse is proposed to you in BETA version to allow evaluation of this framework. Infini Software is released from any responsibility for the use of Ellipse Framework.

Copyright 2012 Infini Software - All Rights Reserved.