|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.hecl.Properties
org.hecl.java.MethodProps
public class MethodProps
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.
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 |
---|
public MethodProps()
Method Detail |
---|
public void evalProps(Interp interp, java.lang.Object target, Reflector ref) throws HeclException
HeclException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |