Class StringBuilderValue


public final class StringBuilderValue extends ObjectValue<Object,Object>
  • Constructor Details

    • StringBuilderValue

      public StringBuilderValue(org.sosy_lab.java_smt.api.SolverContext context)
    • StringBuilderValue

      public StringBuilderValue(org.sosy_lab.java_smt.api.SolverContext context, StringValue v, int address)
  • Method Details

    • getStringValue

      public Value<?,?> getStringValue()
    • invokeMethod

      public Value<?,?> invokeMethod(String name, org.objectweb.asm.Type[] desc, Value<?,?>[] args)
      Handles method invocation for Java's StringBuilder (Java 16) as defined in:
      Overrides:
      invokeMethod in class ObjectValue<Object,Object>
      Parameters:
      name - The name of the method that is called
      desc - The Type descriptions for all Arguments
      args - The Value's representing the arguments
      Returns:
      The return Value of the Method, or a PlaceHolder::instance if the Method is not implemented or void should be returned
    • asStringValue

      public StringValue asStringValue()
      Overrides:
      asStringValue in class Value<Object,Object>
    • toString

      public String toString()
      Description copied from class: Value
      Returns the string representation of the value. Should be implemented by each inheriting class.
      Overrides:
      toString in class ObjectValue<Object,Object>
      Returns:
      the string representation of the value