public class BinaryExpressionHelper
extends Object
| Modifiers | Name | Description |
|---|---|---|
protected WriterController |
controller |
| Constructor and description |
|---|
BinaryExpressionHelper(WriterController wc) |
| Type Params | Return Type | Name and description |
|---|---|---|
|
protected void |
assignToArray(Expression parent, Expression receiver, Expression index, Expression rhsValueLoader, boolean safe) |
|
public void |
eval(BinaryExpression expression) |
|
protected void |
evaluateArrayAssignmentWithOperator(String method, BinaryExpression expression, BinaryExpression leftBinExpr) |
|
protected void |
evaluateBinaryExpression(String message, BinaryExpression expression) |
|
protected void |
evaluateBinaryExpressionWithAssignment(String method, BinaryExpression expression) |
|
protected void |
evaluateCompareExpression(MethodCaller compareMethod, BinaryExpression expression) |
|
protected void |
evaluateCompoundAssign(String assignName, String baseName, BinaryExpression expression)GEP-15: dynamic-mode compound-assign codegen. |
|
public void |
evaluateElvisEqual(BinaryExpression expression) |
|
public void |
evaluateEqual(BinaryExpression expression, boolean defineVariable) |
|
public void |
evaluatePostfixMethod(PostfixExpression expression) |
|
public void |
evaluatePrefixMethod(PrefixExpression expression) |
|
public void |
evaluateTernary(TernaryExpression expression) |
|
public WriterController |
getController() |
|
public MethodCaller |
getIsCaseMethod() |
|
protected void |
writePostOrPrefixMethod(int op, String method, Expression expression, Expression orig) |
GEP-15: dynamic-mode compound-assign codegen. Routes through
ScriptBytecodeAdapter.compoundAssign
which dispatches to assignName when the receiver responds to it,
and falls back to baseName otherwise. The caller stores the helper's
return value into the LHS — for the in-place branch this is a no-op store
of the receiver back to itself; for the fallback branch it is the usual
"x = x.op(y)" assignment.
Copyright © 2003-2026 The Apache Software Foundation. All rights reserved.