edu.neu.ccs.demeterf.examples
Class VoidTest
java.lang.Object
edu.neu.ccs.demeterf.examples.VoidTest
public class VoidTest
- extends java.lang.Object
Test for Void combine methods, providing Visitor like abstraction.
When you don't want to eliminate side-effects, you can use
"void" combine methods, and operate via mutation. Here you ahould
only match on the first argument, since the others might be "void",
which currently returns the value "null".
Here we compute the length of a list through mutation of an
instance variable.
Method Summary |
static void |
main(java.lang.String[] as)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
VoidTest
public VoidTest()
main
public static void main(java.lang.String[] as)