kiama.example.imperative.AST

class Binary

[source: kiama/example/imperative/AST.scala]

abstract class Binary(l : Exp, r : Exp)
extends Exp
Binary expressions.
Direct Known Subclasses:
AST.Add, AST.Sub, AST.Mul, AST.Div

Method Summary
override def depth : Int
The depth of the expression, i.e., the number of levels from the root to the leaf values.
override def divsbyzero : Int
The number of divisions by the constant zero in the expression.
override def intadds : Int
The number of additions of integer constants in the expression.
override def vars : scala.collection.immutable.Set[java.lang.String]
The set of all variable references in the expression.
Methods inherited from scala.Product
scala.Product.productElement (abstract), scala.Product.productArity (abstract), scala.Product.productPrefix
Methods inherited from AnyRef
getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized
Methods inherited from Any
==, !=, isInstanceOf, asInstanceOf
Methods inherited from Exp
value (abstract)
Methods inherited from PrettyPrintable
pretty (abstract)
Method Details
override def vars : scala.collection.immutable.Set[java.lang.String]
The set of all variable references in the expression.
Overrides
Exp.vars

override def divsbyzero : Int
The number of divisions by the constant zero in the expression.
Overrides
Exp.divsbyzero

override def depth : Int
The depth of the expression, i.e., the number of levels from the root to the leaf values.
Overrides
Exp.depth

override def intadds : Int
The number of additions of integer constants in the expression.
Overrides
Exp.intadds