Class InitialValueFactory

java.lang.Object
proguard.evaluation.value.InitialValueFactory

public class InitialValueFactory extends Object
This value factory creates initial values for fields and array elements, with the help of a given value factory. Note that this class itself doesn't implement ValueFactory.
  • Constructor Details

    • InitialValueFactory

      public InitialValueFactory(ValueFactory valueFactory)
      Creates a new InitialValueFactory.
      Parameters:
      valueFactory - the value factory that will actually create the values.
  • Method Details

    • createValue

      public Value createValue(String type)
      Creates an initial value (0, 0L, 0.0f, 0.0, null) of the given type.