Package sass.embedded_protocol
Enum EmbeddedSass.InboundMessage.CompileRequest.OutputStyle
- java.lang.Object
-
- java.lang.Enum<EmbeddedSass.InboundMessage.CompileRequest.OutputStyle>
-
- sass.embedded_protocol.EmbeddedSass.InboundMessage.CompileRequest.OutputStyle
-
- All Implemented Interfaces:
Internal.EnumLite
,ProtocolMessageEnum
,Serializable
,Comparable<EmbeddedSass.InboundMessage.CompileRequest.OutputStyle>
- Enclosing class:
- EmbeddedSass.InboundMessage.CompileRequest
public static enum EmbeddedSass.InboundMessage.CompileRequest.OutputStyle extends Enum<EmbeddedSass.InboundMessage.CompileRequest.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.InboundMessage.CompileRequest.OutputStyle
-
-
Enum Constant Summary
Enum Constants Enum Constant Description COMPACT
Each CSS rule is written on its own single line, along with all its declarations.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.NESTED
CSS rules and declarations are indented to match the nesting of the Sass source.UNRECOGNIZED
-
Field Summary
Fields Modifier and Type Field Description static int
COMPACT_VALUE
Each CSS rule is written on its own single line, along with all its declarations.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.static int
NESTED_VALUE
CSS rules and declarations are indented to match the nesting of the Sass source.
-
Method Summary
-
-
-
Enum Constant Detail
-
EXPANDED
public static final EmbeddedSass.InboundMessage.CompileRequest.OutputStyle EXPANDED
Each selector and declaration is written on its own line.
EXPANDED = 0;
-
COMPRESSED
public static final EmbeddedSass.InboundMessage.CompileRequest.OutputStyle COMPRESSED
The entire stylesheet is written on a single line, with as few characters as possible.
COMPRESSED = 1;
-
NESTED
public static final EmbeddedSass.InboundMessage.CompileRequest.OutputStyle NESTED
CSS rules and declarations are indented to match the nesting of the Sass source.
NESTED = 2;
-
COMPACT
public static final EmbeddedSass.InboundMessage.CompileRequest.OutputStyle COMPACT
Each CSS rule is written on its own single line, along with all its declarations.
COMPACT = 3;
-
UNRECOGNIZED
public static final EmbeddedSass.InboundMessage.CompileRequest.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
-
NESTED_VALUE
public static final int NESTED_VALUE
CSS rules and declarations are indented to match the nesting of the Sass source.
NESTED = 2;
- See Also:
- Constant Field Values
-
COMPACT_VALUE
public static final int COMPACT_VALUE
Each CSS rule is written on its own single line, along with all its declarations.
COMPACT = 3;
- See Also:
- Constant Field Values
-
-
Method Detail
-
values
public static EmbeddedSass.InboundMessage.CompileRequest.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.InboundMessage.CompileRequest.OutputStyle c : EmbeddedSass.InboundMessage.CompileRequest.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.InboundMessage.CompileRequest.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.InboundMessage.CompileRequest.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.InboundMessage.CompileRequest.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.InboundMessage.CompileRequest.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.InboundMessage.CompileRequest.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
-
-