orc.ast.extended
Class Declare

java.lang.Object
  extended by orc.ast.extended.Expression
      extended by orc.ast.extended.Declare
All Implemented Interfaces:
Locatable, Located

public class Declare
extends Expression

A declaration together with its scope in the AST.

Author:
dkitchin

Nested Class Summary
 
Nested classes/interfaces inherited from class orc.ast.extended.Expression
Expression.Arg
 
Constructor Summary
Declare(Declaration d, Expression e)
           
 
Method Summary
 Expression simplify()
          Simplify an expression which occurs in a call (non-nested) position.
 java.lang.String toString()
           
 
Methods inherited from class orc.ast.extended.Expression
argify, getSourceLocation, join, setSourceLocation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Declare

public Declare(Declaration d,
               Expression e)
Method Detail

simplify

public Expression simplify()
                    throws CompilationException
Description copied from class: Expression
Simplify an expression which occurs in a call (non-nested) position.

Specified by:
simplify in class Expression
Returns:
The simplified expression
Throws:
CompilationException

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object