cetus.hir
Class StatementExpression

java.lang.Object
  extended by cetus.hir.Expression
      extended by cetus.hir.StatementExpression
All Implemented Interfaces:
Printable, Traversable, java.lang.Cloneable, java.lang.Comparable<Expression>

public class StatementExpression
extends Expression

This is a GCC extension.


Field Summary
 
Fields inherited from class cetus.hir.Expression
children, needs_parens, object_print_method, parent
 
Constructor Summary
StatementExpression(CompoundStatement stmt)
           
 
Method Summary
static void defaultPrint(StatementExpression expr, java.io.OutputStream stream)
           
 CompoundStatement getStatement()
          Get the Statement containing this Expression.
 java.lang.String toString()
          Every expression class should override toString method.
 
Methods inherited from class cetus.hir.Expression
clone, compareTo, equals, equals2, findExpression, getChildren, getParent, needsParens, print, printSelf, removeChild, setChild, setParens, setParent, setPrintMethod, swapWith, verify
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StatementExpression

public StatementExpression(CompoundStatement stmt)
Method Detail

defaultPrint

public static void defaultPrint(StatementExpression expr,
                                java.io.OutputStream stream)

toString

public java.lang.String toString()
Description copied from class: Expression
Every expression class should override toString method.

Overrides:
toString in class Expression

getStatement

public CompoundStatement getStatement()
Description copied from class: Expression
Get the Statement containing this Expression.

Overrides:
getStatement in class Expression
Returns:
the enclosing Statement or null if this Expression is not inside a Statement.