de.upb.hni.vmagic.expression
Class UnaryExpression

java.lang.Object
  extended by de.upb.hni.vmagic.VhdlElement
      extended by de.upb.hni.vmagic.expression.Expression
          extended by de.upb.hni.vmagic.expression.UnaryExpression
All Implemented Interfaces:
Choice
Direct Known Subclasses:
Abs, Minus, Not, Plus

public abstract class UnaryExpression
extends Expression

Abstract base class for unary expressions.


Method Summary
 Expression getExpression()
          Sets the parameter expression.
 ExpressionKind getExpressionKind()
          Returns the kind of this expression.
 int getPrecedence()
          Returns the precedence of this expression.
 SubtypeIndication getType()
          Returns the type of this expression.
 void setExpression(Expression expression)
          Sets the parameter 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
 

Method Detail

getExpression

public Expression getExpression()
Sets the parameter expression.

Returns:
the parameter expression

setExpression

public void setExpression(Expression expression)
Sets the parameter expression.

Parameters:
expression - the parameter expression

getType

public SubtypeIndication getType()
Description copied from class: Expression
Returns the type of this expression.

Specified by:
getType in class Expression
Returns:
the type of this expression

getPrecedence

public int getPrecedence()
Description copied from class: Expression
Returns the precedence of this expression.

Specified by:
getPrecedence in class Expression
Returns:
the precedence, higher values mean higher precedence
See Also:
ExpressionPrecedences

getExpressionKind

public ExpressionKind getExpressionKind()
Returns the kind of this expression.

Returns:
the expression kind