de.upb.hni.vmagic.expression
Class Parentheses

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.Primary
              extended by de.upb.hni.vmagic.expression.Parentheses
All Implemented Interfaces:
Choice

public class Parentheses
extends Primary

Parentheses expression.


Constructor Summary
Parentheses(Expression expression)
          Creates a parentheses expression.
 
Method Summary
 Expression getExpression()
          Returns the expression inside the parentheses.
 SubtypeIndication getType()
          Returns the type of this expression.
 void setExpression(Expression expression)
          Sets the expression inside the parentheses.
 
Methods inherited from class de.upb.hni.vmagic.expression.Primary
getPrecedence
 
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

Parentheses

public Parentheses(Expression expression)
Creates a parentheses expression.

Parameters:
expression - the expression inside the parentheses
Method Detail

getExpression

public Expression getExpression()
Returns the expression inside the parentheses.

Returns:
the expression inside the parentheses

setExpression

public void setExpression(Expression expression)
Sets the expression inside the parentheses.

Parameters:
expression - the expression inside the parentheses

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