pl.edu.pjwstk.yaod.yaql.abstractsyntaxtree.expressions
Class BinaryExpression

java.lang.Object
  |
  +--pl.edu.pjwstk.yaod.yaql.abstractsyntaxtree.AbstractSyntaxTree
        |
        +--pl.edu.pjwstk.yaod.yaql.abstractsyntaxtree.Expression
              |
              +--pl.edu.pjwstk.yaod.yaql.abstractsyntaxtree.expressions.BinaryExpression
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
AlgebraicExpression, NonAlgebraicExpression

public abstract class BinaryExpression
extends Expression

The BinaryExpression class represents the binary expression nodes in the abstract syntax tree.

Author:
Jakub Trzetrzelewski, jakub_trzetrzelewski@yahoo.com
See Also:
Serialized Form

Field Summary
 Expression l
           
 Expression r
           
 
Constructor Summary
BinaryExpression(Expression l, Expression r)
          Creates a new binary expression node with the given expressions l and r.
 
Method Summary
 void show(java.lang.String st)
          Method responsible for displaying the binary node.
 
Methods inherited from class pl.edu.pjwstk.yaod.yaql.abstractsyntaxtree.AbstractSyntaxTree
accept, getLongestTypeAsSpacesString, getPreparedTypeAsString, getSpellingAndPosition, getTypeAsString, show
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

l

public Expression l

r

public Expression r
Constructor Detail

BinaryExpression

public BinaryExpression(Expression l,
                        Expression r)
Creates a new binary expression node with the given expressions l and r.
Parameters:
l - any expression.
r - any expression.
Method Detail

show

public void show(java.lang.String st)
Method responsible for displaying the binary node.
Overrides:
show in class AbstractSyntaxTree
Parameters:
st - the string which is an auxiliary tabulator.