org.hecl.java
Class MethodProps
- java.lang.Object
-
- org.hecl.Properties
-
- org.hecl.java.MethodProps
-
public class MethodProps extends Properties
TheMethodPropsclass 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.
-
-
Constructor Summary
Constructors Constructor and Description MethodProps()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidevalProps(Interp interp, java.lang.Object target, Reflector ref)-
Methods inherited from class org.hecl.Properties
delProp, existsProp, getAndDelProp, getProp, getProp, getProps, isEmpty, setProp, setProps
-
-
-
-
Method Detail
-
evalProps
public void evalProps(Interp interp, java.lang.Object target, Reflector ref) throws HeclException
- Throws:
HeclException
-
-
DataMelt 3.0 © DataMelt by jWork.ORG