Klasse Scope
java.lang.Object
de.firemage.autograder.core.integrated.scope.Scope
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungget(spoon.reflect.reference.CtVariableReference<?> variable) Returns the value of the variable or null if it is not registered.voidremove(spoon.reflect.reference.CtVariableReference<?> ctVariableReference) resolve(spoon.reflect.code.CtExpression<?> value) Optional<spoon.reflect.code.CtLiteral<?>>tryResolveLiteral(Value value) Optional<spoon.reflect.code.CtLiteral<?>>tryResolveLiteral(spoon.reflect.code.CtExpression<?> expression)
-
Methodendetails
-
tryResolveLiteral
public Optional<spoon.reflect.code.CtLiteral<?>> tryResolveLiteral(spoon.reflect.code.CtExpression<?> expression) -
tryResolveLiteral
-
resolve
-
get
Returns the value of the variable or null if it is not registered.- Parameter:
variable- the variable of which one should get the value- Gibt zurück:
- the value or null if it is unknown.
-
remove
public void remove(spoon.reflect.reference.CtVariableReference<?> ctVariableReference)
-