Class PromoteOperands
java.lang.Object
de.firemage.autograder.core.integrated.evaluator.fold.PromoteOperands
- All Implemented Interfaces:
Fold
-
Method Summary
Modifier and TypeMethodDescriptionstatic Foldcreate()static Foldcreate(ApplyOperatorPromotion.OperatorPredicate<? super spoon.reflect.code.CtBinaryOperator<?>> shouldApplyOnBinaryOperator, ApplyOperatorPromotion.OperatorPredicate<? super spoon.reflect.code.CtUnaryOperator<?>> shouldApplyOnUnaryOperator) spoon.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.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
fold, foldCtBinaryOperator, foldCtExpression, foldCtLiteral, foldCtUnaryOperator, foldCtVariableRead
-
Method Details
-
create
-
create
public static Fold create(ApplyOperatorPromotion.OperatorPredicate<? super spoon.reflect.code.CtBinaryOperator<?>> shouldApplyOnBinaryOperator, ApplyOperatorPromotion.OperatorPredicate<? super spoon.reflect.code.CtUnaryOperator<?>> shouldApplyOnUnaryOperator) -
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).
-