org.eclipse.cdt.internal.formatter.scanner
Class Token
java.lang.Object
org.eclipse.cdt.internal.formatter.scanner.Token
public class Token
- extends java.lang.Object
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
type
public int type
text
public java.lang.String text
offset
public int offset
tWHITESPACE
public static final int tWHITESPACE
- See Also:
- Constant Field Values
tLINECOMMENT
public static final int tLINECOMMENT
- See Also:
- Constant Field Values
tBLOCKCOMMENT
public static final int tBLOCKCOMMENT
- See Also:
- Constant Field Values
tPREPROCESSOR
public static final int tPREPROCESSOR
- See Also:
- Constant Field Values
tPREPROCESSOR_INCLUDE
public static final int tPREPROCESSOR_INCLUDE
- See Also:
- Constant Field Values
tPREPROCESSOR_DEFINE
public static final int tPREPROCESSOR_DEFINE
- See Also:
- Constant Field Values
tBADCHAR
public static final int tBADCHAR
- See Also:
- Constant Field Values
tIDENTIFIER
public static final int tIDENTIFIER
- See Also:
- Constant Field Values
tINTEGER
public static final int tINTEGER
- See Also:
- Constant Field Values
tCOLONCOLON
public static final int tCOLONCOLON
- See Also:
- Constant Field Values
tCOLON
public static final int tCOLON
- See Also:
- Constant Field Values
tSEMI
public static final int tSEMI
- See Also:
- Constant Field Values
tCOMMA
public static final int tCOMMA
- See Also:
- Constant Field Values
tQUESTION
public static final int tQUESTION
- See Also:
- Constant Field Values
tLPAREN
public static final int tLPAREN
- See Also:
- Constant Field Values
tRPAREN
public static final int tRPAREN
- See Also:
- Constant Field Values
tLBRACKET
public static final int tLBRACKET
- See Also:
- Constant Field Values
tRBRACKET
public static final int tRBRACKET
- See Also:
- Constant Field Values
tLBRACE
public static final int tLBRACE
- See Also:
- Constant Field Values
tRBRACE
public static final int tRBRACE
- See Also:
- Constant Field Values
tPLUSASSIGN
public static final int tPLUSASSIGN
- See Also:
- Constant Field Values
tINCR
public static final int tINCR
- See Also:
- Constant Field Values
tPLUS
public static final int tPLUS
- See Also:
- Constant Field Values
tMINUSASSIGN
public static final int tMINUSASSIGN
- See Also:
- Constant Field Values
tDECR
public static final int tDECR
- See Also:
- Constant Field Values
tARROWSTAR
public static final int tARROWSTAR
- See Also:
- Constant Field Values
tARROW
public static final int tARROW
- See Also:
- Constant Field Values
tMINUS
public static final int tMINUS
- See Also:
- Constant Field Values
tSTARASSIGN
public static final int tSTARASSIGN
- See Also:
- Constant Field Values
tSTAR
public static final int tSTAR
- See Also:
- Constant Field Values
tMODASSIGN
public static final int tMODASSIGN
- See Also:
- Constant Field Values
tMOD
public static final int tMOD
- See Also:
- Constant Field Values
tXORASSIGN
public static final int tXORASSIGN
- See Also:
- Constant Field Values
tXOR
public static final int tXOR
- See Also:
- Constant Field Values
tAMPERASSIGN
public static final int tAMPERASSIGN
- See Also:
- Constant Field Values
tAND
public static final int tAND
- See Also:
- Constant Field Values
tAMPER
public static final int tAMPER
- See Also:
- Constant Field Values
tBITORASSIGN
public static final int tBITORASSIGN
- See Also:
- Constant Field Values
tOR
public static final int tOR
- See Also:
- Constant Field Values
tBITOR
public static final int tBITOR
- See Also:
- Constant Field Values
tCOMPL
public static final int tCOMPL
- See Also:
- Constant Field Values
tNOTEQUAL
public static final int tNOTEQUAL
- See Also:
- Constant Field Values
tNOT
public static final int tNOT
- See Also:
- Constant Field Values
tEQUAL
public static final int tEQUAL
- See Also:
- Constant Field Values
tASSIGN
public static final int tASSIGN
- See Also:
- Constant Field Values
tSHIFTL
public static final int tSHIFTL
- See Also:
- Constant Field Values
tLTEQUAL
public static final int tLTEQUAL
- See Also:
- Constant Field Values
tLT
public static final int tLT
- See Also:
- Constant Field Values
tSHIFTRASSIGN
public static final int tSHIFTRASSIGN
- See Also:
- Constant Field Values
tSHIFTR
public static final int tSHIFTR
- See Also:
- Constant Field Values
tGTEQUAL
public static final int tGTEQUAL
- See Also:
- Constant Field Values
tGT
public static final int tGT
- See Also:
- Constant Field Values
tSHIFTLASSIGN
public static final int tSHIFTLASSIGN
- See Also:
- Constant Field Values
tELIPSE
public static final int tELIPSE
- See Also:
- Constant Field Values
tDOTSTAR
public static final int tDOTSTAR
- See Also:
- Constant Field Values
tDOT
public static final int tDOT
- See Also:
- Constant Field Values
tDIVASSIGN
public static final int tDIVASSIGN
- See Also:
- Constant Field Values
tDIV
public static final int tDIV
- See Also:
- Constant Field Values
tCLASSNAME
public static final int tCLASSNAME
- See Also:
- Constant Field Values
t_and
public static final int t_and
- See Also:
- Constant Field Values
t_and_eq
public static final int t_and_eq
- See Also:
- Constant Field Values
t_asm
public static final int t_asm
- See Also:
- Constant Field Values
t_auto
public static final int t_auto
- See Also:
- Constant Field Values
t_bitand
public static final int t_bitand
- See Also:
- Constant Field Values
t_bitor
public static final int t_bitor
- See Also:
- Constant Field Values
t_bool
public static final int t_bool
- See Also:
- Constant Field Values
t_break
public static final int t_break
- See Also:
- Constant Field Values
t_case
public static final int t_case
- See Also:
- Constant Field Values
t_catch
public static final int t_catch
- See Also:
- Constant Field Values
t_char
public static final int t_char
- See Also:
- Constant Field Values
t_class
public static final int t_class
- See Also:
- Constant Field Values
t_compl
public static final int t_compl
- See Also:
- Constant Field Values
t_const
public static final int t_const
- See Also:
- Constant Field Values
t_const_cast
public static final int t_const_cast
- See Also:
- Constant Field Values
t_continue
public static final int t_continue
- See Also:
- Constant Field Values
t_default
public static final int t_default
- See Also:
- Constant Field Values
t_delete
public static final int t_delete
- See Also:
- Constant Field Values
t_do
public static final int t_do
- See Also:
- Constant Field Values
t_double
public static final int t_double
- See Also:
- Constant Field Values
t_dynamic_cast
public static final int t_dynamic_cast
- See Also:
- Constant Field Values
t_else
public static final int t_else
- See Also:
- Constant Field Values
t_enum
public static final int t_enum
- See Also:
- Constant Field Values
t_explicit
public static final int t_explicit
- See Also:
- Constant Field Values
t_export
public static final int t_export
- See Also:
- Constant Field Values
t_extern
public static final int t_extern
- See Also:
- Constant Field Values
t_false
public static final int t_false
- See Also:
- Constant Field Values
t_float
public static final int t_float
- See Also:
- Constant Field Values
t_for
public static final int t_for
- See Also:
- Constant Field Values
t_friend
public static final int t_friend
- See Also:
- Constant Field Values
t_goto
public static final int t_goto
- See Also:
- Constant Field Values
t_if
public static final int t_if
- See Also:
- Constant Field Values
t_inline
public static final int t_inline
- See Also:
- Constant Field Values
t_int
public static final int t_int
- See Also:
- Constant Field Values
t_long
public static final int t_long
- See Also:
- Constant Field Values
t_mutable
public static final int t_mutable
- See Also:
- Constant Field Values
t_namespace
public static final int t_namespace
- See Also:
- Constant Field Values
t_new
public static final int t_new
- See Also:
- Constant Field Values
t_not
public static final int t_not
- See Also:
- Constant Field Values
t_not_eq
public static final int t_not_eq
- See Also:
- Constant Field Values
t_operator
public static final int t_operator
- See Also:
- Constant Field Values
t_or
public static final int t_or
- See Also:
- Constant Field Values
t_or_eq
public static final int t_or_eq
- See Also:
- Constant Field Values
t_private
public static final int t_private
- See Also:
- Constant Field Values
t_protected
public static final int t_protected
- See Also:
- Constant Field Values
t_public
public static final int t_public
- See Also:
- Constant Field Values
t_register
public static final int t_register
- See Also:
- Constant Field Values
t_reinterpret_cast
public static final int t_reinterpret_cast
- See Also:
- Constant Field Values
t_return
public static final int t_return
- See Also:
- Constant Field Values
t_short
public static final int t_short
- See Also:
- Constant Field Values
t_sizeof
public static final int t_sizeof
- See Also:
- Constant Field Values
t_static
public static final int t_static
- See Also:
- Constant Field Values
t_static_cast
public static final int t_static_cast
- See Also:
- Constant Field Values
t_signed
public static final int t_signed
- See Also:
- Constant Field Values
t_struct
public static final int t_struct
- See Also:
- Constant Field Values
t_switch
public static final int t_switch
- See Also:
- Constant Field Values
t_template
public static final int t_template
- See Also:
- Constant Field Values
t_this
public static final int t_this
- See Also:
- Constant Field Values
t_throw
public static final int t_throw
- See Also:
- Constant Field Values
t_true
public static final int t_true
- See Also:
- Constant Field Values
t_try
public static final int t_try
- See Also:
- Constant Field Values
t_typedef
public static final int t_typedef
- See Also:
- Constant Field Values
t_typeid
public static final int t_typeid
- See Also:
- Constant Field Values
t_typename
public static final int t_typename
- See Also:
- Constant Field Values
t_union
public static final int t_union
- See Also:
- Constant Field Values
t_unsigned
public static final int t_unsigned
- See Also:
- Constant Field Values
t_using
public static final int t_using
- See Also:
- Constant Field Values
t_virtual
public static final int t_virtual
- See Also:
- Constant Field Values
t_void
public static final int t_void
- See Also:
- Constant Field Values
t_volatile
public static final int t_volatile
- See Also:
- Constant Field Values
t_wchar_t
public static final int t_wchar_t
- See Also:
- Constant Field Values
t_while
public static final int t_while
- See Also:
- Constant Field Values
t_xor
public static final int t_xor
- See Also:
- Constant Field Values
t_xor_eq
public static final int t_xor_eq
- See Also:
- Constant Field Values
tSTRING
public static final int tSTRING
- See Also:
- Constant Field Values
tFLOATINGPT
public static final int tFLOATINGPT
- See Also:
- Constant Field Values
tLSTRING
public static final int tLSTRING
- See Also:
- Constant Field Values
tCHAR
public static final int tCHAR
- See Also:
- Constant Field Values
t_restrict
public static final int t_restrict
- See Also:
- Constant Field Values
t_interface
public static final int t_interface
- See Also:
- Constant Field Values
t_import
public static final int t_import
- See Also:
- Constant Field Values
t_instanceof
public static final int t_instanceof
- See Also:
- Constant Field Values
t_extends
public static final int t_extends
- See Also:
- Constant Field Values
t_implements
public static final int t_implements
- See Also:
- Constant Field Values
t_final
public static final int t_final
- See Also:
- Constant Field Values
t_super
public static final int t_super
- See Also:
- Constant Field Values
t_package
public static final int t_package
- See Also:
- Constant Field Values
t_boolean
public static final int t_boolean
- See Also:
- Constant Field Values
t_abstract
public static final int t_abstract
- See Also:
- Constant Field Values
t_finally
public static final int t_finally
- See Also:
- Constant Field Values
t_null
public static final int t_null
- See Also:
- Constant Field Values
t_synchronized
public static final int t_synchronized
- See Also:
- Constant Field Values
t_throws
public static final int t_throws
- See Also:
- Constant Field Values
t_byte
public static final int t_byte
- See Also:
- Constant Field Values
t_transient
public static final int t_transient
- See Also:
- Constant Field Values
t_native
public static final int t_native
- See Also:
- Constant Field Values
Token
public Token(int t,
java.lang.String i,
ScannerContext context)
Token
public Token(int t,
java.lang.String i)
set
public void set(int t,
java.lang.String i,
ScannerContext context)
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
getType
public int getType()
getText
public java.lang.String getText()
getOffset
public int getOffset()
getLength
public int getLength()
getDelta
public int getDelta(Token other)
looksLikeExpressionStart
public boolean looksLikeExpressionStart()
looksLikeExpressionEnd
public boolean looksLikeExpressionEnd()
isPointer
public boolean isPointer()
isOperator
public boolean isOperator()
isInfixOperator
public boolean isInfixOperator()
isPrefixOperator
public boolean isPrefixOperator()
isPostfixOperator
public boolean isPostfixOperator()
isAssignmentOperator
public boolean isAssignmentOperator()
isAssignmentOperator
public static boolean isAssignmentOperator(int type)
isControlStmt
public boolean isControlStmt()
isWhiteSpace
public boolean isWhiteSpace()
isComment
public boolean isComment()
isLineComment
public boolean isLineComment()
isBlockComment
public boolean isBlockComment()
isCaseLabel
public boolean isCaseLabel()
isStructType
public boolean isStructType()
isStructType
public static boolean isStructType(int type)
isVisibilityModifier
public boolean isVisibilityModifier()
isVisibilityModifier
public static boolean isVisibilityModifier(int type)
isEndOfStatement
public boolean isEndOfStatement()
isCPPToken
public boolean isCPPToken()
isStringLiteral
public boolean isStringLiteral()
isCharacterLiteral
public boolean isCharacterLiteral()
isPreprocessor
public boolean isPreprocessor()
isIncludeDirective
public boolean isIncludeDirective()
isMacroDefinition
public boolean isMacroDefinition()