Class Variable
- java.lang.Object
 - 
- org.eclipse.epsilon.eol.execute.context.Variable
 
 
- 
public class Variable extends java.lang.Object 
- 
- 
Constructor Summary
Constructors Constructor Description Variable()Variable(java.lang.String name, java.lang.Object value, EolType type)Variable(java.lang.String name, java.lang.Object value, EolType type, boolean readOnly)Variable(java.lang.String name, EolType type)Variable(java.util.Map.Entry<java.lang.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(java.lang.String name, java.lang.Object value)static VariablecreateReadOnlyVariable(java.util.Map.Entry<java.lang.String,?> entry)voiddispose()booleanequals(java.lang.Object obj)java.lang.StringgetDeprecationInfo()java.lang.StringgetName()EolTypegetType()java.lang.ObjectgetValue()inthashCode()booleanisReadOnly()voidsetDeprecationInfo(java.lang.String deprecationInfo)voidsetName(java.lang.String name)voidsetReadOnly(boolean readOnly)voidsetType(EolType type)voidsetValue(java.lang.Object newValue, IEolContext context)voidsetValueBruteForce(java.lang.Object newValue)java.lang.StringtoString() 
 - 
 
- 
- 
Field Detail
- 
name
protected java.lang.String name
 
- 
value
protected java.lang.Object value
 
- 
type
protected EolType type
 
- 
readOnly
protected boolean readOnly
 
- 
deprecationInfo
protected java.lang.String deprecationInfo
 
 - 
 
- 
Constructor Detail
- 
Variable
public Variable()
 
- 
Variable
public Variable(java.util.Map.Entry<java.lang.String,?> entry)
- Parameters:
 entry-- Since:
 - 1.6
 
 
- 
Variable
public Variable(java.lang.String name, java.lang.Object value, EolType type, boolean readOnly) 
- 
Variable
public Variable(java.lang.String name, EolType type) 
- 
Variable
public Variable(java.lang.String name, java.lang.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 Detail
- 
createReadOnlyVariable
public static Variable createReadOnlyVariable(java.lang.String name, java.lang.Object value)
 
- 
createReadOnlyVariable
public static Variable createReadOnlyVariable(java.util.Map.Entry<java.lang.String,?> entry)
- Parameters:
 entry-- Returns:
 - Since:
 - 1.6
 
 
- 
dispose
public void dispose()
 
- 
getValue
public java.lang.Object getValue()
 
- 
setValue
public void setValue(java.lang.Object newValue, IEolContext context) throws EolRuntimeException- Throws:
 EolRuntimeException
 
- 
setValueBruteForce
public void setValueBruteForce(java.lang.Object newValue)
 
- 
setType
public void setType(EolType type)
 
- 
getType
public EolType getType()
 
- 
isReadOnly
public boolean isReadOnly()
 
- 
setReadOnly
public void setReadOnly(boolean readOnly)
 
- 
getName
public java.lang.String getName()
 
- 
setName
public void setName(java.lang.String name)
 
- 
getDeprecationInfo
public java.lang.String getDeprecationInfo()
 
- 
setDeprecationInfo
public void setDeprecationInfo(java.lang.String deprecationInfo)
 
- 
clone
public Variable clone()
- Overrides:
 clonein classjava.lang.Object
 
- 
equals
public boolean equals(java.lang.Object obj)
- Overrides:
 equalsin classjava.lang.Object
 
- 
hashCode
public int hashCode()
- Overrides:
 hashCodein classjava.lang.Object
 
- 
toString
public java.lang.String toString()
- Overrides:
 toStringin classjava.lang.Object
 
 - 
 
 -