Package sass.embedded_protocol
Enum EmbeddedSass.OutputStyle
- java.lang.Object
-
- java.lang.Enum<EmbeddedSass.OutputStyle>
-
- sass.embedded_protocol.EmbeddedSass.OutputStyle
-
- All Implemented Interfaces:
Internal.EnumLite
,ProtocolMessageEnum
,Serializable
,Comparable<EmbeddedSass.OutputStyle>
- Enclosing class:
- EmbeddedSass
public static enum EmbeddedSass.OutputStyle extends Enum<EmbeddedSass.OutputStyle> implements ProtocolMessageEnum
Possible ways to format the CSS output. The compiler is not required to support all possible options; if the host requests an unsupported style, the compiler should choose the closest supported style.
Protobuf enumsass.embedded_protocol.OutputStyle
-
-
Enum Constant Summary
Enum Constants Enum Constant Description COMPRESSED
The entire stylesheet is written on a single line, with as few characters as possible.EXPANDED
Each selector and declaration is written on its own line.UNRECOGNIZED
-
Field Summary
Fields Modifier and Type Field Description static int
COMPRESSED_VALUE
The entire stylesheet is written on a single line, with as few characters as possible.static int
EXPANDED_VALUE
Each selector and declaration is written on its own line.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static EmbeddedSass.OutputStyle
forNumber(int value)
static Descriptors.EnumDescriptor
getDescriptor()
Descriptors.EnumDescriptor
getDescriptorForType()
int
getNumber()
Descriptors.EnumValueDescriptor
getValueDescriptor()
static Internal.EnumLiteMap<EmbeddedSass.OutputStyle>
internalGetValueMap()
static EmbeddedSass.OutputStyle
valueOf(int value)
Deprecated.static EmbeddedSass.OutputStyle
valueOf(Descriptors.EnumValueDescriptor desc)
Returns the enum constant of this type with the specified name.static EmbeddedSass.OutputStyle
valueOf(String name)
Returns the enum constant of this type with the specified name.static EmbeddedSass.OutputStyle[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
EXPANDED
public static final EmbeddedSass.OutputStyle EXPANDED
Each selector and declaration is written on its own line.
EXPANDED = 0;
-
COMPRESSED
public static final EmbeddedSass.OutputStyle COMPRESSED
The entire stylesheet is written on a single line, with as few characters as possible.
COMPRESSED = 1;
-
UNRECOGNIZED
public static final EmbeddedSass.OutputStyle UNRECOGNIZED
-
-
Field Detail
-
EXPANDED_VALUE
public static final int EXPANDED_VALUE
Each selector and declaration is written on its own line.
EXPANDED = 0;
- See Also:
- Constant Field Values
-
COMPRESSED_VALUE
public static final int COMPRESSED_VALUE
The entire stylesheet is written on a single line, with as few characters as possible.
COMPRESSED = 1;
- See Also:
- Constant Field Values
-
-
Method Detail
-
values
public static EmbeddedSass.OutputStyle[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (EmbeddedSass.OutputStyle c : EmbeddedSass.OutputStyle.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static EmbeddedSass.OutputStyle valueOf(String name)
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:
getNumber
in interfaceInternal.EnumLite
- Specified by:
getNumber
in interfaceProtocolMessageEnum
-
valueOf
@Deprecated public static EmbeddedSass.OutputStyle valueOf(int value)
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
public static EmbeddedSass.OutputStyle forNumber(int value)
- Parameters:
value
- The numeric wire value of the corresponding enum entry.- Returns:
- The enum associated with the given numeric wire value.
-
internalGetValueMap
public static Internal.EnumLiteMap<EmbeddedSass.OutputStyle> internalGetValueMap()
-
getValueDescriptor
public final Descriptors.EnumValueDescriptor getValueDescriptor()
- Specified by:
getValueDescriptor
in interfaceProtocolMessageEnum
-
getDescriptorForType
public final Descriptors.EnumDescriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfaceProtocolMessageEnum
-
getDescriptor
public static final Descriptors.EnumDescriptor getDescriptor()
-
valueOf
public static EmbeddedSass.OutputStyle valueOf(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
-
-