java.lang.Object
de.firemage.autograder.core.integrated.scope.Scope

public final class Scope extends Object
  • Methodendetails

    • tryResolveLiteral

      public Optional<spoon.reflect.code.CtLiteral<?>> tryResolveLiteral(spoon.reflect.code.CtExpression<?> expression)
    • tryResolveLiteral

      public Optional<spoon.reflect.code.CtLiteral<?>> tryResolveLiteral(Value value)
    • resolve

      public Value resolve(spoon.reflect.code.CtExpression<?> value)
    • get

      public Value get(spoon.reflect.reference.CtVariableReference<?> variable)
      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)