Examples of FloatNode


Examples of com.google.template.soy.exprtree.FloatNode

    } else if (primitiveData instanceof BooleanData) {
      return new BooleanNode(primitiveData.booleanValue());
    } else if (primitiveData instanceof IntegerData) {
      return new IntegerNode(primitiveData.integerValue());
    } else if (primitiveData instanceof FloatData) {
      return new FloatNode(primitiveData.floatValue());
    } else if (primitiveData instanceof NullData) {
      return new NullNode();
    } else {
      throw new IllegalArgumentException();
    }
View Full Code Here

Examples of info.bliki.wiki.template.expr.ast.FloatNode

    return new PostfixOperator(operatorStr, headStr, precedence);
  }

  @Override
  public ASTNode createDouble(final String doubleString) {
    return new FloatNode(doubleString);
  }
View Full Code Here

Examples of info.bliki.wiki.template.expr.ast.FloatNode

        return new PostfixOperator(operatorStr, headStr, precedence);
    }

    @Override
    public ASTNode createDouble(final String doubleString) {
        return new FloatNode(doubleString);
    }
View Full Code Here

Examples of info.bliki.wiki.template.expr.ast.FloatNode

  static public PostfixOperator createPostfixOperator(final String operatorStr, final String headStr, final int precedence) {
    return new PostfixOperator(operatorStr, headStr, precedence);
  }

  public ASTNode createDouble(final String doubleString) {
    return new FloatNode(doubleString);
  }
View Full Code Here

Examples of org.jruby.ast.FloatNode

                    }
                });
    }

    public void compileFloat(Node node, BodyCompiler context) {
        FloatNode floatNode = (FloatNode) node;

        context.createNewFloat(floatNode.getValue());
    }
View Full Code Here

Examples of org.jruby.ast.FloatNode

        } catch (NumberFormatException e) {
            warnings.warn(ID.FLOAT_OUT_OF_RANGE, getPosition(), "Float " + number + " out of range.", number);

            d = number.startsWith("-") ? Double.NEGATIVE_INFINITY : Double.POSITIVE_INFINITY;
        }
        yaccValue = new FloatNode(getPosition(), d);
        return Tokens.tFLOAT;
    }
View Full Code Here

Examples of org.jruby.ast.FloatNode

                    }
                });
    }

    public void compileFloat(Node node, BodyCompiler context, boolean expr) {
        FloatNode floatNode = (FloatNode) node;

        if (expr) context.createNewFloat(floatNode.getValue());
    }
View Full Code Here

Examples of org.jruby.ast.FloatNode

        } catch (NumberFormatException e) {
            warnings.warn(ID.FLOAT_OUT_OF_RANGE, getPosition(), "Float " + number + " out of range.");

            d = number.startsWith("-") ? Double.NEGATIVE_INFINITY : Double.POSITIVE_INFINITY;
        }
        yaccValue = new FloatNode(getPosition(), d);
        return Tokens.tFLOAT;
    }
View Full Code Here

Examples of org.jruby.ast.FloatNode

        } catch (NumberFormatException e) {
            warnings.warn(ID.FLOAT_OUT_OF_RANGE, getPosition(), "Float " + number + " out of range.");

            d = number.startsWith("-") ? Double.NEGATIVE_INFINITY : Double.POSITIVE_INFINITY;
        }
        yaccValue = new FloatNode(getPosition(), d);
        return Tokens.tFLOAT;
    }
View Full Code Here

Examples of org.jruby.ast.FloatNode

        } catch (NumberFormatException e) {
            warnings.warn(ID.FLOAT_OUT_OF_RANGE, getPosition(), "Float " + number + " out of range.");

            d = number.startsWith("-") ? Double.NEGATIVE_INFINITY : Double.POSITIVE_INFINITY;
        }
        yaccValue = new FloatNode(getPosition(), d);
        return Tokens.tFLOAT;
    }
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.