Class MathVariableInfo

java.lang.Object
com.myscript.iink.MathVariableInfo

public class MathVariableInfo extends Object
Represents a math variable information relative to a block.
Since:
4.1
  • Field Details

    • name

      @NotNull public @NotNull String name
      The name of the variable.
    • sourceType

      public MathVariableSourceType sourceType
      The source from which the variable was defined, or MathVariableSourceType.UNDEFINED.
    • sourceId

      public String sourceId
      The identifier of the block where the variable was defined, or an empty string if not applicable.
    • occurrenceCount

      public int occurrenceCount
      The number of times the variable appears in the block expression.
  • Constructor Details

    • MathVariableInfo

      public MathVariableInfo(@NotNull @NotNull MathVariableInfo other)
      Copy constructor.
      Parameters:
      other - the math variable info to copy.
    • MathVariableInfo

      public MathVariableInfo(@NotNull @NotNull String name, MathVariableSourceType sourceType, @NotNull @NotNull String sourceId, int occurrenceCount)
      Constructs a MathVariableInfo
      Parameters:
      name - the variable name.
      sourceType - the source from which the variable was defined, or MathVariableSourceType.UNDEFINED.
      sourceId - the identifier of the block where the variable was defined, or an empty string if not applicable.
      occurrenceCount - the number of times the variable appears in the block expression.
  • Method Details

    • equals

      public boolean equals(@Nullable @Nullable Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public final int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      @NotNull public final @NotNull String toString()
      Overrides:
      toString in class Object