| Modifier and Type | Field and Description |
|---|---|
| private Expression | |
| private final Token | |
| private Expression | |
| private boolean |
| Access | Constructor and Description |
|---|---|
| public | |
| public | BinaryExpression(Expression leftExpression, Token operation, Expression rightExpression, boolean safe)
|
| Modifier and Type | Method and Description |
|---|---|
| public Expression | |
| public Token | |
| public Expression | |
| public String | |
| public boolean | |
| public static BinaryExpression | newAssignmentExpression(Variable variable, Expression rhs)
Creates an assignment expression in which the specified expression is written into the specified variable name. |
| public static BinaryExpression | newInitializationExpression(String variable, ClassNode type, Expression rhs)
Creates variable initialization expression in which the specified expression is written into the specified variable name. |
| public void | |
| public void | |
| public void | |
| public String | |
| public Expression | transformExpression(ExpressionTransformer transformer)
Implements abstract org. |
| public void |
| leftExpression | back to summary |
|---|---|
| private Expression leftExpression | |
| operation | back to summary |
|---|---|
| private final Token operation | |
| rightExpression | back to summary |
|---|---|
| private Expression rightExpression | |
| safe | back to summary |
|---|---|
| private boolean safe | |
| BinaryExpression | back to summary |
|---|---|
| public BinaryExpression(Expression leftExpression, Token operation, Expression rightExpression) | |
| BinaryExpression | back to summary |
|---|---|
| public BinaryExpression(Expression leftExpression, Token operation, Expression rightExpression, boolean safe) | |
| getLeftExpression | back to summary |
|---|---|
| public Expression getLeftExpression() | |
| getOperation | back to summary |
|---|---|
| public Token getOperation() | |
| getRightExpression | back to summary |
|---|---|
| public Expression getRightExpression() | |
| getText | back to summary |
|---|---|
| public String getText() Overrides org. | |
| isSafe | back to summary |
|---|---|
| public boolean isSafe() | |
| newAssignmentExpression | back to summary |
|---|---|
| public static BinaryExpression newAssignmentExpression(Variable variable, Expression rhs) Creates an assignment expression in which the specified expression is written into the specified variable name. | |
| newInitializationExpression | back to summary |
|---|---|
| public static BinaryExpression newInitializationExpression(String variable, ClassNode type, Expression rhs) Creates variable initialization expression in which the specified expression is written into the specified variable name. | |
| setLeftExpression | back to summary |
|---|---|
| public void setLeftExpression(Expression leftExpression) | |
| setRightExpression | back to summary |
|---|---|
| public void setRightExpression(Expression rightExpression) | |
| setSafe | back to summary |
|---|---|
| public void setSafe(boolean safe) | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
| |
| transformExpression | back to summary |
|---|---|
| public Expression transformExpression(ExpressionTransformer transformer) Implements abstract org. Doc from org. Return a copy of the expression calling the transformer on any nested expressions | |
| visit | back to summary |
|---|---|
| public void visit(GroovyCodeVisitor visitor) Overrides org. | |