pnuts.lang
Interface Property

All Known Subinterfaces:
AbstractData
All Known Implementing Classes:
ClassGenerator.SuperCallProxy, CompositePackage, Package, SecurePackage

public interface Property

In Pnuts, access to a property of an object implements this interface causes a call of methods in this interface. See Pnuts Language Specification for details.

Version:
1.1
Author:
Toyokazu Tomatsu

Method Summary
 java.lang.Object get(java.lang.String name, Context context)
          This method defines the behavior of the following expression.
 void set(java.lang.String name, java.lang.Object value, Context context)
          This method defines the behavior of the following expression.
 

Method Detail

set

void set(java.lang.String name,
         java.lang.Object value,
         Context context)
This method defines the behavior of the following expression.
    
 aProperty
 
  . 
 
 name
 
  = 
 
 value
 
 

Parameters:
name - the name.
value - the value.
context - the context in which the expression is evaluated.

get

java.lang.Object get(java.lang.String name,
                     Context context)
This method defines the behavior of the following expression.

  
 aProperty
 
  . 
 
 name
 
 

Parameters:
name - the name.
context - the context in which the expression is evaluated.