Package anvil.core

Examples of anvil.core.Any.toBoolean()


          case Any.IS_UNDEFINED:
            buffer.append("null");
            break;

          case Any.IS_BOOLEAN:
            buffer.append(data.toBoolean() ? "'true'" : "'false'");
            break;

          case Any.IS_INT:
            buffer.append(data.toLong());
            break;
View Full Code Here


          } else {
            node.compile(this, Node.GET_BOOLEAN);
          }
        } else {
          if (defaultValue != null) {
            code.iconst(defaultValue.toBoolean());
          } else {
            code.iconst(false);
          }
        }
        break;
View Full Code Here


  public Any eval()
  {
    Any left = _left.eval();
    if (left.toBoolean()) {
      return left;
    } else {
      return _right.eval();
    }
  }
View Full Code Here


  public Any eval()
  {
    Any result = getChild(0).eval();
    if (result.toBoolean()) {
      return getChild(1).eval();
    } else {
      return getChild(2).eval();
    }
  }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.