slime.absynt
Class Constval

java.lang.Object
  extended byslime.absynt.Absynt
      extended byslime.absynt.Expr
          extended byslime.absynt.Constval
All Implemented Interfaces:
java.io.Serializable

public class Constval
extends Expr
implements java.io.Serializable

Constant values as expressions. Supported are integers and booleans.

Version:
$Id: Constval.java,v 1.5 2002/07/04 16:30:42 swprakt Exp $
Author:
Initially provided by Martin Steffen.
See Also:
Serialized Form

Field Summary
 java.lang.Object val
          Constant values are integers and booleans; they are directly implemented using the corresponding data types from Java.
 
Fields inherited from class slime.absynt.Expr
AND, DIV, EQ, GEQ, GREATER, LEQ, LESS, MINUS, MOD, NEG, NEQ, OR, PLUS, POW, TIMES, type
 
Fields inherited from class slime.absynt.Absynt
pos
 
Constructor Summary
Constval(boolean v)
          3 overloaded constructors.
Constval(double v)
           
Constval(int v)
           
 
Method Summary
 java.lang.Object accept(Visitors.IExpr ask)
          visitor acceptor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

val

public java.lang.Object val
Constant values are integers and booleans; they are directly implemented using the corresponding data types from Java.

Constructor Detail

Constval

public Constval(boolean v)
3 overloaded constructors. The value is stored as ``Object''


Constval

public Constval(int v)

Constval

public Constval(double v)
Method Detail

accept

public java.lang.Object accept(Visitors.IExpr ask)
                        throws java.lang.Exception
visitor acceptor

Specified by:
accept in class Expr
Throws:
java.lang.Exception