gnu.kawa.functions
Class SetNamedPart

java.lang.Object
  extended by gnu.mapping.PropertySet
      extended by gnu.mapping.Procedure
          extended by gnu.mapping.Procedure3
              extended by gnu.kawa.functions.SetNamedPart
All Implemented Interfaces:
CanInline, HasSetter, Named

public class SetNamedPart
extends Procedure3
implements HasSetter, CanInline

Procedure to get the value of a named component of an object.


Field Summary
static SetNamedPart setNamedPart
           
 
Fields inherited from class gnu.mapping.PropertySet
nameKey
 
Constructor Summary
SetNamedPart()
           
 
Method Summary
 java.lang.Object apply3(java.lang.Object container, java.lang.Object part, java.lang.Object value)
           
 Expression inline(ApplyExp exp, InlineCalls walker, boolean argsInlined)
          Inline an application of this Procedure and return result.
 
Methods inherited from class gnu.mapping.Procedure3
apply0, apply1, apply2, apply4, applyN, numArgs
 
Methods inherited from class gnu.mapping.Procedure
apply, apply, check0, check1, check2, check3, check4, checkArgCount, checkN, getSetter, getSourceLocation, match0, match1, match2, match3, match4, matchN, maxArgs, minArgs, set0, set1, setN, setSetter, setSourceLocation, toString
 
Methods inherited from class gnu.mapping.PropertySet
getName, getProperty, getSymbol, removeProperty, setName, setProperty, setProperty, setSymbol
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface gnu.mapping.HasSetter
getSetter
 

Field Detail

setNamedPart

public static final SetNamedPart setNamedPart
Constructor Detail

SetNamedPart

public SetNamedPart()
Method Detail

inline

public Expression inline(ApplyExp exp,
                         InlineCalls walker,
                         boolean argsInlined)
Description copied from interface: CanInline
Inline an application of this Procedure and return result. Unless argsInlined is true, then this method is responsible for walking exp.getArgs(); you can handle this using exp.getArgs(walker, argsInlined). (The exp.getFunction() has been walked, regardless.)

Specified by:
inline in interface CanInline
argsInlined - true if the arguments have been inlined. Can return original expression.

apply3

public java.lang.Object apply3(java.lang.Object container,
                               java.lang.Object part,
                               java.lang.Object value)
Specified by:
apply3 in class Procedure3