|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Introspector
| Method Summary | ||
|---|---|---|
Object |
getChildAt(Object o,
int i)
Return the i-th subterm of the object o |
|
int |
getChildCount(Object o)
Return the number of subterms of the object o |
|
Object[] |
getChildren(Object o)
Return the children of a given object |
|
|
setChildAt(T o,
int i,
Object child)
Replace the i-th subterm of the object o by child |
|
|
setChildren(T o,
Object[] children)
Replace all children of a given object, and return the new object |
|
| Method Detail |
|---|
<T> T setChildren(T o,
Object[] children)
o - the object whose children are replacechildren - the new subterm of the objectObject[] getChildren(Object o)
o - the subject
<T> T setChildAt(T o,
int i,
Object child)
o - the subjecti - the index of the subtermchild - the new subterm
Object getChildAt(Object o,
int i)
o - the subjecti - the index of the subterm (0<=i<=childCount)int getChildCount(Object o)
o - the subject
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||