Examples of NullLiteral


Examples of com.dragome.compiler.ast.NullLiteral

        break;
      }

      case Const.ACONST_NULL:

        instruction= new NullLiteral();
        break;

      case Const.JSR:
      {

        instruction= new JumpSubRoutine(currentIndex + bytes.readShort());
        opStackDelta= 0;
        break;
      }

      case Const.JSR_W:
      {

        instruction= new JumpSubRoutine(currentIndex + bytes.readInt());
        break;
      }

      case Const.IFEQ:

        instruction= createConditional(currentIndex, InfixExpression.Operator.EQUALS, NumberLiteral.create(0));
        break;
      case Const.IFNE:

        instruction= createConditional(currentIndex, InfixExpression.Operator.NOT_EQUALS, NumberLiteral.create(0));
        break;
      case Const.IFGE:

        instruction= createConditional(currentIndex, InfixExpression.Operator.GREATER_EQUALS, NumberLiteral.create(0));
        break;
      case Const.IFGT:

        instruction= createConditional(currentIndex, InfixExpression.Operator.GREATER, NumberLiteral.create(0));
        break;
      case Const.IFLE:

        instruction= createConditional(currentIndex, InfixExpression.Operator.LESS_EQUALS, NumberLiteral.create(0));
        break;
      case Const.IFLT:

        instruction= createConditional(currentIndex, InfixExpression.Operator.LESS, NumberLiteral.create(0));
        break;
      case Const.IFNONNULL:

        instruction= createConditional(currentIndex, InfixExpression.Operator.NOT_EQUALS, new NullLiteral());
        break;
      case Const.IFNULL:

        instruction= createConditional(currentIndex, InfixExpression.Operator.EQUALS, new NullLiteral());
        break;

      case Const.IF_ACMPEQ:

      case Const.IF_ICMPEQ:
View Full Code Here

Examples of com.facebook.presto.sql.tree.NullLiteral

        return new StringLiteral(value);
    }

    private static NullLiteral nullLiteral()
    {
        return new NullLiteral();
    }
View Full Code Here

Examples of com.facebook.presto.sql.tree.NullLiteral

        if (object instanceof Expression) {
            return (Expression) object;
        }

        if (object == null) {
            return new Cast(new NullLiteral(), type.getName());
        }

        if (type.equals(BIGINT)) {
            return new LongLiteral(object.toString());
        }
View Full Code Here

Examples of com.facebook.presto.sql.tree.NullLiteral

        if (object instanceof Boolean) {
            return new BooleanLiteral(object.toString());
        }

        if (object == null) {
            return new NullLiteral();
        }

        throw new UnsupportedOperationException("not yet implemented: " + object.getClass().getName());
    }
View Full Code Here

Examples of com.facebook.presto.sql.tree.NullLiteral

        return new StringLiteral(value);
    }

    private static NullLiteral nullLiteral()
    {
        return new NullLiteral();
    }
View Full Code Here

Examples of com.google.caja.parser.js.NullLiteral

      Function<? super T, Expression> f) {
    FilePosition unk = FilePosition.UNKNOWN;
    ArrayConstructor arr = new ArrayConstructor(
        unk, Collections.<Expression>emptyList());
    for (T el : it) {
      arr.appendChild(el == null ? new NullLiteral(unk) : f.apply(el));
    }
    return arr;
  }
View Full Code Here

Examples of com.google.minijoe.compiler.ast.NullLiteral

      readToken(Token.KEYWORD_THIS);
      return new ThisLiteral();

    } else if (nextToken == Token.KEYWORD_NULL) {
      readToken(Token.KEYWORD_NULL);
      return new NullLiteral();

    } else if (nextToken == Token.KEYWORD_TRUE) {
      readToken(Token.KEYWORD_TRUE);
      return new BooleanLiteral(true);
View Full Code Here

Examples of com.google.minijoe.compiler.ast.NullLiteral

  }

  public void testNullLiteral() throws CompilerException {
    assertParserOutput(
        new ExpressionStatement(
            new NullLiteral()
        ),
        "null;"
    );
  }
View Full Code Here

Examples of lombok.ast.NullLiteral

        return;
      case STRING_LITERAL:
        set(node, new StringLiteral().astValue(val == null ? "" : val.toString()));
        return;
      case NULL_LITERAL:
        set(node, new NullLiteral());
        return;
      }
     
      if (literal != null) {
        if (negative) set(node, new UnaryExpression().astOperand(setPos(node, literal)).astOperator(UnaryOperator.UNARY_MINUS));
View Full Code Here

Examples of net.timewalker.ffmq3.common.message.selector.expression.literal.NullLiteral

            return new BooleanLiteral(Boolean.FALSE);
        }
        if (currentToken.equalsIgnoreCase("null"))
        {
            readNextToken(); // skip 'null'
            return new NullLiteral();
        }
        if (currentToken.equalsIgnoreCase("not true"))
        {
            readNextToken(); // skip 'not true'
            return new BooleanLiteral(Boolean.FALSE);
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.