slime.absynt
Class Variable

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

public class Variable
extends Expr
implements java.io.Serializable

Variables of the simple assignement language. They are very simply implemented as strings

Version:
$Id: Variable.java,v 1.7 2002/07/04 16:30:43 swprakt Exp $
Author:
Initially provided by Martin Steffen/Karsten Stahl.
See Also:
Serialized Form

Field Summary
 boolean inputvar
           
 java.lang.String name
           
 boolean outputvar
           
 Type type
           
 
Fields inherited from class slime.absynt.Expr
AND, DIV, EQ, GEQ, GREATER, LEQ, LESS, MINUS, MOD, NEG, NEQ, OR, PLUS, POW, TIMES
 
Fields inherited from class slime.absynt.Absynt
pos
 
Constructor Summary
Variable(java.lang.String s)
           
Variable(java.lang.String s, boolean _i, boolean _o)
           
Variable(java.lang.String s, Type _t)
           
 
Method Summary
 java.lang.Object accept(Visitors.IExpr ask)
          visitor acceptor
 boolean equals(Variable v)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

name

public java.lang.String name

type

public Type type

inputvar

public boolean inputvar

outputvar

public boolean outputvar
Constructor Detail

Variable

public Variable(java.lang.String s)

Variable

public Variable(java.lang.String s,
                Type _t)

Variable

public Variable(java.lang.String s,
                boolean _i,
                boolean _o)
Method Detail

equals

public boolean equals(Variable v)

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