Alignment API and Server 4.5 (1846M)

fr.inrialpes.exmo.align.impl.edoal
Class Expression

java.lang.Object
  extended by fr.inrialpes.exmo.align.impl.edoal.Expression
All Implemented Interfaces:
Cloneable
Direct Known Subclasses:
ClassExpression, InstanceExpression, PathExpression

public abstract class Expression
extends Object
implements 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 and clone methods. If new fields are introduced the toString and hashCode methods must be overwritten, too.

Created on 23-Mar-2005 Committed by $Author: adrianmocan $

Version:
$Id: Expression.java 1710 2012-03-23 19:53:25Z euzenat $

Field Summary
protected  Variable variable
           
 
Constructor Summary
protected Expression()
           
 
Method Summary
abstract  void accept(EDOALVisitor visitor)
           
abstract  TypeCheckingVisitor.TYPE accept(TypeCheckingVisitor visitor)
           
 Variable getVariable()
           
 void setVariable(Variable v)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

variable

protected Variable variable
Constructor Detail

Expression

protected Expression()
Method Detail

accept

public abstract void accept(EDOALVisitor visitor)
                     throws AlignmentException
Throws:
AlignmentException

accept

public abstract TypeCheckingVisitor.TYPE accept(TypeCheckingVisitor visitor)
                                         throws AlignmentException
Throws:
AlignmentException

getVariable

public Variable getVariable()

setVariable

public void setVariable(Variable v)

Alignment API and Server 4.5 (1846M)

(C) INRIA & friends, 2003-2013