Examples of FloatLiteral


Examples of au.csiro.ontology.model.FloatLiteral

                    break;
                case OWL_RATIONAL:
                case OWL_REAL:
                case XSD_DECIMAL:
                    if(useSimpleFloats) {
                        res = new FloatLiteral(Float.parseFloat(literal));
                    } else {
                        res = new DecimalLiteral(new BigDecimal(literal));
                    }
                    break;
                default:
View Full Code Here

Examples of au.csiro.ontology.model.FloatLiteral

    public static Literal createIntegerLiteral(int value) {
        return new IntegerLiteral(value);
    }
   
    public static Literal createFloatLiteral(float value) {
        return new FloatLiteral(value);
    }
View Full Code Here

Examples of org.apache.expreval.expr.literal.FloatLiteral

                if (obj instanceof Long)
                    return new LongLiteral((Long)obj);

                if (obj instanceof Float)
                    return new FloatLiteral((Float)obj);

                if (obj instanceof Double)
                    return new DoubleLiteral((Double)obj);
            }
            throw new InternalErrorException(this.getTypeSignature().getReturnType().getSimpleName());
View Full Code Here

Examples of org.apache.expreval.expr.literal.FloatLiteral

        if (val instanceof Long)
            return new LongLiteral((Long)val);

        if (val instanceof Float)
            return new FloatLiteral((Float)val);

        if (val instanceof Double)
            return new DoubleLiteral((Double)val);

        if (val instanceof String)
View Full Code Here

Examples of org.eclipse.jdt.internal.compiler.ast.FloatLiteral

          this.scanner.startPosition,
          this.scanner.currentPosition - 1));
      break;
    case TokenNameFloatingPointLiteral :
      pushOnExpressionStack(
        new FloatLiteral(
          this.scanner.getCurrentTokenSource(),
          this.scanner.startPosition,
          this.scanner.currentPosition - 1));
      break;
    case TokenNameDoubleLiteral :
View Full Code Here

Examples of rocket.generator.rebind.codeblock.FloatLiteral

      if (type == context.getLong()) {
        literal = new LongLiteral(this.getLongValue());
        break;
      }
      if (type == context.getFloat()) {
        literal = new FloatLiteral(this.getFloatValue());
        break;
      }
      if (type == context.getDouble()) {
        literal = new DoubleLiteral(this.getDoubleValue());
        break;
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.