tom.library.sl
Class Up
java.lang.Object
tom.library.sl.AbstractStrategy
tom.library.sl.AbstractStrategyCombinator
tom.library.sl.Up
- All Implemented Interfaces:
- Strategy, Visitable
public class Up
- extends AbstractStrategyCombinator
Field Summary |
static int |
ARG
|
Method Summary |
int |
visit(Introspector i)
Visits the current subject (found in the environment)
and place its result in the environment. |
|
visitLight(T any,
Introspector i)
Visits the subject any without managing any environment |
Methods inherited from class tom.library.sl.AbstractStrategyCombinator |
getChildAt, getChildCount, getChildren, getVisitor, getVisitors, initSubterm, initSubterm, initSubterm, initSubterm, initSubterm, setChildAt, setChildren |
Methods inherited from class tom.library.sl.AbstractStrategy |
getAncestor, getEnvironment, getPosition, getRoot, getSubject, init, init, setEnvironment, setRoot, setSubject, visit, visit, visit, visit, visitLight |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ARG
public static final int ARG
- See Also:
- Constant Field Values
Up
public Up(Strategy v)
visitLight
public final <T> T visitLight(T any,
Introspector i)
throws VisitFailure
- Visits the subject any without managing any environment
- Parameters:
any
- the subject to visiti
- the introspector
- Throws:
VisitFailure
- in case of failrue
visit
public int visit(Introspector i)
- Visits the current subject (found in the environment)
and place its result in the environment.
Sets the environment flag to Environment.FAILURE in case of failure
- Parameters:
i
- the introspector
- Returns:
- 0 if success