Package org.eclipse.cdt.core.parser
Interface IToken
-
- All Known Subinterfaces:
IGCCToken,IInactiveCodeToken
public interface IToken- Restriction:
- This interface is not intended to be implemented by clients.
- Restriction:
- This interface is not intended to be extended by clients.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classIToken.ContextSensitiveTokenTypeToken types for context-sensitive tokens.
-
Field Summary
Fields Modifier and Type Field Description static intFIRST_RESERVED_IExtensionTokenstatic intFIRST_RESERVED_IGCCTokenstatic intFIRST_RESERVED_PREPROCESSORstatic intFIRST_RESERVED_SCANNERstatic intLAST_RESERVED_IExtensionTokenstatic intLAST_RESERVED_IGCCTokenstatic intLAST_RESERVED_PREPROCESSORstatic intLAST_RESERVED_SCANNERstatic intt__Alignasstatic intt__Alignofstatic intt__Boolstatic intt__Complexstatic intt__Imaginarystatic intt_alignasstatic intt_alignofstatic intt_andDeprecated.UsetAND.static intt_and_eqDeprecated.UsetAMPERASSIGN.static intt_asmstatic intt_autostatic intt_bitandDeprecated.UsetAMPER.static intt_bitorDeprecated.UsetBITOR.static intt_boolstatic intt_breakstatic intt_casestatic intt_catchstatic intt_charstatic intt_char16_tstatic intt_char32_tstatic intt_classstatic intt_complDeprecated.UsetBITCOMPLEMENT.static intt_conststatic intt_const_caststatic intt_constexprstatic intt_continuestatic intt_decltypestatic intt_defaultstatic intt_deletestatic intt_dostatic intt_doublestatic intt_dynamic_caststatic intt_elsestatic intt_enumstatic intt_explicitstatic intt_exportstatic intt_externstatic intt_falsestatic intt_floatstatic intt_forstatic intt_friendstatic intt_gotostatic intt_ifstatic intt_inlinestatic intt_intstatic intt_longstatic intt_mutablestatic intt_namespacestatic intt_newstatic intt_noexceptstatic intt_notDeprecated.UsetNOT.static intt_not_eqDeprecated.UsetNOTEQUAL@noreference This field is not intended to be referenced by clients.static intt_nullptrstatic intt_operatorstatic intt_orDeprecated.UsetOR@noreference This field is not intended to be referenced by clients.static intt_or_eqDeprecated.UsetBITORASSIGN.static intt_PRAGMAstatic intt_privatestatic intt_protectedstatic intt_publicstatic intt_registerstatic intt_reinterpret_caststatic intt_restrictstatic intt_returnstatic intt_shortstatic intt_signedstatic intt_sizeofstatic intt_staticstatic intt_static_assertstatic intt_static_caststatic intt_structstatic intt_switchstatic intt_templatestatic intt_thisstatic intt_thread_localstatic intt_throwstatic intt_truestatic intt_trystatic intt_typedefstatic intt_typeidstatic intt_typenamestatic intt_unionstatic intt_unsignedstatic intt_usingstatic intt_virtualstatic intt_voidstatic intt_volatilestatic intt_wchar_tstatic intt_whilestatic intt_xorDeprecated.UsetXOR.static intt_xor_eqDeprecated.UsetXORASSIGN.static inttAMPERstatic inttAMPERASSIGNstatic inttANDstatic inttARROWstatic inttARROWSTARstatic inttASSIGNstatic inttBITCOMPLEMENTstatic inttBITORstatic inttBITORASSIGNstatic inttBLOCKCOMMENTDeprecated.Not used.static inttCHARstatic inttCOLONstatic inttCOLONCOLONstatic inttCOMMAstatic inttCOMMENTDeprecated.Not used.static inttCOMPLDeprecated.UsetBITCOMPLEMENT.static inttCOMPLETIONstatic inttDECRstatic inttDIVstatic inttDIVASSIGNstatic inttDOTstatic inttDOTSTARstatic inttELLIPSISstatic inttEND_OF_INPUTstatic inttEOCstatic inttEQUALstatic inttFLOATINGPTstatic inttGTstatic inttGT_in_SHIFTRstatic inttGTEQUALstatic inttIDENTIFIERstatic inttINACTIVE_CODE_ENDstatic inttINACTIVE_CODE_SEPARATORstatic inttINACTIVE_CODE_STARTstatic inttINCRstatic inttINTEGERstatic inttLBRACEstatic inttLBRACKETstatic inttLCHARstatic inttLPARENstatic inttLSTRINGstatic inttLTstatic inttLTEQUALstatic inttMACROEXPDeprecated.Not used.static inttMINUSstatic inttMINUSASSIGNstatic inttMODstatic inttMODASSIGNstatic inttNOTstatic inttNOTEQUALstatic inttORstatic inttPLUSstatic inttPLUSASSIGNstatic inttPOUNDstatic inttPOUNDPOUNDstatic inttQUESTIONstatic inttRBRACEstatic inttRBRACKETstatic inttRPARENstatic inttSEMIstatic inttSHIFTLstatic inttSHIFTLASSIGNstatic inttSHIFTRstatic inttSHIFTRASSIGNstatic inttSTARstatic inttSTARASSIGNstatic inttSTRINGstatic inttUNKNOWN_CHARstatic inttUSER_DEFINED_CHAR_LITERALstatic inttUSER_DEFINED_STRING_LITERALstatic inttUTF16CHARstatic inttUTF16STRINGstatic inttUTF32CHARstatic inttUTF32STRINGstatic inttXORstatic inttXORASSIGN
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description char[]getCharImage()intgetEndOffset()java.lang.StringgetImage()intgetLength()ITokengetNext()intgetOffset()intgetType()booleanisOperator()Deprecated.voidsetNext(IToken t)voidsetType(int i)
-
-
-
Field Detail
-
FIRST_RESERVED_PREPROCESSOR
static final int FIRST_RESERVED_PREPROCESSOR
- See Also:
- Constant Field Values
-
LAST_RESERVED_PREPROCESSOR
static final int LAST_RESERVED_PREPROCESSOR
- See Also:
- Constant Field Values
-
FIRST_RESERVED_SCANNER
static final int FIRST_RESERVED_SCANNER
- See Also:
- Constant Field Values
-
LAST_RESERVED_SCANNER
static final int LAST_RESERVED_SCANNER
- See Also:
- Constant Field Values
-
t_PRAGMA
static final int t_PRAGMA
- Since:
- 5.2
- See Also:
- Constant Field Values
-
tIDENTIFIER
static final int tIDENTIFIER
- See Also:
- Constant Field Values
-
tINTEGER
static final int tINTEGER
- See Also:
- Constant Field Values
-
tCOLONCOLON
static final int tCOLONCOLON
- See Also:
- Constant Field Values
-
tCOLON
static final int tCOLON
- See Also:
- Constant Field Values
-
tSEMI
static final int tSEMI
- See Also:
- Constant Field Values
-
tCOMMA
static final int tCOMMA
- See Also:
- Constant Field Values
-
tQUESTION
static final int tQUESTION
- See Also:
- Constant Field Values
-
tLPAREN
static final int tLPAREN
- See Also:
- Constant Field Values
-
tRPAREN
static final int tRPAREN
- See Also:
- Constant Field Values
-
tLBRACKET
static final int tLBRACKET
- See Also:
- Constant Field Values
-
tRBRACKET
static final int tRBRACKET
- See Also:
- Constant Field Values
-
tLBRACE
static final int tLBRACE
- See Also:
- Constant Field Values
-
tRBRACE
static final int tRBRACE
- See Also:
- Constant Field Values
-
tPLUSASSIGN
static final int tPLUSASSIGN
- See Also:
- Constant Field Values
-
tINCR
static final int tINCR
- See Also:
- Constant Field Values
-
tPLUS
static final int tPLUS
- See Also:
- Constant Field Values
-
tMINUSASSIGN
static final int tMINUSASSIGN
- See Also:
- Constant Field Values
-
tDECR
static final int tDECR
- See Also:
- Constant Field Values
-
tARROWSTAR
static final int tARROWSTAR
- See Also:
- Constant Field Values
-
tARROW
static final int tARROW
- See Also:
- Constant Field Values
-
tMINUS
static final int tMINUS
- See Also:
- Constant Field Values
-
tSTARASSIGN
static final int tSTARASSIGN
- See Also:
- Constant Field Values
-
tSTAR
static final int tSTAR
- See Also:
- Constant Field Values
-
tMODASSIGN
static final int tMODASSIGN
- See Also:
- Constant Field Values
-
tMOD
static final int tMOD
- See Also:
- Constant Field Values
-
tXORASSIGN
static final int tXORASSIGN
- See Also:
- Constant Field Values
-
tXOR
static final int tXOR
- See Also:
- Constant Field Values
-
tAMPERASSIGN
static final int tAMPERASSIGN
- See Also:
- Constant Field Values
-
tAND
static final int tAND
- See Also:
- Constant Field Values
-
tAMPER
static final int tAMPER
- See Also:
- Constant Field Values
-
tBITORASSIGN
static final int tBITORASSIGN
- See Also:
- Constant Field Values
-
tOR
static final int tOR
- See Also:
- Constant Field Values
-
tBITOR
static final int tBITOR
- See Also:
- Constant Field Values
-
tBITCOMPLEMENT
static final int tBITCOMPLEMENT
- See Also:
- Constant Field Values
-
tNOTEQUAL
static final int tNOTEQUAL
- See Also:
- Constant Field Values
-
tNOT
static final int tNOT
- See Also:
- Constant Field Values
-
tEQUAL
static final int tEQUAL
- See Also:
- Constant Field Values
-
tASSIGN
static final int tASSIGN
- See Also:
- Constant Field Values
-
tUNKNOWN_CHAR
static final int tUNKNOWN_CHAR
- See Also:
- Constant Field Values
-
tSHIFTL
static final int tSHIFTL
- See Also:
- Constant Field Values
-
tLTEQUAL
static final int tLTEQUAL
- See Also:
- Constant Field Values
-
tLT
static final int tLT
- See Also:
- Constant Field Values
-
tSHIFTRASSIGN
static final int tSHIFTRASSIGN
- See Also:
- Constant Field Values
-
tSHIFTR
static final int tSHIFTR
- See Also:
- Constant Field Values
-
tGTEQUAL
static final int tGTEQUAL
- See Also:
- Constant Field Values
-
tGT
static final int tGT
- See Also:
- Constant Field Values
-
tSHIFTLASSIGN
static final int tSHIFTLASSIGN
- See Also:
- Constant Field Values
-
tELLIPSIS
static final int tELLIPSIS
- See Also:
- Constant Field Values
-
tDOTSTAR
static final int tDOTSTAR
- See Also:
- Constant Field Values
-
tDOT
static final int tDOT
- See Also:
- Constant Field Values
-
tDIVASSIGN
static final int tDIVASSIGN
- See Also:
- Constant Field Values
-
tDIV
static final int tDIV
- See Also:
- Constant Field Values
-
tGT_in_SHIFTR
static final int tGT_in_SHIFTR
- Since:
- 5.2
- See Also:
IScanner.setSplitShiftROperator(boolean), Constant Field Values
-
t_alignas
static final int t_alignas
- Since:
- 5.10
- See Also:
- Constant Field Values
-
t_alignof
static final int t_alignof
- Since:
- 5.10
- See Also:
- Constant Field Values
-
t_asm
static final int t_asm
- See Also:
- Constant Field Values
-
t_auto
static final int t_auto
- See Also:
- Constant Field Values
-
t_bool
static final int t_bool
- See Also:
- Constant Field Values
-
t_break
static final int t_break
- See Also:
- Constant Field Values
-
t_case
static final int t_case
- See Also:
- Constant Field Values
-
t_catch
static final int t_catch
- See Also:
- Constant Field Values
-
t_char
static final int t_char
- See Also:
- Constant Field Values
-
t_char16_t
static final int t_char16_t
- Since:
- 5.2
- See Also:
- Constant Field Values
-
t_char32_t
static final int t_char32_t
- Since:
- 5.2
- See Also:
- Constant Field Values
-
t_class
static final int t_class
- See Also:
- Constant Field Values
-
t_const
static final int t_const
- See Also:
- Constant Field Values
-
t_constexpr
static final int t_constexpr
- Since:
- 5.4
- See Also:
- Constant Field Values
-
t_const_cast
static final int t_const_cast
- See Also:
- Constant Field Values
-
t_continue
static final int t_continue
- See Also:
- Constant Field Values
-
t_decltype
static final int t_decltype
- Since:
- 5.2
- See Also:
- Constant Field Values
-
t_default
static final int t_default
- See Also:
- Constant Field Values
-
t_delete
static final int t_delete
- See Also:
- Constant Field Values
-
t_do
static final int t_do
- See Also:
- Constant Field Values
-
t_double
static final int t_double
- See Also:
- Constant Field Values
-
t_dynamic_cast
static final int t_dynamic_cast
- See Also:
- Constant Field Values
-
t_else
static final int t_else
- See Also:
- Constant Field Values
-
t_enum
static final int t_enum
- See Also:
- Constant Field Values
-
t_explicit
static final int t_explicit
- See Also:
- Constant Field Values
-
t_export
static final int t_export
- See Also:
- Constant Field Values
-
t_extern
static final int t_extern
- See Also:
- Constant Field Values
-
t_false
static final int t_false
- See Also:
- Constant Field Values
-
t_float
static final int t_float
- See Also:
- Constant Field Values
-
t_for
static final int t_for
- See Also:
- Constant Field Values
-
t_friend
static final int t_friend
- See Also:
- Constant Field Values
-
t_goto
static final int t_goto
- See Also:
- Constant Field Values
-
t_if
static final int t_if
- See Also:
- Constant Field Values
-
t_inline
static final int t_inline
- See Also:
- Constant Field Values
-
t_int
static final int t_int
- See Also:
- Constant Field Values
-
t_long
static final int t_long
- See Also:
- Constant Field Values
-
t_mutable
static final int t_mutable
- See Also:
- Constant Field Values
-
t_namespace
static final int t_namespace
- See Also:
- Constant Field Values
-
t_new
static final int t_new
- See Also:
- Constant Field Values
-
t_noexcept
static final int t_noexcept
- Since:
- 5.4
- See Also:
- Constant Field Values
-
t_nullptr
static final int t_nullptr
- Since:
- 5.4
- See Also:
- Constant Field Values
-
t_operator
static final int t_operator
- See Also:
- Constant Field Values
-
t_private
static final int t_private
- See Also:
- Constant Field Values
-
t_protected
static final int t_protected
- See Also:
- Constant Field Values
-
t_public
static final int t_public
- See Also:
- Constant Field Values
-
t_register
static final int t_register
- See Also:
- Constant Field Values
-
t_reinterpret_cast
static final int t_reinterpret_cast
- See Also:
- Constant Field Values
-
t_return
static final int t_return
- See Also:
- Constant Field Values
-
t_short
static final int t_short
- See Also:
- Constant Field Values
-
t_sizeof
static final int t_sizeof
- See Also:
- Constant Field Values
-
t_static
static final int t_static
- See Also:
- Constant Field Values
-
t_static_assert
static final int t_static_assert
- Since:
- 5.2
- See Also:
- Constant Field Values
-
t_static_cast
static final int t_static_cast
- See Also:
- Constant Field Values
-
t_signed
static final int t_signed
- See Also:
- Constant Field Values
-
t_struct
static final int t_struct
- See Also:
- Constant Field Values
-
t_switch
static final int t_switch
- See Also:
- Constant Field Values
-
t_template
static final int t_template
- See Also:
- Constant Field Values
-
t_this
static final int t_this
- See Also:
- Constant Field Values
-
t_thread_local
static final int t_thread_local
- Since:
- 5.4
- See Also:
- Constant Field Values
-
t_throw
static final int t_throw
- See Also:
- Constant Field Values
-
t_true
static final int t_true
- See Also:
- Constant Field Values
-
t_try
static final int t_try
- See Also:
- Constant Field Values
-
t_typedef
static final int t_typedef
- See Also:
- Constant Field Values
-
t_typeid
static final int t_typeid
- See Also:
- Constant Field Values
-
t_typename
static final int t_typename
- See Also:
- Constant Field Values
-
t_union
static final int t_union
- See Also:
- Constant Field Values
-
t_unsigned
static final int t_unsigned
- See Also:
- Constant Field Values
-
t_using
static final int t_using
- See Also:
- Constant Field Values
-
t_virtual
static final int t_virtual
- See Also:
- Constant Field Values
-
t_void
static final int t_void
- See Also:
- Constant Field Values
-
t_volatile
static final int t_volatile
- See Also:
- Constant Field Values
-
t_wchar_t
static final int t_wchar_t
- See Also:
- Constant Field Values
-
t_while
static final int t_while
- See Also:
- Constant Field Values
-
tFLOATINGPT
static final int tFLOATINGPT
- See Also:
- Constant Field Values
-
tSTRING
static final int tSTRING
- See Also:
- Constant Field Values
-
tLSTRING
static final int tLSTRING
- See Also:
- Constant Field Values
-
tUTF16STRING
static final int tUTF16STRING
- Since:
- 5.1
- See Also:
- Constant Field Values
-
tUTF32STRING
static final int tUTF32STRING
- Since:
- 5.1
- See Also:
- Constant Field Values
-
tUSER_DEFINED_STRING_LITERAL
static final int tUSER_DEFINED_STRING_LITERAL
- Since:
- 5.11
- See Also:
- Constant Field Values
-
tCHAR
static final int tCHAR
- See Also:
- Constant Field Values
-
tLCHAR
static final int tLCHAR
- See Also:
- Constant Field Values
-
tUTF16CHAR
static final int tUTF16CHAR
- Since:
- 5.1
- See Also:
- Constant Field Values
-
tUTF32CHAR
static final int tUTF32CHAR
- Since:
- 5.1
- See Also:
- Constant Field Values
-
tUSER_DEFINED_CHAR_LITERAL
static final int tUSER_DEFINED_CHAR_LITERAL
- Since:
- 5.11
- See Also:
- Constant Field Values
-
t__Alignas
static final int t__Alignas
- Since:
- 5.10
- See Also:
- Constant Field Values
-
t__Alignof
static final int t__Alignof
- Since:
- 5.10
- See Also:
- Constant Field Values
-
t__Bool
static final int t__Bool
- See Also:
- Constant Field Values
-
t__Complex
static final int t__Complex
- See Also:
- Constant Field Values
-
t__Imaginary
static final int t__Imaginary
- See Also:
- Constant Field Values
-
t_restrict
static final int t_restrict
- See Also:
- Constant Field Values
-
tPOUND
static final int tPOUND
- See Also:
- Constant Field Values
-
tPOUNDPOUND
static final int tPOUNDPOUND
- See Also:
- Constant Field Values
-
tCOMPLETION
static final int tCOMPLETION
- See Also:
- Constant Field Values
-
tEOC
static final int tEOC
- See Also:
- Constant Field Values
-
tEND_OF_INPUT
static final int tEND_OF_INPUT
- See Also:
- Constant Field Values
-
tINACTIVE_CODE_START
static final int tINACTIVE_CODE_START
- Since:
- 5.1
- See Also:
- Constant Field Values
-
tINACTIVE_CODE_SEPARATOR
static final int tINACTIVE_CODE_SEPARATOR
- Since:
- 5.1
- See Also:
- Constant Field Values
-
tINACTIVE_CODE_END
static final int tINACTIVE_CODE_END
- Since:
- 5.1
- See Also:
- Constant Field Values
-
FIRST_RESERVED_IGCCToken
static final int FIRST_RESERVED_IGCCToken
- See Also:
- Constant Field Values
-
LAST_RESERVED_IGCCToken
static final int LAST_RESERVED_IGCCToken
- See Also:
- Constant Field Values
-
FIRST_RESERVED_IExtensionToken
static final int FIRST_RESERVED_IExtensionToken
- See Also:
- Constant Field Values
-
LAST_RESERVED_IExtensionToken
static final int LAST_RESERVED_IExtensionToken
- See Also:
- Constant Field Values
-
t_and
@Deprecated static final int t_and
Deprecated.UsetAND. @noreference This field is not intended to be referenced by clients.- See Also:
- Constant Field Values
-
t_and_eq
@Deprecated static final int t_and_eq
Deprecated.UsetAMPERASSIGN. @noreference This field is not intended to be referenced by clients.- See Also:
- Constant Field Values
-
t_bitand
@Deprecated static final int t_bitand
Deprecated.UsetAMPER. @noreference This field is not intended to be referenced by clients.- See Also:
- Constant Field Values
-
t_bitor
@Deprecated static final int t_bitor
Deprecated.UsetBITOR. @noreference This field is not intended to be referenced by clients.- See Also:
- Constant Field Values
-
tCOMPL
@Deprecated static final int tCOMPL
Deprecated.UsetBITCOMPLEMENT. @noreference This field is not intended to be referenced by clients.- See Also:
- Constant Field Values
-
t_compl
@Deprecated static final int t_compl
Deprecated.UsetBITCOMPLEMENT. @noreference This field is not intended to be referenced by clients.- See Also:
- Constant Field Values
-
t_not
@Deprecated static final int t_not
Deprecated.UsetNOT. @noreference This field is not intended to be referenced by clients.- See Also:
- Constant Field Values
-
t_not_eq
@Deprecated static final int t_not_eq
Deprecated.UsetNOTEQUAL@noreference This field is not intended to be referenced by clients.- See Also:
- Constant Field Values
-
t_or
@Deprecated static final int t_or
Deprecated.UsetOR@noreference This field is not intended to be referenced by clients.- See Also:
- Constant Field Values
-
t_or_eq
@Deprecated static final int t_or_eq
Deprecated.UsetBITORASSIGN. @noreference This field is not intended to be referenced by clients.- See Also:
- Constant Field Values
-
t_xor
@Deprecated static final int t_xor
Deprecated.UsetXOR. @noreference This field is not intended to be referenced by clients.- See Also:
- Constant Field Values
-
t_xor_eq
@Deprecated static final int t_xor_eq
Deprecated.UsetXORASSIGN. @noreference This field is not intended to be referenced by clients.- See Also:
- Constant Field Values
-
tMACROEXP
@Deprecated static final int tMACROEXP
Deprecated.Not used. @noreference This field is not intended to be referenced by clients.- See Also:
- Constant Field Values
-
tCOMMENT
@Deprecated static final int tCOMMENT
Deprecated.Not used. @noreference This field is not intended to be referenced by clients.- See Also:
- Constant Field Values
-
tBLOCKCOMMENT
@Deprecated static final int tBLOCKCOMMENT
Deprecated.Not used. @noreference This field is not intended to be referenced by clients.- See Also:
- Constant Field Values
-
-
Method Detail
-
getType
int getType()
-
getImage
java.lang.String getImage()
-
getCharImage
char[] getCharImage()
-
getOffset
int getOffset()
-
getLength
int getLength()
-
getEndOffset
int getEndOffset()
-
getNext
IToken getNext()
-
setNext
void setNext(IToken t)
-
setType
void setType(int i)
-
isOperator
@Deprecated boolean isOperator()
Deprecated.- Restriction:
- This method is not intended to be referenced by clients.
-
-