de.upb.hni.vmagic.expression
Class Expression

java.lang.Object
  extended by de.upb.hni.vmagic.VhdlElement
      extended by de.upb.hni.vmagic.expression.Expression
All Implemented Interfaces:
Choice
Direct Known Subclasses:
BinaryExpression, Primary, UnaryExpression

public abstract class Expression
extends VhdlElement
implements Choice

Abstract expression.


Constructor Summary
Expression()
           
 
Method Summary
abstract  int getPrecedence()
          Returns the precedence of this expression.
abstract  SubtypeIndication getType()
          Returns the type of this expression.
 
Methods inherited from class de.upb.hni.vmagic.VhdlElement
getParent, setParent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Expression

public Expression()
Method Detail

getType

public abstract SubtypeIndication getType()
Returns the type of this expression.

Returns:
the type of this expression

getPrecedence

public abstract int getPrecedence()
Returns the precedence of this expression.

Returns:
the precedence, higher values mean higher precedence
See Also:
ExpressionPrecedences