Examples of Constant


Examples of org.csu.idl.idlmm.Constant

   * @param
   * @return
   * @throws ExpressionEvaluationException
   */
  private static String evaluate(ConstantDefRef e) throws ExpressionEvaluationException {
    Constant cons =  e.getConstant();
   
    if (cons instanceof EnumMember)
    {
      // El valor numerico de un EnumMember es el valor de su posicion en
      // la enumeracion
View Full Code Here

Examples of org.eclipse.jdt.internal.compiler.impl.Constant

   * Returns <code>true</code> if JDT optimized the condition to
   * <code>false</code>.
   */
  private static boolean isOptimizedFalse(Expression condition) {
    if (condition != null) {
      Constant cst = condition.optimizedBooleanConstant();
      if (cst != Constant.NotAConstant) {
        if (cst.booleanValue() == false) {
          return true;
        }
      }
    }
    return false;
View Full Code Here

Examples of org.ggp.base.util.propnet.architecture.components.Constant

    if ( literal instanceof GdlDistinct )
    {
      GdlDistinct distinct = (GdlDistinct) literal;

      Proposition proposition = new Proposition(GdlPool.getProposition(GdlPool.getConstant("anon")));
      Constant constant = new Constant(!distinct.getArg1().equals(distinct.getArg2()));

      link(constant, proposition);

      components.add(proposition);
      components.add(constant);
View Full Code Here

Examples of org.gwtoolbox.ioc.core.client.annotation.Constant

        Component component = method.getAnnotation(Component.class);
        return component.name();
    }

    protected String resolveConstantNameFromAnnotations(JField field) {
        Constant constant = field.getAnnotation(Constant.class);
        return constant.value();
    }
View Full Code Here

Examples of org.h2.schema.Constant

    public Expression optimize(Session session) {
        if (columnResolver == null) {
            Schema schema = session.getDatabase().findSchema(
                    tableAlias == null ? session.getCurrentSchemaName() : tableAlias);
            if (schema != null) {
                Constant constant = schema.findConstant(columnName);
                if (constant != null) {
                    return constant.getValue();
                }
            }
            String name = columnName;
            if (tableAlias != null) {
                name = tableAlias + "." + name;
View Full Code Here

Examples of org.jquantlib.math.functions.Constant

            fail(sb.toString());
        }
    }

    private void testSeveral(final Integrator I) {
        testSingle(I, "f(x) = 1",      new Constant(1.0),               0.0, 1.0, 1.0);
        testSingle(I, "f(x) = x",      new Identity(),                  0.0, 1.0, 0.5);
        testSingle(I, "f(x) = x^2",    new Square(),                    0.0, 1.0, 1.0/3.0);
        testSingle(I, "f(x) = sin(x)", new Sin(),                       0.0, Constants.M_PI, 2.0);
        testSingle(I, "f(x) = cos(x)", new Cos(),                       0.0, Constants.M_PI, 0.0);
        testSingle(I, "f(x) = Gaussian(x)", new NormalDistribution(), -10.0, 10.0, 1.0);
View Full Code Here

Examples of org.jreversepro.ast.expression.Constant

  @Test
  public void testSerializedArgs() {
    MethodAccessExpression mex;
   
    Expression exp1 = new Constant(4);
    Expression exp2 = new Constant(6);
   
    List<Expression> args = new ArrayList<Expression>();
    args.add(exp1);
    args.add(exp2);
   
View Full Code Here

Examples of org.lealone.dbobject.Constant

    public Expression optimize(Session session) {
        if (columnResolver == null) {
            Schema schema = session.getDatabase().findSchema(tableAlias == null ? session.getCurrentSchemaName() : tableAlias);
            if (schema != null) {
                Constant constant = schema.findConstant(columnName);
                if (constant != null) {
                    return constant.getValue();
                }
            }
            String name = columnName;
            if (tableAlias != null) {
                name = tableAlias + "." + name;
View Full Code Here

Examples of org.lilystudio.javascript.scope.Constant

        statement = new VariableStatement(getLineno());
        statement.setParent(this);
        statements.add(0, statement);
      }
      for (size--; size >= 0; size--) {
        Constant constant = constants.get(size);
        statement.addParam(statement.getLineno(), constant.getString(false),
            constant.getLiteral());
      }
    }

    writer.write("function");
    if (name != null) {
View Full Code Here

Examples of org.renjin.compiler.ir.tac.expressions.Constant

  }

  @Override
  public Expression translateToExpression(IRBodyBuilder builder, TranslationContext context, FunctionCall call) {
    if(call.getArguments().length() == 0) {
      return new Constant(Null.INSTANCE);
    } else {
      for(PairList.Node arg : call.getArguments().nodes()) {
        if(arg.hasNextNode()) {
          builder.translateStatements(context, arg.getValue());
        } else {
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.