de.upb.hni.vmagic.expression
Class ExpressionVisitor

java.lang.Object
  extended by de.upb.hni.vmagic.expression.ExpressionVisitor

public class ExpressionVisitor
extends java.lang.Object

Expression visitor.


Constructor Summary
ExpressionVisitor()
           
 
Method Summary
 void visit(Expression expression)
          Visits an expression.
protected  void visitAggregate(Aggregate expression)
          Visits an aggregate.
protected  void visitBinaryExpression(BinaryExpression expression)
          Visits a binary expression.
protected  void visitFunctionCall(FunctionCall expression)
          Visits a function call.
protected  void visitLiteral(Literal expression)
          Visits a literal.
protected  void visitParentheses(Parentheses expression)
          Visits a parentheses expression.
protected  void visitQualifiedExpression(QualifiedExpression expression)
          Visits a qualified expression.
protected  void visitQualifiedExpressionAllocator(QualifiedExpressionAllocator expression)
          Vistis a qualified expression allocator.
protected  void visitSubtypeIndicationAllocator(SubtypeIndicationAllocator expression)
          Visits a subtype indication allocator.
protected  void visitTypeConversion(TypeConversion expression)
          Visits a type conversion.
protected  void visitUnaryExpression(UnaryExpression expression)
          Visits a unary expression.
protected  void visitVhdlObject(VhdlObject object)
          Visits a VHDL object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExpressionVisitor

public ExpressionVisitor()
Method Detail

visit

public void visit(Expression expression)
Visits an expression. No visit method is called when the parameter is null.

Parameters:
expression - the expression

visitAggregate

protected void visitAggregate(Aggregate expression)
Visits an aggregate.

Parameters:
expression - the aggregate

visitBinaryExpression

protected void visitBinaryExpression(BinaryExpression expression)
Visits a binary expression.

Parameters:
expression - the expression

visitFunctionCall

protected void visitFunctionCall(FunctionCall expression)
Visits a function call.

Parameters:
expression - the function call

visitLiteral

protected void visitLiteral(Literal expression)
Visits a literal.

Parameters:
expression - the literal

visitParentheses

protected void visitParentheses(Parentheses expression)
Visits a parentheses expression.

Parameters:
expression - the parentheses expression

visitQualifiedExpression

protected void visitQualifiedExpression(QualifiedExpression expression)
Visits a qualified expression.

Parameters:
expression - the qualified expression

visitQualifiedExpressionAllocator

protected void visitQualifiedExpressionAllocator(QualifiedExpressionAllocator expression)
Vistis a qualified expression allocator.

Parameters:
expression - the qualified expression allocator

visitSubtypeIndicationAllocator

protected void visitSubtypeIndicationAllocator(SubtypeIndicationAllocator expression)
Visits a subtype indication allocator.

Parameters:
expression - the subtype indication allocator

visitTypeConversion

protected void visitTypeConversion(TypeConversion expression)
Visits a type conversion.

Parameters:
expression - the type conversion

visitUnaryExpression

protected void visitUnaryExpression(UnaryExpression expression)
Visits a unary expression.

Parameters:
expression - the expression

visitVhdlObject

protected void visitVhdlObject(VhdlObject object)
Visits a VHDL object.

Parameters:
object - the object