org.hecl.java
Class MethodProps

java.lang.Object
  extended by org.hecl.Properties
      extended by org.hecl.java.MethodProps

public class MethodProps
extends Properties

The MethodProps class is utilized during the instantiation of classes, where it's possible to do things like: foo -new $bar -text "blah" -color red, where the keys are transformed into methods like setText and setColor, and run with the provided values. This is sort of hackey, but it works, given that setters with that naming convention are ubiquitous in the Java world.

Version:
1.0
Author:
David N. Welton

Field Summary
 
Fields inherited from class org.hecl.Properties
props
 
Constructor Summary
MethodProps()
           
 
Method Summary
 void evalProps(Interp interp, java.lang.Object target, Reflector ref)
           
 
Methods inherited from class org.hecl.Properties
delProp, existsProp, getAndDelProp, getProp, getProp, getProps, isEmpty, setProp, setProps
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MethodProps

public MethodProps()
Method Detail

evalProps

public void evalProps(Interp interp,
                      java.lang.Object target,
                      Reflector ref)
               throws HeclException
Throws:
HeclException