cppast
Class VisitorComposite

java.lang.Object
  extended by cppast.VisitorComposite
All Implemented Interfaces:
ParserVisitor

public final class VisitorComposite
extends java.lang.Object
implements ParserVisitor

Provides a composite for parser visitors.

Author:
Mathieu Champlon

Constructor Summary
VisitorComposite()
           
 
Method Summary
 void register(ParserVisitor visitor)
          Add a visitor to the composite.
 java.lang.Object visit(AstAdditiveExpression node, java.lang.Object data)
          
 java.lang.Object visit(AstAndExpression node, java.lang.Object data)
          
 java.lang.Object visit(AstAssignmentExpression node, java.lang.Object data)
          
 java.lang.Object visit(AstBreakStatement node, java.lang.Object data)
          
 java.lang.Object visit(AstCaseStatement node, java.lang.Object data)
          
 java.lang.Object visit(AstCastExpression node, java.lang.Object data)
          
 java.lang.Object visit(AstCatchBlock node, java.lang.Object data)
          
 java.lang.Object visit(AstClassDeclaration node, java.lang.Object data)
          
 java.lang.Object visit(AstClassDefinition node, java.lang.Object data)
          
 java.lang.Object visit(AstConditionalExpression node, java.lang.Object data)
          
 java.lang.Object visit(AstConstantExpression node, java.lang.Object data)
          
 java.lang.Object visit(AstConstructorDeclaration node, java.lang.Object data)
          
 java.lang.Object visit(AstConstructorDefinition node, java.lang.Object data)
          
 java.lang.Object visit(AstConstructorInitializer node, java.lang.Object data)
          
 java.lang.Object visit(AstContinueStatement node, java.lang.Object data)
          
 java.lang.Object visit(AstDeclaration node, java.lang.Object data)
          
 java.lang.Object visit(AstDeclarationStatement node, java.lang.Object data)
          
 java.lang.Object visit(AstDefaultStatement node, java.lang.Object data)
          
 java.lang.Object visit(AstDeleteExpression node, java.lang.Object data)
          
 java.lang.Object visit(AstDestructorDeclaration node, java.lang.Object data)
          
 java.lang.Object visit(AstDestructorDefinition node, java.lang.Object data)
          
 java.lang.Object visit(AstElseStatement node, java.lang.Object data)
          
 java.lang.Object visit(AstEnumSpecifier node, java.lang.Object data)
          
 java.lang.Object visit(AstEqualityExpression node, java.lang.Object data)
          
 java.lang.Object visit(AstExclusiveOrExpression node, java.lang.Object data)
          
 java.lang.Object visit(AstExpressionStatement node, java.lang.Object data)
          
 java.lang.Object visit(AstFunctionBody node, java.lang.Object data)
          
 java.lang.Object visit(AstFunctionCallExpression node, java.lang.Object data)
          
 java.lang.Object visit(AstFunctionDeclaration node, java.lang.Object data)
          
 java.lang.Object visit(AstFunctionDefinition node, java.lang.Object data)
          
 java.lang.Object visit(AstFunctionName node, java.lang.Object data)
          
 java.lang.Object visit(AstFunctionParameters node, java.lang.Object data)
          
 java.lang.Object visit(AstFunctionPointerPostfix node, java.lang.Object data)
          
 java.lang.Object visit(AstGotoStatement node, java.lang.Object data)
          
 java.lang.Object visit(AstIdExpression node, java.lang.Object data)
          
 java.lang.Object visit(AstIfStatement node, java.lang.Object data)
          
 java.lang.Object visit(AstInclusiveOrExpression node, java.lang.Object data)
          
 java.lang.Object visit(AstIterationStatement node, java.lang.Object data)
          
 java.lang.Object visit(AstLabelStatement node, java.lang.Object data)
          
 java.lang.Object visit(AstLogicalAndExpression node, java.lang.Object data)
          
 java.lang.Object visit(AstLogicalOrExpression node, java.lang.Object data)
          
 java.lang.Object visit(AstMemberDeclaration node, java.lang.Object data)
          
 java.lang.Object visit(AstMultiplicativeExpression node, java.lang.Object data)
          
 java.lang.Object visit(AstNamespaceAliasDefinition node, java.lang.Object data)
          
 java.lang.Object visit(AstNamespaceDefinition node, java.lang.Object data)
          
 java.lang.Object visit(AstNewExpression node, java.lang.Object data)
          
 java.lang.Object visit(AstParameter node, java.lang.Object data)
          
 java.lang.Object visit(AstParameterType node, java.lang.Object data)
          
 java.lang.Object visit(AstParameterTypeQualifier node, java.lang.Object data)
          
 java.lang.Object visit(AstPointerToMemberExpression node, java.lang.Object data)
          
 java.lang.Object visit(AstPostfixExpression node, java.lang.Object data)
          
 java.lang.Object visit(AstPrimaryExpression node, java.lang.Object data)
          
 java.lang.Object visit(AstRelationalExpression node, java.lang.Object data)
          
 java.lang.Object visit(AstReturnStatement node, java.lang.Object data)
          
 java.lang.Object visit(AstShiftExpression node, java.lang.Object data)
          
 java.lang.Object visit(AstSwitchStatement node, java.lang.Object data)
          
 java.lang.Object visit(AstThrowExpression node, java.lang.Object data)
          
 java.lang.Object visit(AstTranslationUnit node, java.lang.Object data)
          
 java.lang.Object visit(AstTryBlock node, java.lang.Object data)
          
 java.lang.Object visit(AstTypeIdExpression node, java.lang.Object data)
          
 java.lang.Object visit(AstUnaryExpression node, java.lang.Object data)
          
 java.lang.Object visit(SimpleNode node, java.lang.Object data)
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VisitorComposite

