Enum Class ParsedSpanType
- All Implemented Interfaces:
Serializable,Comparable<ParsedSpanType>,Constable
The type of a parsed template depends on the structure of the bindings provided.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionA bindref template is one which has only a single bind point and no leading or trailing text.A string template is one which is neither a literal template nor a bindref template.A literal template is one which has no bindings that need to be provided to render a specific statement. -
Method Summary
Modifier and TypeMethodDescriptionstatic ParsedSpanTypeReturns the enum constant of this class with the specified name.static ParsedSpanType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
literal
A literal template is one which has no bindings that need to be provided to render a specific statement. These templates are basically static values. Example:truncate testks.testtable; -
bindref
A bindref template is one which has only a single bind point and no leading or trailing text. It represents a single value which is to be injected, with no clear indication as to whether the value should be in string form or not. These are used when referencing objects by bind point name. Callers which use rawbind templates where Strings are needed should convert them withObject.toString()Example:{myvalue} -
concat
A string template is one which is neither a literal template nor a bindref template. This includes any template which has any amount of literal text and any template with more than one bind point. Example:Four {timeunit1} and several {timeunit2} ago
-
-
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
-