gov.nasa.arc.brahms.common.data
Interface IExpression

All Known Implementing Classes:
ArrayAccess, ArrayCreation, ArrayInitializer, ConstructorInvocation, Expression, Invocation, MethodInvocation, VMArrayAccess, VMArrayCreation, VMArrayInitializer, VMConstructorInvocation, VMExpression, VMMethodInvocation

public interface IExpression

IExpression is an interface for general expressions in the Brahms language that may appear on the right-hand side of assignments and as arguments to method and constructor invocations

Version:
$Revision: 1.1 $ $Date: 2009/11/23 18:28:41 $ $Author: rnado $
Author:
Bob Nado

Method Summary
 void export(IFormat format, java.util.Properties p, java.io.DataOutputStream out)
          Exports this object in the given format with the given properties to the given stream.
 Type getCollectType()
          Returns the Brahms type of the expression when it contains one or more collectall variables and the values of the expression should be accumulated in a list before assigning to a variable or passing the result to a Java method, constructor, or array initializer.
 void getParameters(java.util.LinkedList ll)
          Adds to a supplied list all the parameters used in the expression.
 void getVariables(java.util.LinkedList ll)
          Adds to a supplied list all the variables used in the expression.
 void setCollectType(Type type)
          Sets the Brahms type when this expression contains one or more collectall variables and the values of the expression should be accumulated in a list before assigning to a variable or passing the result to a Java method, constructor, or array initializer.
 

Method Detail

export

void export(IFormat format,
            java.util.Properties p,
            java.io.DataOutputStream out)
Exports this object in the given format with the given properties to the given stream.

Parameters:
format - the IFormat to export this object as
p - the Properties required for the format
out - the DataOutputStream to write the output to

setCollectType

void setCollectType(Type type)
Sets the Brahms type when this expression contains one or more collectall variables and the values of the expression should be accumulated in a list before assigning to a variable or passing the result to a Java method, constructor, or array initializer.

Parameters:
type - the Brahms type for the expression

getCollectType

Type getCollectType()
Returns the Brahms type of the expression when it contains one or more collectall variables and the values of the expression should be accumulated in a list before assigning to a variable or passing the result to a Java method, constructor, or array initializer.

Returns:
Type the Brahms type for the expression

getVariables

void getVariables(java.util.LinkedList ll)
Adds to a supplied list all the variables used in the expression. Adds nothing to the list if the expression contains no variables

Parameters:
ll - the LinkedList to which to add the variables used in the expression.

getParameters

void getParameters(java.util.LinkedList ll)
Adds to a supplied list all the parameters used in the expression. Adds nothing to the list if the expression contains no variables

Parameters:
ll - the LinkedList to which to add the parameters used in the operand.


Copyright © 1997-2012 All Rights Reserved.