Class Variable
- java.lang.Object
-
- org.eclipse.epsilon.eol.execute.context.Variable
-
public class Variable extends Object
-
-
Constructor Summary
Constructors Constructor Description Variable()Variable(String name, Object value, EolType type)Variable(String name, Object value, EolType type, boolean readOnly)Variable(String name, EolType type)Variable(Map.Entry<String,?> entry)Variable(Variable v)Creates a shallow copy of the given Variable.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Variableclone()static VariablecreateReadOnlyVariable(String name, Object value)static VariablecreateReadOnlyVariable(Map.Entry<String,?> entry)voiddispose()booleanequals(Object obj)StringgetDeprecationInfo()StringgetName()EolTypegetType()ObjectgetValue()inthashCode()booleanisReadOnly()voidsetDeprecationInfo(String deprecationInfo)voidsetName(String name)voidsetReadOnly(boolean readOnly)voidsetType(EolType type)voidsetValue(Object newValue, IEolContext context)voidsetValueBruteForce(Object newValue)StringtoString()
-
-
-
Constructor Detail
-
Variable
public Variable()
-
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 Detail
-
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)
-
-