public class ClassExtender
extends java.lang.Object
Constructor and Description |
---|
ClassExtender() |
Modifier and Type | Method and Description |
---|---|
void |
addMethod(java.lang.String name,
Closure closure) |
void |
call(java.lang.String name,
java.lang.Object params) |
protected java.util.Map |
createMap() |
java.lang.Object |
get(java.lang.String name) |
void |
remove(java.lang.String name) |
void |
removeMethod(java.lang.String name) |
void |
set(java.lang.String name,
java.lang.Object value) |
public java.lang.Object get(java.lang.String name)
public void set(java.lang.String name, java.lang.Object value)
public void remove(java.lang.String name)
public void call(java.lang.String name, java.lang.Object params)
public void addMethod(java.lang.String name, Closure closure)
public void removeMethod(java.lang.String name)
protected java.util.Map createMap()