org.eclipse.mofscript.runtime
Class Variable

java.lang.Object
  extended by org.eclipse.mofscript.runtime.Variable

public class Variable
extends java.lang.Object


Field Summary
 Expression assignedExpression
           
 boolean isConstant
           
 java.lang.String name
           
 java.lang.String type
           
 java.lang.Object value
           
 org.eclipse.emf.ecore.EObject varContext
           
 
Constructor Summary
Variable()
           
Variable(org.eclipse.emf.ecore.EObject owner)
           
Variable(VariableDeclaration vd)
           
 
Method Summary
 boolean equalContext(org.eclipse.emf.ecore.EObject context)
           
 boolean equalContext(Variable otherVar)
          Checks if the context of the variable is the same as another var
 Expression getAssignedExpression()
           
 org.eclipse.emf.ecore.EObject getContext()
           
 java.lang.String getName()
           
 java.lang.String getType()
           
 java.lang.Object getValue()
           
 boolean isConstant()
           
 void setName(java.lang.String n)
           
 void setType(java.lang.String t)
           
 void setValue(java.lang.Object v)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

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
Constructor Detail

Variable

public Variable()

Variable

public Variable(org.eclipse.emf.ecore.EObject owner)

Variable

public Variable(VariableDeclaration vd)
Method Detail

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