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

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

public abstract class UnaryExpression
extends Expression

The UnaryExpression class represents the unary expression nodes in the abstract syntax tree.

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

Field Summary
 Expression r
           
 
Constructor Summary
UnaryExpression(Expression r)
          Creates a new unary expression node with the given expression r.
 
Method Summary
 void show(java.lang.String st)
          Method responsible for displaying the unary 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

r

public Expression r
Constructor Detail

UnaryExpression

public UnaryExpression(Expression r)
Creates a new unary expression node with the given expression r.
Parameters:
r - any expression.
Method Detail

show

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