Class Variable

java.lang.Object
org.eclipse.epsilon.eol.execute.context.Variable

public class Variable extends Object
  • Field Details

    • name

      protected String name
    • value

      protected Object value
    • type

      protected EolType type
    • readOnly

      protected boolean readOnly
    • deprecationInfo

      protected String deprecationInfo
  • Constructor Details

    • Variable

      public Variable()
    • Variable

      public Variable(Map.Entry<String,?> entry)
      Parameters:
      entry -
      Since:
      1.6
    • Variable

      public Variable(String name, Object value, EolType type, boolean readOnly)
    • Variable

      public Variable(String name, EolType type)
    • Variable

      public Variable(String name, Object value, EolType type)
    • Variable

      public Variable(Variable v)
      Creates a shallow copy of the given Variable.
      Parameters:
      v - The variable to shallow copy from
      Since:
      1.6
  • Method Details

    • createReadOnlyVariable

      public static Variable createReadOnlyVariable(String name, Object value)
    • createReadOnlyVariable

      public static Variable createReadOnlyVariable(Map.Entry<String,?> entry)
      Parameters:
      entry -
      Returns:
      Since:
      1.6
    • dispose

      public void dispose()
    • getValue

      public Object getValue()
    • setValue

      public void setValue(Object newValue, IEolContext context) throws EolRuntimeException
      Throws:
      EolRuntimeException
    • setValueBruteForce

      public void setValueBruteForce(Object newValue)
    • setType

      public void setType(EolType type)
    • getType

      public EolType getType()
    • isReadOnly

      public boolean isReadOnly()
    • setReadOnly

      public void setReadOnly(boolean readOnly)
    • getName

      public String getName()
    • setName

      public void setName(String name)
    • getDeprecationInfo

      public String getDeprecationInfo()
    • setDeprecationInfo

      public void setDeprecationInfo(String deprecationInfo)
    • clone

      public Variable clone()
      Overrides:
      clone in class Object
    • equals

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

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

      public String toString()
      Overrides:
      toString in class Object