|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecttom.library.sl.AbstractStrategy
tom.library.sl.Omega
public class Omega
Omega(i,v)
Basic visitor combinator which applies v the i-th subterm 0-th subterm is the term itself 1-th subterm corresponds to the first subterm ... arity-th subterm corresponds to the last subterm
Field Summary | |
---|---|
static int |
ARG
|
protected int |
indexPosition
|
Fields inherited from class tom.library.sl.AbstractStrategy |
---|
environment, visitors |
Constructor Summary | |
---|---|
Omega(int indexPosition,
Strategy v)
|
Method Summary | |
---|---|
int |
getPos()
|
int |
visit()
Visits the current subject (found in the environment) and place its result in the environment. |
Visitable |
visitLight(Visitable any)
Visits the subject any in a light way (without environment) |
Methods inherited from class tom.library.sl.AbstractStrategy |
---|
accept, getChildAt, getChildCount, getChildren, getEnvironment, getRoot, getSubject, init, init, initSubterm, initSubterm, initSubterm, initSubterm, initSubterm, setChildAt, setChildren, setEnvironment, setRoot, setSubject, visit, visit |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int ARG
protected int indexPosition
Constructor Detail |
---|
public Omega(int indexPosition, Strategy v)
Method Detail |
---|
public int getPos()
public Visitable visitLight(Visitable any) throws VisitFailure
Strategy
any
- the subject to visit.
VisitFailure
- in case of failure.public int visit()
Strategy
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |