Klasse IndexValueWrapper

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

public class IndexValueWrapper extends Object implements Value
  • Konstruktordetails

    • IndexValueWrapper

      public IndexValueWrapper(IndexValue value)
  • Methodendetails

    • isConstant

      public boolean isConstant()
      Beschreibung aus Schnittstelle kopiert: Value
      Returns true if the value is a literal, which is known.
      Angegeben von:
      isConstant in Schnittstelle Value
      Gibt zurück:
      true if it is constant and false if not
    • toLiteral

      public Optional<spoon.reflect.code.CtLiteral<?>> toLiteral()
      Beschreibung aus Schnittstelle kopiert: Value
      Returns the value as a CtLiteral if possible.
      Angegeben von:
      toLiteral in Schnittstelle Value
      Gibt zurück:
      the value as a literal or none if it is not known or not a literal
    • 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