Klasse IndexValueWrapper
java.lang.Object
de.firemage.autograder.core.integrated.scope.value.IndexValueWrapper
- Alle implementierten Schnittstellen:
Value
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungbooleaninthashCode()booleanReturns true if the value is a literal, which is known.Optional<spoon.reflect.code.CtExpression<?>>Returns the value as a CtExpression if possible.Optional<spoon.reflect.code.CtLiteral<?>>Returns the value as a CtLiteral if possible.
-
Konstruktordetails
-
IndexValueWrapper
-
-
Methodendetails
-
isConstant
public boolean isConstant()Beschreibung aus Schnittstelle kopiert:ValueReturns true if the value is a literal, which is known.- Angegeben von:
isConstantin SchnittstelleValue- Gibt zurück:
- true if it is constant and false if not
-
toLiteral
Beschreibung aus Schnittstelle kopiert:ValueReturns the value as a CtLiteral if possible. -
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()
-