|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.basex.gui.editor.SyntaxJSON
public final class SyntaxJSON
This class defines syntax highlighting for JSON files.
Field Summary | |
---|---|
protected static java.awt.Color |
COMMENT
Comment color. |
protected static java.awt.Color |
FUNCTION
Function color. |
protected static java.awt.Color |
KEYWORD
Keyword color. |
protected static java.awt.Color |
STRING
String color. |
protected static java.awt.Color |
TEXT
Standard color. |
protected static java.awt.Color |
VARIABLE
Variable color. |
Constructor Summary | |
---|---|
SyntaxJSON()
|
Method Summary | |
---|---|
byte[] |
commentEnd()
Returns the end of a comment. |
byte[] |
commentOpen()
Returns the start of a comment. |
java.awt.Color |
getColor(EditorText text)
Returns the color for the current token. |
void |
init()
Initializes the highlighter. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final java.awt.Color TEXT
protected static final java.awt.Color COMMENT
protected static final java.awt.Color STRING
protected static final java.awt.Color KEYWORD
protected static final java.awt.Color FUNCTION
protected static final java.awt.Color VARIABLE
Constructor Detail |
---|
public SyntaxJSON()
Method Detail |
---|
public void init()
public java.awt.Color getColor(EditorText text)
text
- tokenizer
public byte[] commentOpen()
public byte[] commentEnd()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |