Package org.sonarsource.dotnet.protobuf
Enum SonarAnalyzer.TokenType
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<SonarAnalyzer.TokenType>
- Enclosing class:
- SonarAnalyzer
public static enum SonarAnalyzer.TokenType
extends Enum<SonarAnalyzer.TokenType>
implements com.google.protobuf.ProtocolMessageEnum
Protobuf enum
sonaranalyzer.TokenType-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionCOMMENT = 5;KEYWORD = 4;NUMERIC_LITERAL = 2;STRING_LITERAL = 3;TYPE_NAME = 1;UNKNOWN_TOKENTYPE = 0; -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intCOMMENT = 5;static final intKEYWORD = 4;static final intNUMERIC_LITERAL = 2;static final intSTRING_LITERAL = 3;static final intTYPE_NAME = 1;static final intUNKNOWN_TOKENTYPE = 0; -
Method Summary
Modifier and TypeMethodDescriptionstatic SonarAnalyzer.TokenTypeforNumber(int value) static final com.google.protobuf.Descriptors.EnumDescriptorfinal com.google.protobuf.Descriptors.EnumDescriptorfinal intfinal com.google.protobuf.Descriptors.EnumValueDescriptorstatic com.google.protobuf.Internal.EnumLiteMap<SonarAnalyzer.TokenType>static SonarAnalyzer.TokenTypevalueOf(int value) Deprecated.static SonarAnalyzer.TokenTypevalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name.static SonarAnalyzer.TokenTypeReturns the enum constant of this type with the specified name.static SonarAnalyzer.TokenType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
UNKNOWN_TOKENTYPE
UNKNOWN_TOKENTYPE = 0; -
TYPE_NAME
TYPE_NAME = 1; -
NUMERIC_LITERAL
NUMERIC_LITERAL = 2; -
STRING_LITERAL
STRING_LITERAL = 3; -
KEYWORD
KEYWORD = 4; -
COMMENT
COMMENT = 5; -
UNRECOGNIZED
-
-
Field Details
-
UNKNOWN_TOKENTYPE_VALUE
public static final int UNKNOWN_TOKENTYPE_VALUEUNKNOWN_TOKENTYPE = 0;- See Also:
-
TYPE_NAME_VALUE
public static final int TYPE_NAME_VALUETYPE_NAME = 1;- See Also:
-
NUMERIC_LITERAL_VALUE
public static final int NUMERIC_LITERAL_VALUENUMERIC_LITERAL = 2;- See Also:
-
STRING_LITERAL_VALUE
public static final int STRING_LITERAL_VALUESTRING_LITERAL = 3;- See Also:
-
KEYWORD_VALUE
public static final int KEYWORD_VALUEKEYWORD = 4;- See Also:
-
COMMENT_VALUE
public static final int COMMENT_VALUECOMMENT = 5;- See Also:
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getNumber
public final int getNumber()- Specified by:
getNumberin interfacecom.google.protobuf.Internal.EnumLite- Specified by:
getNumberin interfacecom.google.protobuf.ProtocolMessageEnum
-
valueOf
Deprecated.Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
value- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
forNumber
- Parameters:
value- The numeric wire value of the corresponding enum entry.- Returns:
- The enum associated with the given numeric wire value.
-
internalGetValueMap
public static com.google.protobuf.Internal.EnumLiteMap<SonarAnalyzer.TokenType> internalGetValueMap() -
getValueDescriptor
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()- Specified by:
getValueDescriptorin interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptor
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() -
valueOf
public static SonarAnalyzer.TokenType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
desc- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-