koala.dynamicjava.interpreter.modifier
Class SuperFieldModifier

java.lang.Object
  extended bykoala.dynamicjava.interpreter.modifier.LeftHandSideModifier
      extended bykoala.dynamicjava.interpreter.modifier.SuperFieldModifier

public class SuperFieldModifier
extends LeftHandSideModifier

This interface represents the objets that modify an super field


Field Summary
protected  java.lang.reflect.Field field
          The field
protected  SuperFieldAccess node
          The node
 
Constructor Summary
SuperFieldModifier(java.lang.reflect.Field f, SuperFieldAccess n)
          Creates a new field modifier
 
Method Summary
 void modify(Context ctx, java.lang.Object value)
          Sets the value of the underlying left hand side expression
 java.lang.Object prepare(Visitor v, Context ctx)
          Prepares the modifier for modification
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

field

protected java.lang.reflect.Field field
The field


node

protected SuperFieldAccess node
The node

Constructor Detail

SuperFieldModifier

public SuperFieldModifier(java.lang.reflect.Field f,
                          SuperFieldAccess n)
Creates a new field modifier

Parameters:
f - the field to modify
n - the field access node
Method Detail

prepare

public java.lang.Object prepare(Visitor v,
                                Context ctx)
Prepares the modifier for modification

Specified by:
prepare in class LeftHandSideModifier
Returns:
the value of the left hand side

modify

public void modify(Context ctx,
                   java.lang.Object value)
Sets the value of the underlying left hand side expression

Specified by:
modify in class LeftHandSideModifier


Copyright © 2001 Stephane Hillion. All Rights Reserved.