Class InputDataScenario.MW<T>

java.lang.Object
fr.inria.rules.integraal.component_builder.InputDataScenario.MW<T>
Type Parameters:
T - the wrapped value type
Enclosing class:
InputDataScenario

public static class InputDataScenario.MW<T> extends Object
Mutable wrapper used to track optional scenario values and their origin names.
  • Constructor Details

    • MW

      public MW(T value, boolean isSet, String baseName)
      Creates a mutable wrapper.
      Parameters:
      value - the initial value
      isSet - whether the value is considered set
      baseName - the associated base name
  • Method Details

    • getValue

      public T getValue()
      Returns the wrapped value.
      Returns:
      the wrapped value
    • setValue

      public void setValue(T value)
      Updates the wrapped value.
      Parameters:
      value - the new value
    • isSet

      public boolean isSet()
      Indicates whether the wrapper currently holds a set value.
      Returns:
      true if the value is set
    • setFlagToTrue

      public void setFlagToTrue()
      Marks the wrapper as set.
    • getBaseName

      public String getBaseName()
      Returns the associated base name.
      Returns:
      the base name