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 Variable
clone()
static Variable
createReadOnlyVariable(String name, Object value)
static Variable
createReadOnlyVariable(Map.Entry<String,?> entry)
void
dispose()
boolean
equals(Object obj)
String
getDeprecationInfo()
String
getName()
EolType
getType()
Object
getValue()
int
hashCode()
boolean
isReadOnly()
void
setDeprecationInfo(String deprecationInfo)
void
setName(String name)
void
setReadOnly(boolean readOnly)
void
setType(EolType type)
void
setValue(Object newValue, IEolContext context)
void
setValueBruteForce(Object newValue)
String
toString()
-
-
-
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)
-
-