Changeset 2742


Ignore:
Timestamp:
May 5, 2007, 12:46:22 AM (14 years ago)
Author:
yura
Message:
  • Misuse of Box: class refal.plus.box was used instead of org.refal.plus.Box.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • to-imperative/trunk/java/refal/plus/Class.java

    r2652 r2742  
    66
    77import org.refal.plus.*;
    8 import java.math.BigInteger;
    98
    109public final class Class
     
    1211    public static boolean IsBox (Expr e)
    1312    {
    14         return e.getLen() == 1 && e.at(0) instanceof Box;
     13        return e.getLen() == 1 && e.at(0) instanceof org.refal.plus.Box;
    1514    }
    1615
    1716    public static boolean IsChannel (Expr e)
    1817    {
    19         return e.getLen() == 1 && e.at(0) instanceof Channel;
     18        return e.getLen() == 1 && e.at(0) instanceof org.refal.plus.Channel;
    2019    }
    2120
     
    3736    public static boolean IsFunc (Expr e)
    3837    {
    39         return e.getLen() == 1 && e.at(0) instanceof Func;
     38        return e.getLen() == 1 && e.at(0) instanceof org.refal.plus.Func;
    4039    }
    4140
    4241    public static boolean IsInt (Expr e)
    4342    {
    44         return e.getLen() == 1 && e.at(0) instanceof BigInteger;
     43        return e.getLen() == 1 && e.at(0) instanceof java.math.BigInteger;
    4544    }
    4645
     
    5554    }
    5655
     56    public static boolean IsString (Expr e)
     57    {
     58        return e.getLen() == 1 && e.at(0) instanceof org.refal.plus.String;
     59    }
     60
    5761    public static boolean IsTable (Expr e)
    5862    {
    59         return e.getLen() == 1 && e.at(0) instanceof Table;
     63        return e.getLen() == 1 && e.at(0) instanceof org.refal.plus.Table;
    6064    }
    6165
    6266    public static boolean IsVector (Expr e)
    6367    {
    64         return e.getLen() == 1 && e.at(0) instanceof Vector;
    65     }
    66 
    67     public static boolean IsString (Expr e)
    68     {
    69         return e.getLen() == 1 && e.at(0) instanceof String;
     68        return e.getLen() == 1 && e.at(0) instanceof org.refal.plus.Vector;
    7069    }
    7170
    7271    public static boolean IsWord (Expr e)
    7372    {
    74         return e.getLen() == 1 && e.at(0) instanceof Word;
     73        return e.getLen() == 1 && e.at(0) instanceof org.refal.plus.Word;
    7574    }
    7675}
Note: See TracChangeset for help on using the changeset viewer.