Enum Protocol.ResponseTag
- java.lang.Object
-
- java.lang.Enum<Protocol.ResponseTag>
-
- com.google.javascript.jscomp.webservice.common.Protocol.ResponseTag
-
- All Implemented Interfaces:
Protocol.ProtocolEnum
,java.io.Serializable
,java.lang.Comparable<Protocol.ResponseTag>
- Enclosing class:
- Protocol
public static enum Protocol.ResponseTag extends java.lang.Enum<Protocol.ResponseTag> implements Protocol.ProtocolEnum
All the xml/json tags that can be returned by the backend if xml or json is selected as the output mode.
-
-
Enum Constant Summary
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getResponseTag()
java.lang.String
getValue()
java.lang.String
toString()
static Protocol.ResponseTag
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static Protocol.ResponseTag[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ROOT_TAG
public static final Protocol.ResponseTag ROOT_TAG
-
COMPILED_CODE_TAG
public static final Protocol.ResponseTag COMPILED_CODE_TAG
-
WARNINGS_TAG
public static final Protocol.ResponseTag WARNINGS_TAG
-
WARNING_TAG
public static final Protocol.ResponseTag WARNING_TAG
-
ERRORS_TAG
public static final Protocol.ResponseTag ERRORS_TAG
-
ERROR_TAG
public static final Protocol.ResponseTag ERROR_TAG
-
ERROR_LINE_NO_ATTR
public static final Protocol.ResponseTag ERROR_LINE_NO_ATTR
-
ERROR_LINE_ATTR
public static final Protocol.ResponseTag ERROR_LINE_ATTR
-
ERROR_CHAR_ATTR
public static final Protocol.ResponseTag ERROR_CHAR_ATTR
-
ERROR_FILE_ATTR
public static final Protocol.ResponseTag ERROR_FILE_ATTR
-
ERROR_TYPE_ATTR
public static final Protocol.ResponseTag ERROR_TYPE_ATTR
-
STATS_TAG
public static final Protocol.ResponseTag STATS_TAG
-
ORIGINAL_SIZE_TAG
public static final Protocol.ResponseTag ORIGINAL_SIZE_TAG
-
ORIGINAL_GZIP_SIZE_TAG
public static final Protocol.ResponseTag ORIGINAL_GZIP_SIZE_TAG
-
COMPRESSED_SIZE_TAG
public static final Protocol.ResponseTag COMPRESSED_SIZE_TAG
-
COMPRESSED_GZIP_SIZE_TAG
public static final Protocol.ResponseTag COMPRESSED_GZIP_SIZE_TAG
-
COMPILE_TIME_TAG
public static final Protocol.ResponseTag COMPILE_TIME_TAG
-
SERVER_ERRORS_TAG
public static final Protocol.ResponseTag SERVER_ERRORS_TAG
-
SERVER_ERROR_TAG
public static final Protocol.ResponseTag SERVER_ERROR_TAG
-
SERVER_ERROR_CODE_ATTR
public static final Protocol.ResponseTag SERVER_ERROR_CODE_ATTR
-
VARIABLE_MAP
public static final Protocol.ResponseTag VARIABLE_MAP
-
VARIABLE_MAP_ENTRY
public static final Protocol.ResponseTag VARIABLE_MAP_ENTRY
-
ORIGINAL_NAME_ATTR
public static final Protocol.ResponseTag ORIGINAL_NAME_ATTR
-
NEW_NAME_ATTR
public static final Protocol.ResponseTag NEW_NAME_ATTR
-
OUTPUT_FILE_PATH
public static final Protocol.ResponseTag OUTPUT_FILE_PATH
-
-
Method Detail
-
values
public static Protocol.ResponseTag[] 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 (Protocol.ResponseTag c : Protocol.ResponseTag.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Protocol.ResponseTag valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
getResponseTag
public java.lang.String getResponseTag()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Enum<Protocol.ResponseTag>
-
getValue
public java.lang.String getValue()
- Specified by:
getValue
in interfaceProtocol.ProtocolEnum
- Returns:
- A string representing the key or value specified by the protocol.
-
-