|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Strategy
Method Summary | ||
---|---|---|
Environment |
getEnvironment()
Get a reference to the current environment. |
|
void |
setEnvironment(Environment p)
Set up a new environment |
|
|
visit(Environment envt)
Execute the strategy in the given environment (on its current subject). |
|
Object |
visit(Environment envt,
Introspector i)
Execute the strategy in the given environment (on its current subject). |
|
int |
visit(Introspector i)
Visit the current subject (found in the environment) and place its result in the environment. |
|
|
visit(T any)
Visit the subject any by providing the environment |
|
|
visit(T any,
Introspector i)
Visit the subject any by providing the introspector |
|
|
visitLight(T any)
Visit the subject any in a light way (without environment) |
|
|
visitLight(T any,
Introspector i)
Visit the subject any in a light way (without environment) |
Methods inherited from interface tom.library.sl.Visitable |
---|
getChildAt, getChildCount, getChildren, setChildAt, setChildren |
Method Detail |
---|
void setEnvironment(Environment p)
p
- the environment to set upEnvironment getEnvironment()
<T extends Visitable> T visit(T any) throws VisitFailure
any
- the subject to visit.
VisitFailure
- in case of failure.<T extends Visitable> T visitLight(T any) throws VisitFailure
any
- the subject to visit.
VisitFailure
- in case of failure.<T extends Visitable> T visit(Environment envt) throws VisitFailure
envt
- the environment where execute the strategy.
VisitFailure
- in case of failure.<T> T visit(T any, Introspector i) throws VisitFailure
any
- the subject to visit.
VisitFailure
- in case of failure.<T> T visitLight(T any, Introspector i) throws VisitFailure
any
- the subject to visit.
VisitFailure
- in case of failure.Object visit(Environment envt, Introspector i) throws VisitFailure
envt
- the environment where execute the strategy.i
- the instrospector
VisitFailure
- in case of failure.int visit(Introspector i)
i
- the introspector
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |