|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.google.javascript.jscomp.deps.JsFileLineParser
com.google.javascript.jscomp.deps.JsFileParser
public class JsFileParser
A parser that can extract goog.require() and goog.provide() dependency information from a .js file.
| Constructor Summary | |
|---|---|
JsFileParser(ErrorManager errorManager)
Constructor |
|
| Method Summary | |
|---|---|
DependencyInfo |
parseFile(String filePath,
String closureRelativePath)
Parses the given file and returns the dependency information that it contained. |
DependencyInfo |
parseFile(String filePath,
String closureRelativePath,
String fileContents)
Parses the given file and returns the dependency information that it contained. |
protected boolean |
parseLine(String line)
Parses a line of javascript, extracting goog.provide and goog.require information. |
| Methods inherited from class com.google.javascript.jscomp.deps.JsFileLineParser |
|---|
didParseSucceed, setShortcutMode |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JsFileParser(ErrorManager errorManager)
errorManager - Handles parse errors.| Method Detail |
|---|
public DependencyInfo parseFile(String filePath,
String closureRelativePath)
throws IOException
filePath - Path to the file to parse.closureRelativePath - Path of the file relative to closure.
IOException - Thrown if there was an problem reading the given file.
public DependencyInfo parseFile(String filePath,
String closureRelativePath,
String fileContents)
filePath - Path to the file to parse.closureRelativePath - Path of the file relative to closure.fileContents - The contents to parse.
protected boolean parseLine(String line)
throws com.google.javascript.jscomp.deps.JsFileLineParser.ParseException
line - The line to parse.
com.google.javascript.jscomp.deps.JsFileLineParser.ParseException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||