Eclipse Platform & Tools v3.6

org.eclipse.cdt.core.parser
Interface IToken

All Known Subinterfaces:
IGCCToken, IInactiveCodeToken
All Known Implementing Classes:
InactiveCodeToken, MacroExpander.ExpansionBoundary, Token, TokenForDigraph, TokenWithImage

public interface IToken


Field Summary
static int FIRST_RESERVED_IExtensionToken
           
static int FIRST_RESERVED_IGCCToken
           
static int FIRST_RESERVED_PREPROCESSOR
           
static int FIRST_RESERVED_SCANNER
           
static int LAST_RESERVED_IExtensionToken
           
static int LAST_RESERVED_IGCCToken
           
static int LAST_RESERVED_PREPROCESSOR
           
static int LAST_RESERVED_SCANNER
           
static int t__Bool
           
static int t__Complex
           
static int t__Imaginary
           
static int t_and
          Deprecated. use tAND
static int t_and_eq
          Deprecated. use tAMPERASSIGN
static int t_asm
           
static int t_auto
           
static int t_bitand
          Deprecated. use tAMPER
static int t_bitor
          Deprecated. use tBITOR
static int t_bool
           
static int t_break
           
static int t_case
           
static int t_catch
           
static int t_char
           
static int t_char16_t
           
static int t_char32_t
           
static int t_class
           
static int t_compl
          Deprecated. use tBITCOMPLEMENT
static int t_const
           
static int t_const_cast
           
static int t_continue
           
static int t_decltype
           
static int t_default
           
static int t_delete
           
static int t_do
           
static int t_double
           
static int t_dynamic_cast
           
static int t_else
           
static int t_enum
           
static int t_explicit
           
static int t_export
           
static int t_extern
           
static int t_false
           
static int t_float
           
static int t_for
           
static int t_friend
           
static int t_goto
           
static int t_if
           
static int t_inline
           
static int t_int
           
static int t_long
           
static int t_mutable
           
static int t_namespace
           
static int t_new
           
static int t_not
          Deprecated. use tNOT
static int t_not_eq
          Deprecated. use tNOTEQUAL
static int t_operator
           
static int t_or
          Deprecated. use tOR
static int t_or_eq
          Deprecated. use tBITORASSIGN
static int t_PRAGMA
           
static int t_private
           
static int t_protected
           
static int t_public
           
static int t_register
           
static int t_reinterpret_cast
           
static int t_restrict
           
static int t_return
           
static int t_short
           
static int t_signed
           
static int t_sizeof
           
static int t_static
           
static int t_static_assert
           
static int t_static_cast
           
static int t_struct
           
static int t_switch
           
static int t_template
           
static int t_this
           
static int t_throw
           
static int t_true
           
static int t_try
           
static int t_typedef
           
static int t_typeid
           
static int t_typename
           
static int t_union
           
static int t_unsigned
           
static int t_using
           
static int t_virtual
           
static int t_void
           
static int t_volatile
           
static int t_wchar_t
           
static int t_while
           
static int t_xor
          Deprecated. use tXOR
static int t_xor_eq
          Deprecated. use tXORASSIGN
static int tAMPER
           
static int tAMPERASSIGN
           
static int tAND
           
static int tARROW
           
static int tARROWSTAR
           
static int tASSIGN
           
static int tBITCOMPLEMENT
           
static int tBITOR
           
static int tBITORASSIGN
           
static int tBLOCKCOMMENT
          Deprecated. don't use it
static int tCHAR
           
static int tCOLON
           
static int tCOLONCOLON
           
static int tCOMMA
           
static int tCOMMENT
          Deprecated. don't use it
static int tCOMPL
          Deprecated. use tBITCOMPLEMENT
static int tCOMPLETION
           
static int tDECR
           
static int tDIV
           
static int tDIVASSIGN
           
static int tDOT
           
static int tDOTSTAR
           
