org.eclipse.mofscript.runtime
Class Variable
java.lang.Object
org.eclipse.mofscript.runtime.Variable
public class Variable
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
name
public java.lang.String name
type
public java.lang.String type
assignedExpression
public Expression assignedExpression
value
public java.lang.Object value
isConstant
public boolean isConstant
varContext
public org.eclipse.emf.ecore.EObject varContext
Variable
public Variable()
Variable
public Variable(org.eclipse.emf.ecore.EObject owner)
Variable
public Variable(VariableDeclaration vd)
getType
public java.lang.String getType()
setType
public void setType(java.lang.String t)
getName
public java.lang.String getName()
setName
public void setName(java.lang.String n)
getAssignedExpression
public Expression getAssignedExpression()
getValue
public java.lang.Object getValue()
setValue
public void setValue(java.lang.Object v)
isConstant
public boolean isConstant()
getContext
public org.eclipse.emf.ecore.EObject getContext()
- Returns:
- the context object of the variable
equalContext
public boolean equalContext(Variable otherVar)
- Checks if the context of the variable is the same as another var
- Parameters:
otherVar
-
- Returns:
equalContext
public boolean equalContext(org.eclipse.emf.ecore.EObject context)
- Parameters:
context
-
- Returns:
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object