public abstract class Expression
extends java.lang.Object
implements java.lang.Cloneable
This class serves as the base for the four different expression types. These
types are namely AttributeExpression
,
ClassExpression
, RelationExpression
and
InstanceExpression
The only fields stored in this class is the ExpressionDefinition
of this Expression and the set of condition associated with this expression.
To successfully subclass this class overwrite the equals
method.
If new fields are introduced the
toString
and hashCode
methods must be
overwritten, too.
Created on 23-Mar-2005 Committed by $Author: adrianmocan $
Modifier | Constructor and Description |
---|---|
protected |
Expression() |
Modifier and Type | Method and Description |
---|---|
abstract void |
accept(EDOALVisitor visitor) |
abstract TypeCheckingVisitor.TYPE |
accept(TypeCheckingVisitor visitor) |
Variable |
getVariable() |
void |
setVariable(Variable v) |
protected Variable variable
public abstract void accept(EDOALVisitor visitor) throws AlignmentException
AlignmentException
public abstract TypeCheckingVisitor.TYPE accept(TypeCheckingVisitor visitor) throws AlignmentException
AlignmentException
public Variable getVariable()
public void setVariable(Variable v)
(C) INRIA & friends, 2003-2020