static int tELLIPSIS
           
static int tEND_OF_INPUT
           
static int tEOC
           
static int tEQUAL
           
static int tFLOATINGPT
           
static int tGT
           
static int tGT_in_SHIFTR
           
static int tGTEQUAL
           
static int tIDENTIFIER
           
static int tINACTIVE_CODE_END
           
static int tINACTIVE_CODE_SEPARATOR
           
static int tINACTIVE_CODE_START
           
static int tINCR
           
static int tINTEGER
           
static int tLBRACE
           
static int tLBRACKET
           
static int tLCHAR
           
static int tLPAREN
           
static int tLSTRING
           
static int tLT
           
static int tLTEQUAL
           
static int tMACROEXP
          Deprecated. don't use it
static int tMINUS
           
static int tMINUSASSIGN
           
static int tMOD
           
static int tMODASSIGN
           
static int tNOT
           
static int tNOTEQUAL
           
static int tOR
           
static int tPLUS
           
static int tPLUSASSIGN
           
static int tPOUND
           
static int tPOUNDPOUND
           
static int tQUESTION
           
static int tRBRACE
           
static int tRBRACKET
           
static int tRPAREN
           
static int tSEMI
           
static int tSHIFTL
           
static int tSHIFTLASSIGN
           
static int tSHIFTR
           
static int tSHIFTRASSIGN
           
static int tSTAR
           
static int tSTARASSIGN
           
static int tSTRING
           
static int tUNKNOWN_CHAR
           
static int tUTF16CHAR
           
static int tUTF16STRING
           
static int tUTF32CHAR
           
static int tUTF32STRING
           
static int tXOR
           
static int tXORASSIGN
           
 
Method Summary
 char[] getCharImage()
           
 int getEndOffset()
           
 String getImage()
           
 int getLength()
           
 IToken getNext()
           
 int getOffset()
           
 int getType()
           
 boolean isOperator()
          Deprecated. 
 void setNext(IToken t)
           
 void setType(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_and

@Deprecated
static final int t_and
Deprecated. use tAND
See Also:
Constant Field Values

t_and_eq

@Deprecated
static final int t_and_eq
Deprecated. use tAMPERASSIGN
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_bitand

@Deprecated
static final int t_bitand
Deprecated. use tAMPER
See Also:
Constant Field Values

t_bitor

@Deprecated
static final int t_bitor
Deprecated. use tBITOR
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

tCOMPL

@Deprecated
static final int tCOMPL
Deprecated. use tBITCOMPLEMENT
See Also:
Constant Field Values

t_compl

@Deprecated
static final int t_compl
Deprecated. use tBITCOMPLEMENT
See Also:
Constant Field Values

t_const

static final int t_const
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_not

@Deprecated
static final int t_not
Deprecated. use tNOT
See Also:
Constant Field Values

t_not_eq

@Deprecated
static final int t_not_eq
Deprecated. use tNOTEQUAL
See Also:
Constant Field Values

t_operator

static final int t_operator
See Also:
Constant Field Values

t_or

@Deprecated
static final int t_or
Deprecated. use tOR
See Also:
Constant Field Values

t_or_eq

@Deprecated
static final int t_or_eq
Deprecated. use tBITORASSIGN
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_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

t_xor

@Deprecated
static final int t_xor
Deprecated. use tXOR
See Also:
Constant Field Values

t_xor_eq

@Deprecated
static final int t_xor_eq
Deprecated. use tXORASSIGN
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

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

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

tMACROEXP

@Deprecated
static final int tMACROEXP
Deprecated. don't use it
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

tCOMMENT

@Deprecated
static final int tCOMMENT
Deprecated. don't use it
See Also:
Constant Field Values

tBLOCKCOMMENT

@Deprecated
static final int tBLOCKCOMMENT
Deprecated. don't use it
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
Method Detail

getType

int getType()

getImage

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. 


Eclipse Platform & Tools v3.6