|
|||||||||
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.Identity
public class Identity
x.accept(Identity) = x
Basic visitor combinator without arguments that does nothing.
See also IdentityTest.
Field Summary |
---|
Fields inherited from class tom.library.sl.AbstractStrategy |
---|
environment, visitors |
Constructor Summary | |
---|---|
Identity()
|
Method Summary | |
---|---|
int |
visit()
Visits the current subject (found in the environment) and place its result in the environment. |
Visitable |
visitLight(Visitable x)
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 |
Constructor Detail |
---|
public Identity()
Method Detail |
---|
public Visitable visitLight(Visitable x)
Strategy
x
- the subject to visit.public int visit()
Strategy
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |