|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecttom.library.sl.VisitableIntrospector
public class VisitableIntrospector
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 |
static Introspector |
getInstance()
|
Object |
setChildAt(Object o,
int i,
Object child)
Replace the i-th subterm of the object o by child |
Object |
setChildren(Object o,
Object[] children)
Replace all children of a given object, and return the new object |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static Introspector getInstance()
public Object setChildren(Object o, Object[] children)
Introspector
setChildren
in interface Introspector
o
- the object whose children are replacechildren
- the new subterm of the objectpublic Object[] getChildren(Object o)
Introspector
getChildren
in interface Introspector
o
- the subjectpublic Object setChildAt(Object o, int i, Object child)
Introspector
setChildAt
in interface Introspector
o
- the subjecti
- the index of the subtermchild
- the new subtermpublic Object getChildAt(Object o, int i)
Introspector
getChildAt
in interface Introspector
o
- the subjecti
- the index of the subterm (0<=i<=childCount)public int getChildCount(Object o)
Introspector
getChildCount
in interface Introspector
o
- the subject
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |