Java Code Examples for org.springframework.expression.spel.support.BooleanTypedValue#TRUE
The following examples show how to use
org.springframework.expression.spel.support.BooleanTypedValue#TRUE .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: OpOr.java From spring-analysis-note with MIT License | 5 votes |
@Override public BooleanTypedValue getValueInternal(ExpressionState state) throws EvaluationException { if (getBooleanValue(state, getLeftOperand())) { // no need to evaluate right operand return BooleanTypedValue.TRUE; } return BooleanTypedValue.forValue(getBooleanValue(state, getRightOperand())); }
Example 2
Source File: BooleanLiteral.java From spring-analysis-note with MIT License | 5 votes |
@Override public void generateCode(MethodVisitor mv, CodeFlow cf) { if (this.value == BooleanTypedValue.TRUE) { mv.visitLdcInsn(1); } else { mv.visitLdcInsn(0); } cf.pushDescriptor(this.exitTypeDescriptor); }
Example 3
Source File: OpOr.java From java-technology-stack with MIT License | 5 votes |
@Override public BooleanTypedValue getValueInternal(ExpressionState state) throws EvaluationException { if (getBooleanValue(state, getLeftOperand())) { // no need to evaluate right operand return BooleanTypedValue.TRUE; } return BooleanTypedValue.forValue(getBooleanValue(state, getRightOperand())); }
Example 4
Source File: BooleanLiteral.java From java-technology-stack with MIT License | 5 votes |
@Override public void generateCode(MethodVisitor mv, CodeFlow cf) { if (this.value == BooleanTypedValue.TRUE) { mv.visitLdcInsn(1); } else { mv.visitLdcInsn(0); } cf.pushDescriptor(this.exitTypeDescriptor); }
Example 5
Source File: OpOr.java From lams with GNU General Public License v2.0 | 5 votes |
@Override public BooleanTypedValue getValueInternal(ExpressionState state) throws EvaluationException { if (getBooleanValue(state, getLeftOperand())) { // no need to evaluate right operand return BooleanTypedValue.TRUE; } return BooleanTypedValue.forValue(getBooleanValue(state, getRightOperand())); }
Example 6
Source File: BooleanLiteral.java From lams with GNU General Public License v2.0 | 5 votes |
@Override public void generateCode(MethodVisitor mv, CodeFlow cf) { if (this.value == BooleanTypedValue.TRUE) { mv.visitLdcInsn(1); } else { mv.visitLdcInsn(0); } cf.pushDescriptor(this.exitTypeDescriptor); }
Example 7
Source File: OpOr.java From spring4-understanding with Apache License 2.0 | 5 votes |
@Override public BooleanTypedValue getValueInternal(ExpressionState state) throws EvaluationException { if (getBooleanValue(state, getLeftOperand())) { // no need to evaluate right operand return BooleanTypedValue.TRUE; } return BooleanTypedValue.forValue(getBooleanValue(state, getRightOperand())); }
Example 8
Source File: BooleanLiteral.java From spring4-understanding with Apache License 2.0 | 5 votes |
@Override public void generateCode(MethodVisitor mv, CodeFlow cf) { if (this.value == BooleanTypedValue.TRUE) { mv.visitLdcInsn(1); } else { mv.visitLdcInsn(0); } cf.pushDescriptor(this.exitTypeDescriptor); }