Class JSXParser
java.lang.Object
org.nustaq.kontraktor.webapp.transpiler.jsx.JSXParser
- All Implemented Interfaces:
ParseUtils
public class JSXParser extends 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 StringdefaultExportstatic Map<String,Character>entityMapprotected Filefileprotected NodeLibNameResolverlibNameResolverstatic booleanSHIM_OBJ_SPREADFields inherited from interface org.nustaq.kontraktor.webapp.transpiler.jsx.ParseUtils
CountWords, WordCount -
Constructor Summary
Constructors Constructor Description JSXParser(File f, NodeLibNameResolver libNameResolver, boolean devmode) -
Method Summary
Modifier and Type Method Description StringgetDefaultExport()HashSet<String>getIgnoredRequires()List<ImportSpec>getImports()List<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
-
libNameResolver
-
defaultExport
-
entityMap
-
-
Constructor Details
-
Method Details