|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<Symbol>
tecgraf.javautils.jexpression.scanner.Symbol
public enum Symbol
Enumeração que define os símbolos da linguagem de expressões. A ordem da declaração dos símbolos é relevante para a análise léxica, por exemplo, o operador '>=' deve preceder o operador '>' por terem o mesmo prefixo. Basicamente, essa ordem serve para definir uma ordem no reconhecimento dos símbolos.
| Enum Constant Summary | |
|---|---|
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. |
|
TIMES
multiplicação. |
|
UNKNOWN
Caracter desconhecido. |
|
| Field Summary | |
|---|---|
String |
graphic
Representação gráfica do símbolo. |
Pattern |
pattern
Regex que reconhece o símbolo. |
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
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 NAME
public static final Symbol UNKNOWN
| Field Detail |
|---|
public final String graphic
public final Pattern pattern
| Method Detail |
|---|
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 name
NullPointerException - if the argument is null
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||