Package org.fife.ui.rsyntaxtextarea
Interface TokenTypes
-
- All Known Subinterfaces:
Token
- All Known Implementing Classes:
SyntaxScheme,TokenImpl
public interface TokenTypesAll token types supported by RSyntaxTextArea.If you're creating your own
TokenMakerfor a new language, it's important to note that while most of these token types are used purely for styling information, thatTokenTypes.SEPARATORis given special treatment in this library. Specifically, many utility methods assume that tokens such as curly braces and square brackets are identified as typeSEPARATOR. For example,RSyntaxTextArea.setPaintMatchedBracketPairmakes this assumption.Note that all valid token types are >= 0, so extensions of the TokenMaker class are free to internally use all ints < 0 ONLY for "end-of-line" style markers; they are ignored by painting implementations.
- Version:
- 1.0
-
-
Field Summary
Fields Modifier and Type Field Description static intANNOTATIONstatic intCOMMENT_DOCUMENTATIONstatic intCOMMENT_EOLstatic intCOMMENT_KEYWORDstatic intCOMMENT_MARKUPstatic intCOMMENT_MULTILINEstatic intDATA_TYPEstatic intDEFAULT_NUM_TOKEN_TYPESstatic intERROR_CHARstatic intERROR_IDENTIFIERstatic intERROR_NUMBER_FORMATstatic intERROR_STRING_DOUBLEstatic intFUNCTIONstatic intIDENTIFIERstatic intLITERAL_BACKQUOTEstatic intLITERAL_BOOLEANstatic intLITERAL_CHARstatic intLITERAL_NUMBER_DECIMAL_INTstatic intLITERAL_NUMBER_FLOATstatic intLITERAL_NUMBER_HEXADECIMALstatic intLITERAL_STRING_DOUBLE_QUOTEstatic intMARKUP_CDATAstatic intMARKUP_CDATA_DELIMITERstatic intMARKUP_COMMENTstatic intMARKUP_DTDstatic intMARKUP_ENTITY_REFERENCEstatic intMARKUP_PROCESSING_INSTRUCTIONstatic intMARKUP_TAG_ATTRIBUTEstatic intMARKUP_TAG_ATTRIBUTE_VALUEstatic intMARKUP_TAG_DELIMITERstatic intMARKUP_TAG_NAMEstatic intNULLTokens of typeNULLmark the end of lines with no multi-line token at the end being continued to the next line, for example, being in the middle of a block comment in Java.static intOPERATORstatic intPREPROCESSORstatic intREGEXstatic intRESERVED_WORDstatic intRESERVED_WORD_2static intSEPARATORSeparators are typically single-character tokens such as parens brackets and braces ([,],{,}, etc.).static intVARIABLEstatic intWHITESPACE
-
-
-
Field Detail
-
NULL
static final int NULL
Tokens of typeNULLmark the end of lines with no multi-line token at the end being continued to the next line, for example, being in the middle of a block comment in Java.- See Also:
- Constant Field Values
-
COMMENT_EOL
static final int COMMENT_EOL
- See Also:
- Constant Field Values
-
COMMENT_MULTILINE
static final int COMMENT_MULTILINE
- See Also:
- Constant Field Values
-
COMMENT_DOCUMENTATION
static final int COMMENT_DOCUMENTATION
- See Also:
- Constant Field Values
-
COMMENT_KEYWORD
static final int COMMENT_KEYWORD
- See Also:
- Constant Field Values
-
COMMENT_MARKUP
static final int COMMENT_MARKUP
- See Also:
- Constant Field Values
-
RESERVED_WORD
static final int RESERVED_WORD
- See Also:
- Constant Field Values
-
RESERVED_WORD_2
static final int RESERVED_WORD_2
- See Also:
- Constant Field Values
-
FUNCTION
static final int FUNCTION
- See Also:
- Constant Field Values
-
LITERAL_BOOLEAN
static final int LITERAL_BOOLEAN
- See Also:
- Constant Field Values
-
LITERAL_NUMBER_DECIMAL_INT
static final int LITERAL_NUMBER_DECIMAL_INT
- See Also:
- Constant Field Values
-
LITERAL_NUMBER_FLOAT
static final int LITERAL_NUMBER_FLOAT
- See Also:
- Constant Field Values
-
LITERAL_NUMBER_HEXADECIMAL
static final int LITERAL_NUMBER_HEXADECIMAL
- See Also:
- Constant Field Values
-
LITERAL_STRING_DOUBLE_QUOTE
static final int LITERAL_STRING_DOUBLE_QUOTE
- See Also:
- Constant Field Values
-
LITERAL_CHAR
static final int LITERAL_CHAR
- See Also:
- Constant Field Values
-
LITERAL_BACKQUOTE
static final int LITERAL_BACKQUOTE
- See Also:
- Constant Field Values
-
DATA_TYPE
static final int DATA_TYPE
- See Also:
- Constant Field Values
-
VARIABLE
static final int VARIABLE
- See Also:
- Constant Field Values
-
REGEX
static final int REGEX
- See Also:
- Constant Field Values
-
ANNOTATION
static final int ANNOTATION
- See Also:
- Constant Field Values
-
IDENTIFIER
static final int IDENTIFIER
- See Also:
- Constant Field Values
-
WHITESPACE
static final int WHITESPACE
- See Also:
- Constant Field Values
-
SEPARATOR
static final int SEPARATOR
Separators are typically single-character tokens such as parens brackets and braces ([,],{,}, etc.). In particular, brackets and braces must be of this token type for bracket matching to work.- See Also:
- Constant Field Values
-
OPERATOR
static final int OPERATOR
- See Also:
- Constant Field Values
-
PREPROCESSOR
static final int PREPROCESSOR
- See Also:
- Constant Field Values
-
MARKUP_TAG_DELIMITER
static final int MARKUP_TAG_DELIMITER
- See Also:
- Constant Field Values
-
MARKUP_TAG_NAME
static final int MARKUP_TAG_NAME
- See Also:
- Constant Field Values
-
MARKUP_TAG_ATTRIBUTE
static final int MARKUP_TAG_ATTRIBUTE
- See Also:
- Constant Field Values
-
MARKUP_TAG_ATTRIBUTE_VALUE
static final int MARKUP_TAG_ATTRIBUTE_VALUE
- See Also:
- Constant Field Values
-
MARKUP_COMMENT
static final int MARKUP_COMMENT
- See Also:
- Constant Field Values
-
MARKUP_DTD
static final int MARKUP_DTD
- See Also:
- Constant Field Values
-
MARKUP_PROCESSING_INSTRUCTION
static final int MARKUP_PROCESSING_INSTRUCTION
- See Also:
- Constant Field Values
-
MARKUP_CDATA_DELIMITER
static final int MARKUP_CDATA_DELIMITER
- See Also:
- Constant Field Values
-
MARKUP_CDATA
static final int MARKUP_CDATA
- See Also:
- Constant Field Values
-
MARKUP_ENTITY_REFERENCE
static final int MARKUP_ENTITY_REFERENCE
- See Also:
- Constant Field Values
-
ERROR_IDENTIFIER
static final int ERROR_IDENTIFIER
- See Also:
- Constant Field Values
-
ERROR_NUMBER_FORMAT
static final int ERROR_NUMBER_FORMAT
- See Also:
- Constant Field Values
-
ERROR_STRING_DOUBLE
static final int ERROR_STRING_DOUBLE
- See Also:
- Constant Field Values
-
ERROR_CHAR
static final int ERROR_CHAR
- See Also:
- Constant Field Values
-
DEFAULT_NUM_TOKEN_TYPES
static final int DEFAULT_NUM_TOKEN_TYPES
- See Also:
- Constant Field Values
-
-