Enum TransformKindV2

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<TransformKindV2>

    public enum TransformKindV2
    extends java.lang.Enum<TransformKindV2>
    Representation of a single transformation occurring during execution.
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      AddInt32
      A wrapping addition of an `i32` to an existing numeric value (not necessarily an `i32`) in the global state.
      AddKeys
      Adds new named keys to an existing entry in the global state.
      AddUInt128
      A wrapping addition of a `U128` to an existing numeric value (not necessarily an `U128`) in the global state.
      AddUInt256
      A wrapping addition of a `U256` to an existing numeric value (not necessarily an `U256`) in the global state.
      AddUInt512
      A wrapping addition of a `U512` to an existing numeric value (not necessarily an `U512`) in the global state.
      AddUInt64
      A wrapping addition of a `u64` to an existing numeric value (not necessarily an `u64`) in the global state.
      Failure
      Represents the case where applying a transform would cause an error.
      Identity
      An identity transformation that does not modify a value in the global state.
      Prune
      Removes the pathing to the global state entry of the specified key.
      Write
      Writes a new value in the global state.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.Class<?> getClassByName​(java.lang.String name)
      Retrieve Transform implementation class from Transform name
      static TransformKindV2 valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static TransformKindV2[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      • Methods inherited from class java.lang.Enum

        clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Enum Constant Detail

      • Identity

        public static final TransformKindV2 Identity
        An identity transformation that does not modify a value in the global state. Created as a result of reading from the global state.
      • Write

        public static final TransformKindV2 Write
        Writes a new value in the global state.
      • AddInt32

        public static final TransformKindV2 AddInt32
        A wrapping addition of an `i32` to an existing numeric value (not necessarily an `i32`) in the global state.
      • AddUInt64

        public static final TransformKindV2 AddUInt64
        A wrapping addition of a `u64` to an existing numeric value (not necessarily an `u64`) in the global state.
      • AddUInt128

        public static final TransformKindV2 AddUInt128
        A wrapping addition of a `U128` to an existing numeric value (not necessarily an `U128`) in the global state.
      • AddUInt256

        public static final TransformKindV2 AddUInt256
        A wrapping addition of a `U256` to an existing numeric value (not necessarily an `U256`) in the global state.
      • AddUInt512

        public static final TransformKindV2 AddUInt512
        A wrapping addition of a `U512` to an existing numeric value (not necessarily an `U512`) in the global state.
      • AddKeys

        public static final TransformKindV2 AddKeys
        Adds new named keys to an existing entry in the global state. /// This transform assumes that the existing stored value is either an Account or a Contract.
      • Prune

        public static final TransformKindV2 Prune
        Removes the pathing to the global state entry of the specified key. The pruned element remains reachable from previously generated global state root hashes, but will not be included in the next generated global state root hash and subsequent state accumulated from it.
      • Failure

        public static final TransformKindV2 Failure
        Represents the case where applying a transform would cause an error.
    • Method Detail

      • values

        public static TransformKindV2[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (TransformKindV2 c : TransformKindV2.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static TransformKindV2 valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null