public static enum TokenOperatorD3.Operator extends Enum<TokenOperatorD3.Operator>
| Enum Constant and Description |
|---|
JOIN
4.4.6 The 'join' operator.
|
LIST
4.4.7 The 'list' operator.
|
NEG
4.4.3 The 'neg' operator.
|
OPT
4.4.2 The 'opt' operator.
|
PREFIX
4.4.4 The 'prefix' operator.
|
SUFFIX
4.4.5 The 'suffix' operator.
|
| Modifier and Type | Method and Description |
|---|---|
static TokenOperatorD3.Operator |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TokenOperatorD3.Operator[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TokenOperatorD3.Operator OPT
foo := "fred"
"{-opt|fred@example.org|foo}" -> "fred@example.org"
"{-opt|fred@example.org|bar}" -> ""
public static final TokenOperatorD3.Operator NEG
foo := "fred"
"{-neg|fred@example.org|foo}" -> ""
"{-neg|fred@example.org|bar}" -> "fred@example.org"
public static final TokenOperatorD3.Operator PREFIX
foo := "fred"
bar := ["fee", "fi", "fo", "fum"]
baz := []
"{-prefix|/|foo}" -> "/fred"
"{-prefix|/|bar}" -> "/fee/fi/fo/fum"
"{-prefix|/|baz}" -> ""
"{-prefix|/|qux}" -> ""
public static final TokenOperatorD3.Operator SUFFIX
foo := "fred"
bar := ["fee", "fi", "fo", "fum"]
baz := []
"{-suffix|/|foo}" -> "fred/"
"{-suffix|/|bar}" -> "fee/fi/fo/fum/"
"{-suffix|/|baz}" -> ""
"{-suffix|/|qux}" -> ""
public static final TokenOperatorD3.Operator JOIN
foo := "fred"
bar := "barney"
baz := ""
"{-join|&|foo,bar,baz,qux}" -> "foo=fred&bar=barney&baz="
"{-join|&|bar}" -> "bar=barney"
"{-join|&|qux}" -> ""
public static final TokenOperatorD3.Operator LIST
foo := ["fred", "barney", "wilma"]
bar := ["a", "", "c"]
baz := ["betty"]
qux := []
"{-list|/|foo}" -> "fred/barney/wilma"
"{-list|/|bar}" -> "a//c"
"{-list|/|baz}" -> "betty"
"{-list|/|qux}" -> ""
"{-list|/|corge}" -> ""
public static TokenOperatorD3.Operator[] values()
for (TokenOperatorD3.Operator c : TokenOperatorD3.Operator.values()) System.out.println(c);
public static TokenOperatorD3.Operator valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant
with the specified nameNullPointerException - if the argument is nullCopyright © 2014. All rights reserved.