Class SolaScriptMap

java.lang.Object
technology.sola.script.runtime.SolaScriptMap

public class SolaScriptMap extends Object
SolaScriptMap is the runtime representation of the sola-script map type.
  • Constructor Details

    • SolaScriptMap

      public SolaScriptMap()
  • Method Details

    • get

      public @Nullable Object get(Token name)
      Gets a property from the map.
      Parameters:
      name - the Token name of the property
      Returns:
      the value associated with the property or null
    • set

      public void set(Token name, @Nullable Object value)
      Sets a property on the map.
      Parameters:
      name - the Token name of the property
      value - the value of the property
    • set

      public void set(String name, @Nullable Object value)
      Sets a property on the map.
      Parameters:
      name - the string name of the property
      value - the value of the property
    • toString

      public String toString()
      Overrides:
      toString in class Object