public VisitorComposite()
Method Detail

register

public void register(ParserVisitor visitor)
Add a visitor to the composite.

Parameters:
visitor - the visitor to add

visit

public java.lang.Object visit(SimpleNode node,
                              java.lang.Object data)

Specified by:
visit in interface ParserVisitor

visit

public java.lang.Object visit(AstTranslationUnit node,
                              java.lang.Object data)

Specified by:
visit in interface ParserVisitor

visit

public java.lang.Object visit(AstFunctionDefinition node,
                              java.lang.Object data)

Specified by:
visit in interface ParserVisitor

visit

public java.lang.Object visit(AstFunctionName node,
                              java.lang.Object data)

Specified by:
visit in interface ParserVisitor

visit

public java.lang.Object visit(AstDestructorDefinition node,
                              java.lang.Object data)

Specified by:
visit in interface ParserVisitor

visit

public java.lang.Object visit(AstConstructorDefinition node,
                              java.lang.Object data)

Specified by:
visit in interface ParserVisitor

visit

public java.lang.Object visit(AstCaseStatement node,
                              java.lang.Object data)

Specified by:
visit in interface ParserVisitor

visit

public java.lang.Object visit(AstIfStatement node,
                              java.lang.Object data)

Specified by:
visit in interface ParserVisitor

visit

public java.lang.Object visit(AstIterationStatement node,
                              java.lang.Object data)

Specified by:
visit in interface ParserVisitor

visit

public java.lang.Object visit(AstCatchBlock node,
                              java.lang.Object data)

Specified by:
visit in interface ParserVisitor

visit

public java.lang.Object visit(AstFunctionParameters node,
                              java.lang.Object data)

Specified by:
visit in interface ParserVisitor

visit

public java.lang.Object visit(AstParameter node,
                              java.lang.Object data)

Specified by:
visit in interface ParserVisitor

visit

public java.lang.Object visit(AstParameterType node,
                              java.lang.Object data)

Specified by:
visit in interface ParserVisitor

visit

public java.lang.Object visit(AstParameterTypeQualifier node,
                              java.lang.Object data)

Specified by:
visit in interface ParserVisitor

visit

public java.lang.Object visit(AstFunctionBody node,
                              java.lang.Object data)

Specified by:
visit in interface ParserVisitor

visit

public java.lang.Object visit(AstConstructorInitializer node,
                              java.lang.Object data)

Specified by:
visit in interface ParserVisitor

visit

public java.lang.Object visit(AstExpressionStatement node,
                              java.lang.Object data)

Specified by:
visit in interface ParserVisitor

visit

public java.lang.Object visit(AstElseStatement node,
                              java.lang.Object data)

Specified by:
visit in interface ParserVisitor

visit

public java.lang.Object visit(AstDeclarationStatement node,
                              java.lang.Object data)

Specified by:
visit in interface ParserVisitor

visit

public java.lang.Object visit(AstSwitchStatement node,
                              java.lang.Object data)

Specified by:
visit in interface ParserVisitor

visit

public java.lang.Object visit(AstGotoStatement node,
                              java.lang.Object data)

Specified by:
visit in interface ParserVisitor

visit

public java.lang.Object visit(AstBreakStatement node,
                              java.lang.Object data)

Specified by:
visit in interface ParserVisitor

visit

public java.lang.Object visit(AstReturnStatement node,
                              java.lang.Object data)

Specified by:
visit in interface ParserVisitor

visit

public java.lang.Object visit(AstContinueStatement node,
                              java.lang.Object data)

Specified by:
visit in interface ParserVisitor

visit

public java.lang.Object visit(AstLabelStatement node,
                              java.lang.Object data)

Specified by:
visit in interface ParserVisitor

visit

public java.lang.Object visit(AstDefaultStatement node,
                              java.lang.Object data)

Specified by:
visit in interface ParserVisitor

visit

public java.lang.Object visit(AstConditionalExpression node,
                              java.lang.Object data)

Specified by:
visit in interface ParserVisitor

visit

public java.lang.Object visit(AstLogicalOrExpression node,
                              java.lang.Object data)

Specified by:
visit in interface ParserVisitor

visit

