edu.toronto.cs.expr
Class NullaryOperator

java.lang.Object
  extended by edu.toronto.cs.expr.NullaryOperator
All Implemented Interfaces:
Operator
Direct Known Subclasses:
CILDeclarationPointerOp, CILEmptyStmtOp, CILNullOp, JavaObjectOp, RationalOp, VariableOp

public abstract class NullaryOperator
extends java.lang.Object
implements Operator


Constructor Summary
NullaryOperator()
           
 
Method Summary
 int arity()
          Arrity of this operator
 boolean isWellFormed(Expr[] args)
          true if this operator is well-formed with this arguments provided that the arguments are well formed themselves
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface edu.toronto.cs.expr.Operator
name
 

Constructor Detail

NullaryOperator

public NullaryOperator()
Method Detail

arity

public int arity()
Description copied from interface: Operator
Arrity of this operator

Specified by:
arity in interface Operator
Returns:
an int value

isWellFormed

public boolean isWellFormed(Expr[] args)
Description copied from interface: Operator
true if this operator is well-formed with this arguments provided that the arguments are well formed themselves

Specified by:
isWellFormed in interface Operator
Parameters:
args - an Expr[] value
Returns:
a boolean value