Klasse ArrayValue
java.lang.Object
de.firemage.autograder.core.integrated.scope.value.ArrayValue
- Alle implementierten Schnittstellen:
Value
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungbooleanstatic <T> ArrayValuefromNew(spoon.reflect.code.CtNewArray<T> ctNewArray) get(IndexValue index, Scope scope) inthashCode()voidvoidset(IndexValue index, Value value) Optional<spoon.reflect.code.CtExpression<?>>Returns the value as a CtExpression if possible.static ArrayValueunknown()Creates a new ArrayValue where the value of not every index is known.Von Klasse geerbte Methoden java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitVon Schnittstelle geerbte Methoden de.firemage.autograder.core.integrated.scope.value.Value
isConstant, toLiteral
-
Methodendetails
-
unknown
Creates a new ArrayValue where the value of not every index is known.- Gibt zurück:
- the new array value
-
fromNew
-
set
-
invalidate
public void invalidate() -
get
-
toExpression
Beschreibung aus Schnittstelle kopiert:ValueReturns the value as a CtExpression if possible.- Angegeben von:
toExpressionin SchnittstelleValue- Gibt zurück:
- the value as a CtExpression or none if it is not convertible
-
equals
-
hashCode
public int hashCode()
-