|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecttecgraf.javautils.jexpression.parser.model.Exp
tecgraf.javautils.jexpression.parser.model.BinaryOp
public class BinaryOp
Classe que armazena uma operação binária. As operações binárias possíveis são
listadas abaixo:
Operadores relacionais: "<=", "<", ">=", ">", "==", "!=", "&&", "||"
Operadores aritméticos: "+", "-", "*", "/", "^"
Abaixo listamos os outros tipos de operadores da linguagem.
Operador ternário: Question
Operador de acesso a campo: Field
Operadores unários: UnaryOp
Ex: a <= b, a + b * c, a || b, a == b, a != b
| Constructor Summary | |
|---|---|
BinaryOp(Exp first,
Symbol op,
Exp second)
Construtor. |
|
| Method Summary | |
|---|---|
Exp |
getFirst()
Primeiro operando. |
Symbol |
getOp()
Operador. |
Exp |
getSecond()
Segundo operando. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public BinaryOp(Exp first,
Symbol op,
Exp second)
first - primeiro operando.op - operador.second - segundo operando| Method Detail |
|---|
public Exp getFirst()
public Symbol getOp()
public Exp getSecond()
public String toString()
toString in class Exp
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||