Class JsHinter
java.lang.Object
org.fife.rsta.ac.js.JsHinter
Launches jshint as an external process to parse JavaScript in an
RSyntaxTextArea. Note that this is pretty inefficient, and was
mainly done as a test of jshint integration. In the future, the external
process should be launched in a separate thread.- Version:
- 1.0
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static enumWhat exactly to mark as the error in the document, based on an error code from JSHint.(package private) static classA thread dedicated to reading either the stdout or stderr stream of an external process. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Map<String, JsHinter.MarkStrategy> private JavaScriptParserprivate org.fife.ui.rsyntaxtextarea.parser.DefaultParseResult -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateJsHinter(JavaScriptParser parser, org.fife.ui.rsyntaxtextarea.RSyntaxDocument doc, org.fife.ui.rsyntaxtextarea.parser.DefaultParseResult result) -
Method Summary
Modifier and TypeMethodDescriptionprivate static JsHinter.MarkStrategygetMarkStrategy(String msgCode) static voidparse(JavaScriptParser parser, org.fife.ui.rsyntaxtextarea.RSyntaxTextArea textArea, org.fife.ui.rsyntaxtextarea.parser.DefaultParseResult result) private voidparseOutput(org.fife.ui.rsyntaxtextarea.RSyntaxDocument doc, String output)
-
Field Details
-
parser
-
result
private org.fife.ui.rsyntaxtextarea.parser.DefaultParseResult result -
MARK_STRATEGIES
-
-
Constructor Details
-
JsHinter
private JsHinter(JavaScriptParser parser, org.fife.ui.rsyntaxtextarea.RSyntaxDocument doc, org.fife.ui.rsyntaxtextarea.parser.DefaultParseResult result)
-
-
Method Details
-
parse
public static void parse(JavaScriptParser parser, org.fife.ui.rsyntaxtextarea.RSyntaxTextArea textArea, org.fife.ui.rsyntaxtextarea.parser.DefaultParseResult result) throws IOException - Throws:
IOException
-
parseOutput
-
getMarkStrategy
-