PythonTokenId Class
Contains the token IDs for the Python language.
public class PythonTokenId : TokenIdProviderBase, ITokenIdProvider, IIdProvider
- Inheritance:
- object TokenIdProviderBase object
- Implements:
- ITokenIdProvider IIdProvider
Remarks
This type was generated by the Actipro Language Designer tool v26.1.0 (http://www.actiprosoftware.com).
Constructors
PythonTokenId()
Initializes an instance of the class.
public PythonTokenId()
Properties
MaxId
The maximum ID returned by this provider.
MinId
The minimum ID returned by this provider.
Methods
ContainsId(int)
Returns whether the specified ID value is valid for this ID provider.
public override bool ContainsId(int id)
| Parameter | Type | Description |
|---|---|---|
| id | int | The ID to examine. |
Returns
- bool:
trueif the ID value is valid; otherwise,false
GetDescription(int)
Returns the actual string representation for the specified ID.
public override string? GetDescription(int id)
| Parameter | Type | Description |
|---|---|---|
| id | int | The ID to examine. |
Returns
GetKey(int)
Returns the string-based key for the specified ID.
IsCommentClassificationType(int)
Returns whether the specified ID value is part of the Comment classification type.
public static bool IsCommentClassificationType(int id)
| Parameter | Type | Description |
|---|---|---|
| id | int | The token ID to examine. |
Returns
- bool:
trueif the ID value is in the classification type; otherwise,false
IsIdentifierClassificationType(int)
Returns whether the specified ID value is part of the Identifier classification type.
public static bool IsIdentifierClassificationType(int id)
| Parameter | Type | Description |
|---|---|---|
| id | int | The token ID to examine. |
Returns
- bool:
trueif the ID value is in the classification type; otherwise,false
IsKeywordClassificationType(int)
Returns whether the specified ID value is part of the Keyword classification type.
public static bool IsKeywordClassificationType(int id)
| Parameter | Type | Description |
|---|---|---|
| id | int | The token ID to examine. |
Returns
- bool:
trueif the ID value is in the classification type; otherwise,false
IsNumberClassificationType(int)
Returns whether the specified ID value is part of the Number classification type.
public static bool IsNumberClassificationType(int id)
| Parameter | Type | Description |
|---|---|---|
| id | int | The token ID to examine. |
Returns
- bool:
trueif the ID value is in the classification type; otherwise,false
IsOperatorClassificationType(int)
Returns whether the specified ID value is part of the Operator classification type.
public static bool IsOperatorClassificationType(int id)
| Parameter | Type | Description |
|---|---|---|
| id | int | The token ID to examine. |
Returns
- bool:
trueif the ID value is in the classification type; otherwise,false
IsPunctuationClassificationType(int)
Returns whether the specified ID value is part of the Punctuation classification type.
public static bool IsPunctuationClassificationType(int id)
| Parameter | Type | Description |
|---|---|---|
| id | int | The token ID to examine. |
Returns
- bool:
trueif the ID value is in the classification type; otherwise,false
IsPythonSystemIdentifierClassificationType(int)
Returns whether the specified ID value is part of the PythonSystemIdentifier classification type.
public static bool IsPythonSystemIdentifierClassificationType(int id)
| Parameter | Type | Description |
|---|---|---|
| id | int | The token ID to examine. |
Returns
- bool:
trueif the ID value is in the classification type; otherwise,false
IsStringClassificationType(int)
Returns whether the specified ID value is part of the String classification type.
public static bool IsStringClassificationType(int id)
| Parameter | Type | Description |
|---|---|---|
| id | int | The token ID to examine. |
Returns
- bool:
trueif the ID value is in the classification type; otherwise,false
Fields
CloseCurlyBrace
The CloseCurlyBrace token ID.
public const int CloseCurlyBrace = 14008
CloseParenthesis
The CloseParenthesis token ID.
public const int CloseParenthesis = 14004
CloseSquareBrace
The CloseSquareBrace token ID.
public const int CloseSquareBrace = 14006
Colon
The Colon token ID.
public const int Colon = 14010
Comma
The Comma token ID.
public const int Comma = 14009
CommentSingleLine
The CommentSingleLine token ID.
public const int CommentSingleLine = 14015
Dedent
The Dedent token ID.
public const int Dedent = 14102
Dot
The Dot token ID.
public const int Dot = 14011
Identifier
The Identifier token ID.
public const int Identifier = 14062
Indent
The Indent token ID.
public const int Indent = 14101
KeywordAnd
The KeywordAnd token ID.
public const int KeywordAnd = 14064
KeywordAs
The KeywordAs token ID.
public const int KeywordAs = 14065
KeywordAssert
The KeywordAssert token ID.
public const int KeywordAssert = 14066
KeywordAsync
The KeywordAsync token ID.
public const int KeywordAsync = 14067
KeywordAwait
The KeywordAwait token ID.
public const int KeywordAwait = 14068
KeywordBreak
The KeywordBreak token ID.
public const int KeywordBreak = 14069
KeywordCase
The KeywordCase token ID.
public const int KeywordCase = 14070
KeywordClass
The KeywordClass token ID.
public const int KeywordClass = 14071
KeywordContinue
The KeywordContinue token ID.
public const int KeywordContinue = 14072
KeywordDef
The KeywordDef token ID.
public const int KeywordDef = 14073
KeywordDel
The KeywordDel token ID.
public const int KeywordDel = 14074
KeywordElIf
The KeywordElIf token ID.
public const int KeywordElIf = 14075
KeywordElse
The KeywordElse token ID.
public const int KeywordElse = 14076
KeywordExcept
The KeywordExcept token ID.
public const int KeywordExcept = 14077
KeywordFalse
The KeywordFalse token ID.
public const int KeywordFalse = 14078
KeywordFinally
The KeywordFinally token ID.
public const int KeywordFinally = 14079
KeywordFor
The KeywordFor token ID.
public const int KeywordFor = 14080
KeywordFrom
The KeywordFrom token ID.
public const int KeywordFrom = 14081
KeywordGlobal
The KeywordGlobal token ID.
public const int KeywordGlobal = 14082
KeywordIf
The KeywordIf token ID.
public const int KeywordIf = 14083
KeywordImport
The KeywordImport token ID.
public const int KeywordImport = 14084
KeywordIn
The KeywordIn token ID.
public const int KeywordIn = 14085
KeywordIs
The KeywordIs token ID.
public const int KeywordIs = 14086
KeywordLambda
The KeywordLambda token ID.
public const int KeywordLambda = 14087
KeywordMatch
The KeywordMatch token ID.
public const int KeywordMatch = 14088
KeywordNonLocal
The KeywordNonLocal token ID.
public const int KeywordNonLocal = 14089
KeywordNone
The KeywordNone token ID.
public const int KeywordNone = 14090
KeywordNot
The KeywordNot token ID.
public const int KeywordNot = 14091
KeywordOr
The KeywordOr token ID.
public const int KeywordOr = 14092
KeywordPass
The KeywordPass token ID.
public const int KeywordPass = 14093
KeywordRaise
The KeywordRaise token ID.
public const int KeywordRaise = 14094
KeywordReturn
The KeywordReturn token ID.
public const int KeywordReturn = 14095
KeywordTrue
The KeywordTrue token ID.
public const int KeywordTrue = 14096
KeywordTry
The KeywordTry token ID.
public const int KeywordTry = 14097
KeywordWhile
The KeywordWhile token ID.
public const int KeywordWhile = 14098
KeywordWith
The KeywordWith token ID.
public const int KeywordWith = 14099
KeywordYield
The KeywordYield token ID.
public const int KeywordYield = 14100
LineContinuation
The LineContinuation token ID.
public const int LineContinuation = 14002
LineTerminator
The LineTerminator token ID.
public const int LineTerminator = 14001
LiteralBinaryInteger
The LiteralBinaryInteger token ID.
public const int LiteralBinaryInteger = 14052
LiteralBytes
The LiteralBytes token ID.
public const int LiteralBytes = 14051
LiteralDecimalInteger
The LiteralDecimalInteger token ID.
public const int LiteralDecimalInteger = 14053
LiteralDoubleQuoteLongString
The LiteralDoubleQuoteLongString token ID.
public const int LiteralDoubleQuoteLongString = 14055
LiteralDoubleQuoteString
The LiteralDoubleQuoteString token ID.
public const int LiteralDoubleQuoteString = 14054
LiteralHexadecimalInteger
The LiteralHexadecimalInteger token ID.
public const int LiteralHexadecimalInteger = 14056
LiteralImaginary
The LiteralImaginary token ID.
public const int LiteralImaginary = 14057
LiteralOctalInteger
The LiteralOctalInteger token ID.
public const int LiteralOctalInteger = 14058
LiteralReal
The LiteralReal token ID.
public const int LiteralReal = 14059
LiteralSingleQuoteLongString
The LiteralSingleQuoteLongString token ID.
public const int LiteralSingleQuoteLongString = 14061
LiteralSingleQuoteString
The LiteralSingleQuoteString token ID.
public const int LiteralSingleQuoteString = 14060
OpenCurlyBrace
The OpenCurlyBrace token ID.
public const int OpenCurlyBrace = 14007
OpenParenthesis
The OpenParenthesis token ID.
public const int OpenParenthesis = 14003
OpenSquareBrace
The OpenSquareBrace token ID.
public const int OpenSquareBrace = 14005
OperatorAddition
The OperatorAddition token ID.
public const int OperatorAddition = 14016
OperatorAdditionAssignment
The OperatorAdditionAssignment token ID.
public const int OperatorAdditionAssignment = 14037
OperatorAssignment
The OperatorAssignment token ID.
public const int OperatorAssignment = 14036
OperatorBitwiseAnd
The OperatorBitwiseAnd token ID.
public const int OperatorBitwiseAnd = 14026
OperatorBitwiseAndAssignment
The OperatorBitwiseAndAssignment token ID.
public const int OperatorBitwiseAndAssignment = 14045
OperatorBitwiseOr
The OperatorBitwiseOr token ID.
public const int OperatorBitwiseOr = 14027
OperatorBitwiseOrAssignment
The OperatorBitwiseOrAssignment token ID.
public const int OperatorBitwiseOrAssignment = 14046
OperatorDivision
The OperatorDivision token ID.
public const int OperatorDivision = 14021
OperatorDivisionAssignment
The OperatorDivisionAssignment token ID.
public const int OperatorDivisionAssignment = 14042
OperatorEquality
The OperatorEquality token ID.
public const int OperatorEquality = 14034
OperatorExclusiveOr
The OperatorExclusiveOr token ID.
public const int OperatorExclusiveOr = 14028
OperatorExclusiveOrAssignment
The OperatorExclusiveOrAssignment token ID.
public const int OperatorExclusiveOrAssignment = 14047
OperatorFloorDivision
The OperatorFloorDivision token ID.
public const int OperatorFloorDivision = 14022
OperatorFloorDivisionAssignment
The OperatorFloorDivisionAssignment token ID.
public const int OperatorFloorDivisionAssignment = 14043
OperatorGreaterThan
The OperatorGreaterThan token ID.
public const int OperatorGreaterThan = 14031
OperatorGreaterThanOrEqual
The OperatorGreaterThanOrEqual token ID.
public const int OperatorGreaterThanOrEqual = 14033
OperatorInequality
The OperatorInequality token ID.
public const int OperatorInequality = 14035
OperatorLeftShift
The OperatorLeftShift token ID.
public const int OperatorLeftShift = 14024
OperatorLeftShiftAssignment
The OperatorLeftShiftAssignment token ID.
public const int OperatorLeftShiftAssignment = 14048
OperatorLessThan
The OperatorLessThan token ID.
public const int OperatorLessThan = 14030
OperatorLessThanOrEqual
The OperatorLessThanOrEqual token ID.
public const int OperatorLessThanOrEqual = 14032
OperatorMatrixMultiplication
The OperatorMatrixMultiplication token ID.
public const int OperatorMatrixMultiplication = 14019
OperatorMatrixMultiplicationAssignment
The OperatorMatrixMultiplicationAssignment token ID.
public const int OperatorMatrixMultiplicationAssignment = 14040
OperatorModulus
The OperatorModulus token ID.
public const int OperatorModulus = 14023
OperatorModulusAssignment
The OperatorModulusAssignment token ID.
public const int OperatorModulusAssignment = 14044
OperatorMultiplication
The OperatorMultiplication token ID.
public const int OperatorMultiplication = 14018
OperatorMultiplicationAssignment
The OperatorMultiplicationAssignment token ID.
public const int OperatorMultiplicationAssignment = 14039
OperatorOnesComplement
The OperatorOnesComplement token ID.
public const int OperatorOnesComplement = 14029
OperatorPower
The OperatorPower token ID.
public const int OperatorPower = 14020
OperatorPowerAssignment
The OperatorPowerAssignment token ID.
public const int OperatorPowerAssignment = 14041
OperatorRightShift
The OperatorRightShift token ID.
public const int OperatorRightShift = 14025
OperatorRightShiftAssignment
The OperatorRightShiftAssignment token ID.
public const int OperatorRightShiftAssignment = 14049
OperatorSubtraction
The OperatorSubtraction token ID.
public const int OperatorSubtraction = 14017
OperatorSubtractionAssignment
The OperatorSubtractionAssignment token ID.
public const int OperatorSubtractionAssignment = 14038
OperatorWalrus
The OperatorWalrus token ID.
public const int OperatorWalrus = 14050
ReverseQuote
The ReverseQuote token ID.
public const int ReverseQuote = 14013
RightArrow
The RightArrow token ID.
public const int RightArrow = 14014
SemiColon
The SemiColon token ID.
public const int SemiColon = 14012
SystemIdentifier
The SystemIdentifier token ID.
public const int SystemIdentifier = 14063
Whitespace
The Whitespace token ID.
public const int Whitespace = 14000
Inherited Members
- TokenIdProviderBase.DocumentEnd
- TokenIdProviderBase.Invalid
- object.GetType()
- object.MemberwiseClone()
- object.ToString()
- object.Equals(object)
- object.Equals(object, object)
- object.ReferenceEquals(object, object)
- object.GetHashCode()