edu.vub.at.objects.grammar
Interface DefExternalField


 DefExternalField

The public interface to an external field definition AG element. Example: def rcv.nam := val

Author:
tvcutsem

Method Summary
 Symbol name()
          The name of the field must be a literal symbol Example: `{ def o.x := 5 }.statements[1].name == `x
 Symbol receiver()
          The receiver must be a literal symbol.
 Expression valueExpression()
          The value may be any AmbientTalk expression.
 
Methods inherited from interface edu.vub.at.objects.AbstractGrammar
freeVariables
 
Methods inherited from interface edu.vub.at.objects.Object
super
 

Method Detail

receiver

Symbol receiver()
The receiver must be a literal symbol. Example: `{ def o.x := 5 }.statements[1].receiver == `o

Returns:
The expression for the object

name

Symbol name()
The name of the field must be a literal symbol Example: `{ def o.x := 5 }.statements[1].name == `x

Returns:
the name of the field

valueExpression

Expression valueExpression()
The value may be any AmbientTalk expression. Example: `{ def o.x := 5 }.statements[1].valueExpression == `5

Returns:
the value expression