java.lang.Object
de.firemage.autograder.core.integrated.scope.value.ArrayValue
Alle implementierten Schnittstellen:
Value

public final class ArrayValue extends Object implements Value
  • Methodendetails

    • unknown

      public static ArrayValue unknown()
      Creates a new ArrayValue where the value of not every index is known.
      Gibt zurück:
      the new array value
    • fromNew

      public static <T> ArrayValue fromNew(spoon.reflect.code.CtNewArray<T> ctNewArray)
    • set

      public void set(IndexValue index, Value value)
    • invalidate

      public void invalidate()
    • get

      public Value get(IndexValue index, Scope scope)
    • toExpression

      public Optional<spoon.reflect.code.CtExpression<?>> toExpression()
      Beschreibung aus Schnittstelle kopiert: Value
      Returns the value as a CtExpression if possible.
      Angegeben von:
      toExpression in Schnittstelle Value
      Gibt zurück:
      the value as a CtExpression or none if it is not convertible
    • equals

      public boolean equals(Object otherObject)
      Setzt außer Kraft:
      equals in Klasse Object
    • hashCode

      public int hashCode()
      Setzt außer Kraft:
      hashCode in Klasse Object