Class JSXParser
java.lang.Object
org.nustaq.kontraktor.webapp.transpiler.jsx.JSXParser
- All Implemented Interfaces:
ParseUtils
public class JSXParser extends java.lang.Object implements ParseUtils
basically a tokenizer with some raw detection of top level definitions
and jsx detection
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.StringdefaultExportstatic java.util.Map<java.lang.String,java.lang.Character>entityMapprotected java.io.Filefileprotected NodeLibNameResolverlibNameResolverstatic booleanSHIM_OBJ_SPREADFields inherited from interface org.nustaq.kontraktor.webapp.transpiler.jsx.ParseUtils
CountWords, WordCount -
Constructor Summary
Constructors Constructor Description JSXParser(java.io.File f, NodeLibNameResolver libNameResolver, boolean devmode) -
Method Summary
Modifier and Type Method Description java.lang.StringgetDefaultExport()java.util.HashSet<java.lang.String>getIgnoredRequires()java.util.List<ImportSpec>getImports()java.util.List<java.lang.String>getTopLevelObjects()voidparseJS(TokenNode cur, Inp in)Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.nustaq.kontraktor.webapp.transpiler.jsx.ParseUtils
readJSString, readRegexp, readSlashComment, readStarComment
-
Field Details
-
SHIM_OBJ_SPREAD
public static boolean SHIM_OBJ_SPREAD -
file
protected java.io.File file -
libNameResolver
-
defaultExport
protected java.lang.String defaultExport -
entityMap
public static java.util.Map<java.lang.String,java.lang.Character> entityMap
-
-
Constructor Details
-
Method Details
-
getDefaultExport
public java.lang.String getDefaultExport() -
getTopLevelObjects
public java.util.List<java.lang.String> getTopLevelObjects() -
parseJS
-
getImports
-
getIgnoredRequires
public java.util.HashSet<java.lang.String> getIgnoredRequires()
-