Examples of StandardLispInteger


Examples of org.jatha.dynatype.StandardLispInteger

    T = new StandardLispConstant(this, "T");
    EVAL.intern(makeString("T"), T, f_systemPackage);
    T.setf_symbol_value(T);

    ZERO = new StandardLispInteger(this, 0);
    ONE  = new StandardLispInteger(this, 1);
    TWO  = new StandardLispInteger(this, 2);

    E    = new StandardLispReal(this, StrictMath.E);
    PI   = new StandardLispReal(this, StrictMath.PI);

    COLON   = new StandardLispCharacter(this, ':');
View Full Code Here

Examples of org.jatha.dynatype.StandardLispInteger

   * Sets the value of *MAX-LIST-LENGTH*.
   * This vlaue is only used to prevent runaway list processing.
   */
  public void setMaxListLength(long newLength)
  {
    MAX_LIST_LENGTH.setf_symbol_value(new StandardLispInteger(this, newLength));
  }
View Full Code Here

Examples of org.jatha.dynatype.StandardLispInteger

   * Sets the value of *MAX-LIST-LENGTH*.
   * This vlaue is only used to prevent runaway list processing.
   */
  public  void setMaxListLength(LispNumber newLength)
  {
    MAX_LIST_LENGTH.setf_symbol_value(new StandardLispInteger(this, (long)(newLength.getDoubleValue())));
  }
View Full Code Here

Examples of org.jatha.dynatype.StandardLispInteger

    STAR.setf_symbol_value(NIL);
    STARSTAR.setf_symbol_value(NIL);
    STARSTARSTAR.setf_symbol_value(NIL);

    MAX_LIST_LENGTH = EVAL.intern("*MAX-LIST-LENGTH*",f_systemPackage);
    MAX_LIST_LENGTH.setf_symbol_value(new StandardLispInteger(this, MAX_LIST_LENGTH_VALUE));

    f_systemPackage.export(STAR);
    f_systemPackage.export(STARSTAR);
    f_systemPackage.export(STARSTARSTAR);
    f_systemPackage.export(MAX_LIST_LENGTH);
View Full Code Here

Examples of org.jatha.dynatype.StandardLispInteger

   * @return LispInteger
   *
   */
  public LispInteger makeInteger(Long value)
  {
    return new StandardLispInteger(this, value.longValue());
  }
View Full Code Here

Examples of org.jatha.dynatype.StandardLispInteger

    return new StandardLispInteger(this, value.longValue());
  }

  public LispInteger makeInteger(long value)
  {
    return new StandardLispInteger(this, value);
  }
View Full Code Here

Examples of org.jatha.dynatype.StandardLispInteger

    return new StandardLispInteger(this, value);
  }

  public LispInteger makeInteger(Integer value)
  {
    return new StandardLispInteger(this, value.longValue());
  }
View Full Code Here

Examples of org.jatha.dynatype.StandardLispInteger

    return new StandardLispInteger(this, value.longValue());
  }

  public LispInteger makeInteger(int value)
  {
    return new StandardLispInteger(this, (long) value);
  }
View Full Code Here

Examples of org.jatha.dynatype.StandardLispInteger

    return new StandardLispInteger(this, (long) value);
  }

  public LispInteger makeInteger()
  {
    return new StandardLispInteger(this, 0);
  }
View Full Code Here

Examples of org.jatha.dynatype.StandardLispInteger

    if (obj instanceof LispValue)
      return (LispValue) obj;

    if (obj instanceof Integer)
      return new StandardLispInteger(this, ((Integer) obj).intValue());

    else if (obj instanceof Long)
      return new StandardLispInteger(this, ((Long) obj).longValue());

    else if (obj instanceof Double)
      return new StandardLispReal(this, ((Double) obj).doubleValue());

    else if (obj instanceof Float)
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.