public final class SLLogicalAndNode extends SLShortCircuitNode
| Constructor and Description |
|---|
SLLogicalAndNode(SLExpressionNode left,
SLExpressionNode right) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
execute(boolean left,
boolean right)
Only if left and right value are true the result of the logical and is
true. |
protected boolean |
isEvaluateRight(boolean left)
The right value does not need to be evaluated if the left value is already
false
. |
executeBoolean, executeGenericaddExpressionTag, createWrapper, executeLong, executeVoid, hasTagaddRootTag, addStatementTag, formatSourceSection, getSourceCharIndex, getSourceEndIndex, getSourceLength, getSourceSection, hasSource, isInstrumentable, setSourceSection, setUnavailableSourceSection, toStringfindBlock, getVisibleVariablesIndexOnEnter, hasScope, setVisibleVariablesIndexOnEnter, setVisibleVariablesIndexOnExitaccept, adoptChildren, atomic, atomic, copy, deepCopy, getChildren, getCost, getDebugProperties, getDescription, getEncapsulatingSourceSection, getLock, getParent, getRootNode, insert, insert, isAdoptable, isSafelyReplaceableBy, notifyInserted, onReplace, replace, replace, reportPolymorphicSpecializepublic SLLogicalAndNode(SLExpressionNode left, SLExpressionNode right)
protected boolean isEvaluateRight(boolean left)
false
.isEvaluateRight in class SLShortCircuitNodeprotected boolean execute(boolean left,
boolean right)
true. If
the second parameter is not evaluated, false is provided.execute in class SLShortCircuitNode