public java.lang.Object visit(AstLogicalAndExpression node,
                              java.lang.Object data)

Specified by:
visit in interface ParserVisitor

visit

public java.lang.Object visit(AstPrimaryExpression node,
                              java.lang.Object data)

Specified by:
visit in interface ParserVisitor

visit

public java.lang.Object visit(AstAssignmentExpression node,
                              java.lang.Object data)

Specified by:
visit in interface ParserVisitor

visit

public java.lang.Object visit(AstInclusiveOrExpression node,
                              java.lang.Object data)

Specified by:
visit in interface ParserVisitor

visit

public java.lang.Object visit(AstExclusiveOrExpression node,
                              java.lang.Object data)

Specified by:
visit in interface ParserVisitor

visit

public java.lang.Object visit(AstAndExpression node,
                              java.lang.Object data)

Specified by:
visit in interface ParserVisitor

visit

public java.lang.Object visit(AstEqualityExpression node,
                              java.lang.Object data)

Specified by:
visit in interface ParserVisitor

visit

public java.lang.Object visit(AstRelationalExpression node,
                              java.lang.Object data)

Specified by:
visit in interface ParserVisitor

visit

public java.lang.Object visit(AstShiftExpression node,
                              java.lang.Object data)

Specified by:
visit in interface ParserVisitor

visit

public java.lang.Object visit(AstAdditiveExpression node,
                              java.lang.Object data)

Specified by:
visit in interface ParserVisitor

visit

public java.lang.Object visit(AstMultiplicativeExpression node,
                              java.lang.Object data)

Specified by:
visit in interface ParserVisitor

visit

public java.lang.Object visit(AstPointerToMemberExpression node,
                              java.lang.Object data)

Specified by:
visit in interface ParserVisitor

visit

public java.lang.Object visit(AstCastExpression node,
                              java.lang.Object data)

Specified by:
visit in interface ParserVisitor

visit

public java.lang.Object visit(AstUnaryExpression node,
                              java.lang.Object data)

Specified by:
visit in interface ParserVisitor

visit

public java.lang.Object visit(AstPostfixExpression node,
                              java.lang.Object data)

Specified by:
visit in interface ParserVisitor

visit

public java.lang.Object visit(AstIdExpression node,
                              java.lang.Object data)

Specified by:
visit in interface ParserVisitor

visit

public java.lang.Object visit(AstNewExpression node,
                              java.lang.Object data)

Specified by:
visit in interface ParserVisitor

visit

public java.lang.Object visit(AstDeleteExpression node,
                              java.lang.Object data)

Specified by:
visit in interface ParserVisitor

visit

public java.lang.Object visit(AstFunctionCallExpression node,
                              java.lang.Object data)

Specified by:
visit in interface ParserVisitor

visit

public java.lang.Object visit(AstConstantExpression node,
                              java.lang.Object data)

Specified by:
visit in interface ParserVisitor

visit

public java.lang.Object visit(AstTypeIdExpression node,
                              java.lang.Object data)

Specified by:
visit in interface ParserVisitor

visit

public java.lang.Object visit(AstThrowExpression node,
                              java.lang.Object data)

Specified by:
visit in interface ParserVisitor

visit

public java.lang.Object visit(AstClassDefinition node,
                              java.lang.Object data)

Specified by:
visit in interface ParserVisitor

visit

public java.lang.Object visit(AstNamespaceDefinition node,
                              java.lang.Object data)

Specified by:
visit in interface ParserVisitor

visit

public java.lang.Object visit(AstNamespaceAliasDefinition node,
                              java.lang.Object data)

Specified by:
visit in interface ParserVisitor

visit

public java.lang.Object visit(AstClassDeclaration node,
                              java.lang.Object data)

Specified by:
visit in interface ParserVisitor

visit

public java.lang.Object visit(AstEnumSpecifier node,
                              java.lang.Object data)

Specified by:
visit in interface ParserVisitor

visit

public java.lang.Object visit(AstDeclaration node,
                              java.lang.Object data)

Specified by:
visit in interface ParserVisitor

visit

public java.lang.Object visit(AstMemberDeclaration node,
                              java.lang.Object data)

Specified by:
visit in interface ParserVisitor

visit

public java.lang.Object visit(AstFunctionDeclaration node,
                              java.lang.Object data)

Specified by:
visit in interface ParserVisitor

visit

public java.lang.Object visit(AstConstructorDeclaration node,
                              java.lang.Object data)

Specified by:
visit in interface ParserVisitor

visit

public java.lang.Object visit(AstDestructorDeclaration node,
                              java.lang.Object data)

Specified by:
visit in interface ParserVisitor

visit

public java.lang.Object visit(AstTryBlock node,
                              java.lang.Object data)

Specified by:
visit in interface ParserVisitor

visit

public java.lang.Object visit(AstFunctionPointerPostfix node,
                              java.lang.Object data)

Specified by:
visit in interface ParserVisitor


Copyright © 2006-2007 null. All Rights Reserved.