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