public enum Symbol extends Enum<Symbol>
>= deve preceder o operador > por terem o
mesmo prefixo. Basicamente, essa ordem serve para definir uma ordem no
reconhecimento dos símbolos.| Enum Constant and Description |
|---|
AND
e.
|
COLON
senão.
|
COMMA
vírgula.
|
DIVIDE
divisão.
|
DOT
ponto.
|
DOUBLE
número.
|
EQUAL
igualdade.
|
GREATER
maior que.
|
GREATER_EQ
maior ou igual.
|
L_BRACKET
colchete.
|
L_PAREN
parêntese.
|
LOWER
menor que.
|
LOWER_EQ
menor ou igual.
|
MINUS
substração.
|
NAME
nome.
|
NOT
negação.
|
NOT_EQUAL
diferente.
|
OR
ou.
|
PLUS
soma.
|
POW
exponenciação.
|
QUESTION
condição.
|
R_BRACKET
colchete.
|
R_PAREN
parêntese.
|
STRING
string.
|
TIMES
multiplicação.
|
UNKNOWN
Caracter desconhecido.
|
| Modifier and Type | Field and Description |
|---|---|
String |
graphic
Representação gráfica do símbolo.
|
Pattern |
pattern
Regex que reconhece o símbolo.
|
| Modifier and Type | Method and Description |
|---|---|
static Symbol |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Symbol[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Symbol GREATER_EQ
public static final Symbol GREATER
public static final Symbol LOWER_EQ
public static final Symbol LOWER
public static final Symbol PLUS
public static final Symbol COMMA
public static final Symbol MINUS
public static final Symbol DIVIDE
public static final Symbol TIMES
public static final Symbol POW
public static final Symbol QUESTION
public static final Symbol COLON
public static final Symbol L_PAREN
public static final Symbol R_PAREN
public static final Symbol L_BRACKET
public static final Symbol R_BRACKET
public static final Symbol EQUAL
public static final Symbol NOT_EQUAL
public static final Symbol NOT
public static final Symbol AND
public static final Symbol OR
public static final Symbol DOT
public static final Symbol DOUBLE
public static final Symbol STRING
public static final Symbol NAME
public static final Symbol UNKNOWN
public final String graphic
public final Pattern pattern
public static Symbol[] values()
for (Symbol c : Symbol.values()) System.out.println(c);
public static Symbol 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 © 2007–2017 Tecgraf/PUC-Rio. All rights reserved.