@GwtIncompatible(value="java.util.regex") public final class JsFunctionParser extends JsFileLineParser
Modifier and Type | Class and Description |
---|---|
static class |
JsFunctionParser.SymbolInfo |
PARSE_ERROR
Constructor and Description |
---|
JsFunctionParser(Collection<String> functions,
ErrorManager errorManager)
Constructor
|
Modifier and Type | Method and Description |
---|---|
Collection<JsFunctionParser.SymbolInfo> |
parseFile(String filePath,
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 dependency information.
|
didParseSucceed, setShortcutMode
public JsFunctionParser(Collection<String> functions, ErrorManager errorManager)
functions
- Functions to parse.errorManager
- Handles parse errors.public Collection<JsFunctionParser.SymbolInfo> parseFile(String filePath, String fileContents)
filePath
- Path to the file to parse.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
Copyright © 2009-2016 Google. All Rights Reserved.