public enum StringType extends Enum<StringType>
TokenType.STRING| Enum Constant and Description |
|---|
LONG_STRING1
A string delimited by 3 single-quote characters :
'''abc''' |
LONG_STRING2
A string delimited by 3 double-quote characters :
"""abc""" |
STRING1
A string delimited by 1 single-quote character :
'abc' |
STRING2
A string delimited by 1 double-quote character :
'abc' |
| Modifier and Type | Method and Description |
|---|---|
static StringType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static StringType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final StringType STRING1
'abc'public static final StringType STRING2
'abc'public static final StringType LONG_STRING1
'''abc'''public static final StringType LONG_STRING2
"""abc"""public static StringType[] values()
for (StringType c : StringType.values()) System.out.println(c);
public static StringType 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 nullLicenced under the Apache License, Version 2.0