edu.vub.at.objects.grammar
Interface AssignTable


 AssignTable

The public interface to a table assignment AG element. Example: tab[idx] := 5 where tab has to evaluate to a table and idx has to evaluate to a number.

Author:
tvc

Method Summary
 Expression indexExpression()
          The index may be any AmbientTalk expression that evaluates to a native number.
 Expression tableExpression()
          The table may be any AmbientTalk expression that evaluates to a native table.
 Expression valueExpression()
          The value expression may be any valid AmbientTalk expression Example: `{ tab[idx] := 5}.statements[1].valueExpression == `5
 
Methods inherited from interface edu.vub.at.objects.AbstractGrammar
freeVariables
 
Methods inherited from interface edu.vub.at.objects.Object
super
 

Method Detail

tableExpression

Expression tableExpression()
The table may be any AmbientTalk expression that evaluates to a native table. Example: `{ tab[idx] := 5}.statements[1].tableExpression == `tab

Returns:
The table expression

indexExpression

Expression indexExpression()
The index may be any AmbientTalk expression that evaluates to a native number. Example: `{ tab[idx] := 5}.statements[1].indexExpression == `idx

Returns:
The index expression

valueExpression

Expression valueExpression()
The value expression may be any valid AmbientTalk expression Example: `{ tab[idx] := 5}.statements[1].valueExpression == `5

Returns:
The value expression