Class EvaluateLiteralOperations
java.lang.Object
de.firemage.autograder.core.integrated.evaluator.fold.EvaluateLiteralOperations
- All Implemented Interfaces:
Fold
Evaluates literal operations like
1 + 2 that can be evaluated to a constant value.-
Method Summary
Modifier and TypeMethodDescriptionstatic Foldcreate()<T> spoon.reflect.code.CtExpression<T>foldCtBinaryOperator(spoon.reflect.code.CtBinaryOperator<T> ctBinaryOperator) <T> spoon.reflect.code.CtExpression<T>foldCtUnaryOperator(spoon.reflect.code.CtUnaryOperator<T> ctUnaryOperator) 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
enter, exit, fold, foldCtExpression, foldCtLiteral, foldCtVariableRead
-
Method Details
-
create
-
foldCtBinaryOperator
public <T> spoon.reflect.code.CtExpression<T> foldCtBinaryOperator(spoon.reflect.code.CtBinaryOperator<T> ctBinaryOperator) - Specified by:
foldCtBinaryOperatorin interfaceFold
-
foldCtUnaryOperator
public <T> spoon.reflect.code.CtExpression<T> foldCtUnaryOperator(spoon.reflect.code.CtUnaryOperator<T> ctUnaryOperator) - Specified by:
foldCtUnaryOperatorin interfaceFold
-