Package sass.embedded_protocol
Enum Class EmbeddedSass.Syntax
- All Implemented Interfaces:
Internal.EnumLite
,ProtocolMessageEnum
,Serializable
,Comparable<EmbeddedSass.Syntax>
,Constable
- Enclosing class:
- EmbeddedSass
public static enum EmbeddedSass.Syntax
extends Enum<EmbeddedSass.Syntax>
implements ProtocolMessageEnum
Possible syntaxes for a Sass stylesheet.Protobuf enum
sass.embedded_protocol.Syntax
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionPlain CSS syntax that doesn't support any special Sass features.The indented `.sass` syntax.The CSS-superset `.scss` syntax. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
Plain CSS syntax that doesn't support any special Sass features.static final int
The indented `.sass` syntax.static final int
The CSS-superset `.scss` syntax. -
Method Summary
Modifier and TypeMethodDescriptionstatic EmbeddedSass.Syntax
forNumber
(int value) static final Descriptors.EnumDescriptor
final int
static EmbeddedSass.Syntax
valueOf
(int value) Deprecated.static EmbeddedSass.Syntax
Returns the enum constant of this class with the specified name.static EmbeddedSass.Syntax
Returns the enum constant of this class with the specified name.static EmbeddedSass.Syntax[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
SCSS
The CSS-superset `.scss` syntax.
SCSS = 0;
-
INDENTED
The indented `.sass` syntax.
INDENTED = 1;
-
CSS
Plain CSS syntax that doesn't support any special Sass features.
CSS = 2;
-
UNRECOGNIZED
-
-
Field Details
-
SCSS_VALUE
public static final int SCSS_VALUEThe CSS-superset `.scss` syntax.
SCSS = 0;
- See Also:
-
INDENTED_VALUE
public static final int INDENTED_VALUEThe indented `.sass` syntax.
INDENTED = 1;
- See Also:
-
CSS_VALUE
public static final int CSS_VALUEPlain CSS syntax that doesn't support any special Sass features.
CSS = 2;
- See Also:
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-
getNumber
public final int getNumber()- Specified by:
getNumber
in interfaceInternal.EnumLite
- Specified by:
getNumber
in interfaceProtocolMessageEnum
-
valueOf
Deprecated.Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class 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
-
getValueDescriptor
- Specified by:
getValueDescriptor
in interfaceProtocolMessageEnum
-
getDescriptorForType
- Specified by:
getDescriptorForType
in interfaceProtocolMessageEnum
-
getDescriptor
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-