[wadalabfont-kit] / java / LispObject.java  

View of /java/LispObject.java

Parent Directory | Revision Log
Revision: 1.1.1.1 - (download) (as text) (annotate) (vendor branch)
Thu Dec 28 08:54:22 2000 UTC (23 years, 11 months ago) by ktanaka
Branch: ktanaka, MAIN
CVS Tags: SNAP-20030702, tmp, SNAP-20030624, SNAP-20030630, SNAP-20040518, HEAD
Changes since 1.1: +0 -0 lines
change to CVS wadalab font project
public abstract class LispObject{
  static final int FIXNUM=0;
  static final int SYMBOL=1;
  static final int CONS=2;
  static final int STRING=3;
  static final int FLONUM=4;
  abstract int getType();
  public int getInteger() throws LispException{
    throw LispException.typeerr;
  }
  public String getName() throws LispException{
    throw LispException.typeerr;
  }
  public LispObject car() throws LispException{
    throw LispException.typeerr;
  }
  public LispObject cdr() throws LispException{
    throw LispException.typeerr;
  }
  public LispObject setCar() throws LispException{
    throw LispException.typeerr;
  }
  public LispObject setCdr() throws LispException{
    throw LispException.typeerr;
  }
  public double getDouble() throws LispException{
    throw LispException.typeerr;
  }
  public String getString() throws LispException{
    throw LispException.typeerr;
  }
  public int length() throws LispException{
    LispObject l=this;
    int i=0;
    while(l.getType()==CONS){
      i++;
      l=l.cdr();
    }
    return i;
  }
}

ktanaka

Powered by ViewCVS 1.0-dev

ViewCVS and CVS Help