Class ChainedFold
java.lang.Object
de.firemage.autograder.core.integrated.evaluator.fold.ChainedFold
- All Implemented Interfaces:
Fold
Chains multiple folds together.
The folds are applied in the order they are given.
-
Method Summary
Modifier and TypeMethodDescriptionstatic Foldstatic Foldspoon.reflect.declaration.CtElemententer(spoon.reflect.declaration.CtElement ctElement) This method is called before aCtElementand all of its children are visited.spoon.reflect.declaration.CtElementexit(spoon.reflect.declaration.CtElement ctElement) This method is called after all children of theCtElementhave been visited.spoon.reflect.declaration.CtElementfold(spoon.reflect.declaration.CtElement ctElement) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.firemage.autograder.core.integrated.evaluator.fold.Fold
foldCtBinaryOperator, foldCtExpression, foldCtLiteral, foldCtUnaryOperator, foldCtVariableRead
-
Method Details
-
chain
-
chain
-
enter
public spoon.reflect.declaration.CtElement enter(spoon.reflect.declaration.CtElement ctElement) Description copied from interface:FoldThis method is called before aCtElementand all of its children are visited.By default, this method does nothing.
-
exit
public spoon.reflect.declaration.CtElement exit(spoon.reflect.declaration.CtElement ctElement) Description copied from interface:FoldThis method is called after all children of theCtElementhave been visited.By default, this method calls
Fold.fold(CtElement). -
fold
public spoon.reflect.declaration.CtElement fold(spoon.reflect.declaration.CtElement ctElement)
-