koala.dynamicjava.interpreter.modifier
Class StaticFieldModifier

java.lang.Object
  |
  +--koala.dynamicjava.interpreter.modifier.LeftHandSideModifier
        |
        +--koala.dynamicjava.interpreter.modifier.StaticFieldModifier

public class StaticFieldModifier
extends LeftHandSideModifier

This interface represents the objets that modify a field


Field Summary
protected  java.lang.reflect.Field field
          The field
protected  Node node
          The node
 
Constructor Summary
StaticFieldModifier(java.lang.reflect.Field f, Node 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 Node node
The node
Constructor Detail

StaticFieldModifier

public StaticFieldModifier(java.lang.reflect.Field f,
                           Node 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
Overrides:
prepare in class LeftHandSideModifier
Following copied from class: koala.dynamicjava.interpreter.modifier.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
Overrides:
modify in class LeftHandSideModifier


Copyright © 2001 Stephane Hillion. All Rights Reserved.