/* * Copyright 2012 PRODYNA AG * * Licensed under the Eclipse Public License (EPL), Version 1.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.opensource.org/licenses/eclipse-1.0.php or * http://www.nabucco.org/License.html * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.nabucco.framework.generator.parser.visitor; import org.nabucco.framework.generator.parser.syntaxtree.*; import java.util.*; /** * Provides default methods which visit each node in the tree in depth-first * order. Your visitors may extend this class. */ public class GJDepthFirst<R,A> implements GJVisitor<R,A> { // // Auto class visitors--probably don't need to be overridden. // public R visit(NodeList n, A argu) { R _ret=null; int _count=0; for ( Enumeration<Node> e = n.elements(); e.hasMoreElements(); ) { e.nextElement().accept(this,argu); _count++; } return _ret; } public R visit(NodeListOptional n, A argu) { if ( n.present() ) { R _ret=null; int _count=0; for ( Enumeration<Node> e = n.elements(); e.hasMoreElements(); ) { e.nextElement().accept(this,argu); _count++; } return _ret; } else return null; } public R visit(NodeOptional n, A argu) { if ( n.present() ) return n.node.accept(this,argu); else return null; } public R visit(NodeSequence n, A argu) { R _ret=null; int _count=0; for ( Enumeration<Node> e = n.elements(); e.hasMoreElements(); ) { e.nextElement().accept(this,argu); _count++; } return _ret; } public R visit(NodeToken n, A argu) { return null; } // // User-generated visitor methods below // /** * <PRE> * packageDeclaration -> PackageDeclaration() * nodeListOptional -> ( ImportDeclaration() )* * nabuccoStatement -> NabuccoStatement() * nodeToken -> <EOF> * </PRE> */ public R visit(NabuccoUnit n, A argu) { R _ret=null; n.packageDeclaration.accept(this, argu); n.nodeListOptional.accept(this, argu); n.nabuccoStatement.accept(this, argu); n.nodeToken.accept(this, argu); return _ret; } /** * <PRE> * nodeToken -> <PACKAGE> * nodeToken1 -> <PACKAGE_IDENTIFIER> * nodeToken2 -> <SEMICOLON_CHAR> * </PRE> */ public R visit(PackageDeclaration n, A argu) { R _ret=null; n.nodeToken.accept(this, argu); n.nodeToken1.accept(this, argu); n.nodeToken2.accept(this, argu); return _ret; } /** * <PRE> * nodeToken -> <IMPORT> * nodeToken1 -> <QUALIFIED_TYPE_NAME> * nodeToken2 -> <SEMICOLON_CHAR> * </PRE> */ public R visit(ImportDeclaration n, A argu) { R _ret=null; n.nodeToken.accept(this, argu); n.nodeToken1.accept(this, argu); n.nodeToken2.accept(this, argu); return _ret; } /** * <PRE> * nodeListOptional -> ( <ANNOTATION> )* * </PRE> */ public R visit(AnnotationDeclaration n, A argu) { R _ret=null; n.nodeListOptional.accept(this, argu); return _ret; } /** * <PRE> * nodeToken -> <EXTENDS> * nodeChoice -> ( <UNQUALIFIED_TYPE_NAME> | <QUALIFIED_TYPE_NAME> ) * </PRE> */ public R visit(ExtensionDeclaration n, A argu) { R _ret=null; n.nodeToken.accept(this, argu); n.nodeChoice.accept(this, argu); return _ret; } /** * <PRE> * nodeChoice -> ( ApplicationStatement() | ComponentStatement() | AdapterStatement() | DatatypeStatement() | BasetypeStatement() | EnumerationStatement() | ExceptionStatement() | ServiceStatement() | MessageStatement() | EditViewStatement() | ListViewStatement() | SearchViewStatement() | CommandStatement() ) * </PRE> */ public R visit(NabuccoStatement n, A argu) { R _ret=null; n.nodeChoice.accept(this, argu); return _ret; } /** * <PRE> * annotationDeclaration -> AnnotationDeclaration() * nodeToken -> <PUBLIC> * nodeToken1 -> <APPLICATION> * nodeToken2 -> <UNQUALIFIED_TYPE_NAME> * nodeToken3 -> <LBRACE_CHAR> * nodeListOptional -> ( ApplicationPropertyDeclaration() )* * nodeToken4 -> <RBRACE_CHAR> * </PRE> */ public R visit(ApplicationStatement n, A argu) { R _ret=null; n.annotationDeclaration.accept(this, argu); n.nodeToken.accept(this, argu); n.nodeToken1.accept(this, argu); n.nodeToken2.accept(this, argu); n.nodeToken3.accept(this, argu); n.nodeListOptional.accept(this, argu); n.nodeToken4.accept(this, argu); return _ret; } /** * <PRE> * annotationDeclaration -> AnnotationDeclaration() * nodeToken -> <PUBLIC> * nodeToken1 -> <COMPONENT> * nodeToken2 -> <UNQUALIFIED_TYPE_NAME> * nodeToken3 -> <LBRACE_CHAR> * nodeListOptional -> ( ComponentPropertyDeclaration() )* * nodeToken4 -> <RBRACE_CHAR> * </PRE> */ public R visit(ComponentStatement n, A argu) { R _ret=null; n.annotationDeclaration.accept(this, argu); n.nodeToken.accept(this, argu); n.nodeToken1.accept(this, argu); n.nodeToken2.accept(this, argu); n.nodeToken3.accept(this, argu); n.nodeListOptional.accept(this, argu); n.nodeToken4.accept(this, argu); return _ret; } /** * <PRE> * annotationDeclaration -> AnnotationDeclaration() * nodeToken -> <PUBLIC> * nodeToken1 -> <ADAPTER> * nodeToken2 -> <UNQUALIFIED_TYPE_NAME> * nodeToken3 -> <LBRACE_CHAR> * nodeListOptional -> ( ServiceDeclaration() )* * nodeToken4 -> <RBRACE_CHAR> * </PRE> */ public R visit(AdapterStatement n, A argu) { R _ret=null; n.annotationDeclaration.accept(this, argu); n.nodeToken.accept(this, argu); n.nodeToken1.accept(this, argu); n.nodeToken2.accept(this, argu); n.nodeToken3.accept(this, argu); n.nodeListOptional.accept(this, argu); n.nodeToken4.accept(this, argu); return _ret; } /** * <PRE> * annotationDeclaration -> AnnotationDeclaration() * nodeToken -> <PUBLIC> * nodeOptional -> [ <ABSTRACT> ] * nodeToken1 -> <DATATYPE> * nodeToken2 -> <UNQUALIFIED_TYPE_NAME> * nodeOptional1 -> [ ExtensionDeclaration() ] * nodeToken3 -> <LBRACE_CHAR> * nodeListOptional -> ( PropertyDeclaration() )* * nodeToken4 -> <RBRACE_CHAR> * </PRE> */ public R visit(DatatypeStatement n, A argu) { R _ret=null; n.annotationDeclaration.accept(this, argu); n.nodeToken.accept(this, argu); n.nodeOptional.accept(this, argu); n.nodeToken1.accept(this, argu); n.nodeToken2.accept(this, argu); n.nodeOptional1.accept(this, argu); n.nodeToken3.accept(this, argu); n.nodeListOptional.accept(this, argu); n.nodeToken4.accept(this, argu); return _ret; } /** * <PRE> * annotationDeclaration -> AnnotationDeclaration() * nodeToken -> <PUBLIC> * nodeToken1 -> <BASETYPE> * nodeToken2 -> <UNQUALIFIED_TYPE_NAME> * nodeOptional -> [ ExtensionDeclaration() ] * nodeToken3 -> <LBRACE_CHAR> * nodeToken4 -> <RBRACE_CHAR> * </PRE> */ public R visit(BasetypeStatement n, A argu) { R _ret=null; n.annotationDeclaration.accept(this, argu); n.nodeToken.accept(this, argu); n.nodeToken1.accept(this, argu); n.nodeToken2.accept(this, argu); n.nodeOptional.accept(this, argu); n.nodeToken3.accept(this, argu); n.nodeToken4.accept(this, argu); return _ret; } /** * <PRE> * annotationDeclaration -> AnnotationDeclaration() * nodeToken -> <PUBLIC> * nodeToken1 -> <ENUMERATION> * nodeToken2 -> <UNQUALIFIED_TYPE_NAME> * nodeToken3 -> <LBRACE_CHAR> * nodeListOptional -> ( EnumerationLiteralDeclaration() )* * nodeToken4 -> <RBRACE_CHAR> * </PRE> */ public R visit(EnumerationStatement n, A argu) { R _ret=null; n.annotationDeclaration.accept(this, argu); n.nodeToken.accept(this, argu); n.nodeToken1.accept(this, argu); n.nodeToken2.accept(this, argu); n.nodeToken3.accept(this, argu); n.nodeListOptional.accept(this, argu); n.nodeToken4.accept(this, argu); return _ret; } /** * <PRE> * annotationDeclaration -> AnnotationDeclaration() * nodeToken -> <PUBLIC> * nodeOptional -> [ <ABSTRACT> ] * nodeToken1 -> <SERVICE> * nodeToken2 -> <UNQUALIFIED_TYPE_NAME> * nodeOptional1 -> [ ExtensionDeclaration() ] * nodeToken3 -> <LBRACE_CHAR> * nodeListOptional -> ( ServicePropertyDeclaration() )* * nodeToken4 -> <RBRACE_CHAR> * </PRE> */ public R visit(ServiceStatement n, A argu) { R _ret=null; n.annotationDeclaration.accept(this, argu); n.nodeToken.accept(this, argu); n.nodeOptional.accept(this, argu); n.nodeToken1.accept(this, argu); n.nodeToken2.accept(this, argu); n.nodeOptional1.accept(this, argu); n.nodeToken3.accept(this, argu); n.nodeListOptional.accept(this, argu); n.nodeToken4.accept(this, argu); return _ret; } /** * <PRE> * annotationDeclaration -> AnnotationDeclaration() * nodeToken -> <PUBLIC> * nodeToken1 -> <MESSAGE> * nodeToken2 -> <UNQUALIFIED_TYPE_NAME> * nodeToken3 -> <LBRACE_CHAR> * nodeListOptional -> ( PropertyDeclaration() )* * nodeToken4 -> <RBRACE_CHAR> * </PRE> */ public R visit(MessageStatement n, A argu) { R _ret=null; n.annotationDeclaration.accept(this, argu); n.nodeToken.accept(this, argu); n.nodeToken1.accept(this, argu); n.nodeToken2.accept(this, argu); n.nodeToken3.accept(this, argu); n.nodeListOptional.accept(this, argu); n.nodeToken4.accept(this, argu); return _ret; } /** * <PRE> * annotationDeclaration -> AnnotationDeclaration() * nodeToken -> <PUBLIC> * nodeToken1 -> <EXCEPTION> * nodeToken2 -> <UNQUALIFIED_TYPE_NAME> * nodeOptional -> [ ExtensionDeclaration() ] * nodeToken3 -> <LBRACE_CHAR> * nodeListOptional -> ( ExceptionParameterDeclaration() )* * nodeToken4 -> <RBRACE_CHAR> * </PRE> */ public R visit(ExceptionStatement n, A argu) { R _ret=null; n.annotationDeclaration.accept(this, argu); n.nodeToken.accept(this, argu); n.nodeToken1.accept(this, argu); n.nodeToken2.accept(this, argu); n.nodeOptional.accept(this, argu); n.nodeToken3.accept(this, argu); n.nodeListOptional.accept(this, argu); n.nodeToken4.accept(this, argu); return _ret; } /** * <PRE> * annotationDeclaration -> AnnotationDeclaration() * nodeToken -> <PRIVATE> * nodeToken1 -> <CONNECTOR> * nodeToken2 -> <UNQUALIFIED_TYPE_NAME> * nodeToken3 -> <LBRACE_CHAR> * nodeListOptional -> ( ConnectorPropertyDeclaration() )* * nodeToken4 -> <RBRACE_CHAR> * </PRE> */ public R visit(ConnectorStatement n, A argu) { R _ret=null; n.annotationDeclaration.accept(this, argu); n.nodeToken.accept(this, argu); n.nodeToken1.accept(this, argu); n.nodeToken2.accept(this, argu); n.nodeToken3.accept(this, argu); n.nodeListOptional.accept(this, argu); n.nodeToken4.accept(this, argu); return _ret; } /** * <PRE> * annotationDeclaration -> AnnotationDeclaration() * nodeToken -> <PUBLIC> * nodeToken1 -> <EDITVIEW> * nodeToken2 -> <UNQUALIFIED_TYPE_NAME> * nodeToken3 -> <LBRACE_CHAR> * nodeListOptional -> ( DatatypeDeclaration() | WidgetDeclaration() )* * nodeToken4 -> <RBRACE_CHAR> * </PRE> */ public R visit(EditViewStatement n, A argu) { R _ret=null; n.annotationDeclaration.accept(this, argu); n.nodeToken.accept(this, argu); n.nodeToken1.accept(this, argu); n.nodeToken2.accept(this, argu); n.nodeToken3.accept(this, argu); n.nodeListOptional.accept(this, argu); n.nodeToken4.accept(this, argu); return _ret; } /** * <PRE> * annotationDeclaration -> AnnotationDeclaration() * nodeToken -> <PUBLIC> * nodeToken1 -> <LISTVIEW> * nodeToken2 -> <UNQUALIFIED_TYPE_NAME> * nodeToken3 -> <LBRACE_CHAR> * nodeListOptional -> ( DatatypeDeclaration() | ColumnDeclaration() )* * nodeToken4 -> <RBRACE_CHAR> * </PRE> */ public R visit(ListViewStatement n, A argu) { R _ret=null; n.annotationDeclaration.accept(this, argu); n.nodeToken.accept(this, argu); n.nodeToken1.accept(this, argu); n.nodeToken2.accept(this, argu); n.nodeToken3.accept(this, argu); n.nodeListOptional.accept(this, argu); n.nodeToken4.accept(this, argu); return _ret; } /** * <PRE> * annotationDeclaration -> AnnotationDeclaration() * nodeToken -> <PUBLIC> * nodeToken1 -> <SEARCHVIEW> * nodeToken2 -> <UNQUALIFIED_TYPE_NAME> * nodeToken3 -> <LBRACE_CHAR> * nodeListOptional -> ( DatatypeDeclaration() | WidgetDeclaration() )* * nodeToken4 -> <RBRACE_CHAR> * </PRE> */ public R visit(SearchViewStatement n, A argu) { R _ret=null; n.annotationDeclaration.accept(this, argu); n.nodeToken.accept(this, argu); n.nodeToken1.accept(this, argu); n.nodeToken2.accept(this, argu); n.nodeToken3.accept(this, argu); n.nodeListOptional.accept(this, argu); n.nodeToken4.accept(this, argu); return _ret; } /** * <PRE> * annotationDeclaration -> AnnotationDeclaration() * nodeToken -> <PUBLIC> * nodeToken1 -> <COMMAND> * nodeToken2 -> <UNQUALIFIED_TYPE_NAME> * nodeToken3 -> <LBRACE_CHAR> * nodeListOptional -> ( ViewDeclaration() )* * methodDeclaration -> MethodDeclaration() * nodeToken4 -> <RBRACE_CHAR> * </PRE> */ public R visit(CommandStatement n, A argu) { R _ret=null; n.annotationDeclaration.accept(this, argu); n.nodeToken.accept(this, argu); n.nodeToken1.accept(this, argu); n.nodeToken2.accept(this, argu); n.nodeToken3.accept(this, argu); n.nodeListOptional.accept(this, argu); n.methodDeclaration.accept(this, argu); n.nodeToken4.accept(this, argu); return _ret; } /** * <PRE> * nodeChoice -> ( ComponentDeclaration() | ConnectorStatement() ) * </PRE> */ public R visit(ApplicationPropertyDeclaration n, A argu) { R _ret=null; n.nodeChoice.accept(this, argu); return _ret; } /** * <PRE> * nodeChoice -> ( ComponentDatatypeDeclaration() | EnumerationDeclaration() | ServiceDeclaration() | ComponentDeclaration() ) * </PRE> */ public R visit(ComponentPropertyDeclaration n, A argu) { R _ret=null; n.nodeChoice.accept(this, argu); return _ret; } /** * <PRE> * nodeChoice -> ( CustomDeclaration() | ServiceDeclaration() | MethodDeclaration() ) * </PRE> */ public R visit(ServicePropertyDeclaration n, A argu) { R _ret=null; n.nodeChoice.accept(this, argu); return _ret; } /** * <PRE> * nodeChoice -> ( DatatypeDeclaration() | ServiceLinkDeclaration() ) * </PRE> */ public R visit(ConnectorPropertyDeclaration n, A argu) { R _ret=null; n.nodeChoice.accept(this, argu); return _ret; } /** * <PRE> * nodeChoice -> ( BasetypeDeclaration() | DatatypeDeclaration() | EnumerationDeclaration() ) * </PRE> */ public R visit(PropertyDeclaration n, A argu) { R _ret=null; n.nodeChoice.accept(this, argu); return _ret; } /** * <PRE> * annotationDeclaration -> AnnotationDeclaration() * nodeChoice -> ( <PUBLIC> | <PROTECTED> | <PRIVATE> ) * nodeToken -> <UNQUALIFIED_TYPE_NAME> * nodeToken1 -> <MULTIPLICITY> * nodeToken2 -> <NAME_IDENTIFIER> * nodeToken3 -> <SEMICOLON_CHAR> * </PRE> */ public R visit(CustomDeclaration n, A argu) { R _ret=null; n.annotationDeclaration.accept(this, argu); n.nodeChoice.accept(this, argu); n.nodeToken.accept(this, argu); n.nodeToken1.accept(this, argu); n.nodeToken2.accept(this, argu); n.nodeToken3.accept(this, argu); return _ret; } /** * <PRE> * annotationDeclaration -> AnnotationDeclaration() * nodeChoice -> ( <PUBLIC> | <PROTECTED> | <PRIVATE> ) * nodeOptional -> [ <TRANSIENT> ] * nodeToken -> <BASETYPE> * nodeToken1 -> <UNQUALIFIED_TYPE_NAME> * nodeToken2 -> <MULTIPLICITY> * nodeToken3 -> <NAME_IDENTIFIER> * nodeToken4 -> <SEMICOLON_CHAR> * </PRE> */ public R visit(BasetypeDeclaration n, A argu) { R _ret=null; n.annotationDeclaration.accept(this, argu); n.nodeChoice.accept(this, argu); n.nodeOptional.accept(this, argu); n.nodeToken.accept(this, argu); n.nodeToken1.accept(this, argu); n.nodeToken2.accept(this, argu); n.nodeToken3.accept(this, argu); n.nodeToken4.accept(this, argu); return _ret; } /** * <PRE> * annotationDeclaration -> AnnotationDeclaration() * nodeChoice -> ( <PUBLIC> | <PROTECTED> | <PRIVATE> ) * nodeOptional -> [ <PERSISTENT> ] * nodeToken -> <DATATYPE> * nodeChoice1 -> ( <QUALIFIED_TYPE_NAME> | <UNQUALIFIED_TYPE_NAME> ) * nodeToken1 -> <MULTIPLICITY> * nodeToken2 -> <NAME_IDENTIFIER> * nodeToken3 -> <SEMICOLON_CHAR> * </PRE> */ public R visit(ComponentDatatypeDeclaration n, A argu) { R _ret=null; n.annotationDeclaration.accept(this, argu); n.nodeChoice.accept(this, argu); n.nodeOptional.accept(this, argu); n.nodeToken.accept(this, argu); n.nodeChoice1.accept(this, argu); n.nodeToken1.accept(this, argu); n.nodeToken2.accept(this, argu); n.nodeToken3.accept(this, argu); return _ret; } /** * <PRE> * annotationDeclaration -> AnnotationDeclaration() * nodeChoice -> ( <PUBLIC> | <PROTECTED> | <PRIVATE> ) * nodeToken -> <CONNECTOR> * nodeToken1 -> <UNQUALIFIED_TYPE_NAME> * nodeToken2 -> <NAME_IDENTIFIER> * nodeToken3 -> <SEMICOLON_CHAR> * </PRE> */ public R visit(ConnectorDeclaration n, A argu) { R _ret=null; n.annotationDeclaration.accept(this, argu); n.nodeChoice.accept(this, argu); n.nodeToken.accept(this, argu); n.nodeToken1.accept(this, argu); n.nodeToken2.accept(this, argu); n.nodeToken3.accept(this, argu); return _ret; } /** * <PRE> * annotationDeclaration -> AnnotationDeclaration() * nodeToken -> <PRIVATE> * nodeToken1 -> <SERVICELINK> * nodeToken2 -> <QUALIFIED_TYPE_NAME> * nodeToken3 -> <DOT_CHAR> * nodeToken4 -> <NAME_IDENTIFIER> * nodeToken5 -> <LPAREN_CHAR> * nodeToken6 -> <RPAREN_CHAR> * nodeToken7 -> <SEMICOLON_CHAR> * </PRE> */ public R visit(ServiceLinkDeclaration n, A argu) { R _ret=null; n.annotationDeclaration.accept(this, argu); n.nodeToken.accept(this, argu); n.nodeToken1.accept(this, argu); n.nodeToken2.accept(this, argu); n.nodeToken3.accept(this, argu); n.nodeToken4.accept(this, argu); n.nodeToken5.accept(this, argu); n.nodeToken6.accept(this, argu); n.nodeToken7.accept(this, argu); return _ret; } /** * <PRE> * annotationDeclaration -> AnnotationDeclaration() * nodeChoice -> ( <PUBLIC> | <PROTECTED> | <PRIVATE> ) * nodeOptional -> [ <TRANSIENT> ] * nodeToken -> <DATATYPE> * nodeChoice1 -> ( <QUALIFIED_TYPE_NAME> | <UNQUALIFIED_TYPE_NAME> ) * nodeToken1 -> <MULTIPLICITY> * nodeToken2 -> <NAME_IDENTIFIER> * nodeToken3 -> <SEMICOLON_CHAR> * </PRE> */ public R visit(DatatypeDeclaration n, A argu) { R _ret=null; n.annotationDeclaration.accept(this, argu); n.nodeChoice.accept(this, argu); n.nodeOptional.accept(this, argu); n.nodeToken.accept(this, argu); n.nodeChoice1.accept(this, argu); n.nodeToken1.accept(this, argu); n.nodeToken2.accept(this, argu); n.nodeToken3.accept(this, argu); return _ret; } /** * <PRE> * annotationDeclaration -> AnnotationDeclaration() * nodeChoice -> ( <PUBLIC> | <PROTECTED> | <PRIVATE> ) * nodeOptional -> [ <TRANSIENT> ] * nodeToken -> <ENUMERATION> * nodeChoice1 -> ( <QUALIFIED_TYPE_NAME> | <UNQUALIFIED_TYPE_NAME> ) * nodeToken1 -> <MULTIPLICITY> * nodeToken2 -> <NAME_IDENTIFIER> * nodeToken3 -> <SEMICOLON_CHAR> * </PRE> */ public R visit(EnumerationDeclaration n, A argu) { R _ret=null; n.annotationDeclaration.accept(this, argu); n.nodeChoice.accept(this, argu); n.nodeOptional.accept(this, argu); n.nodeToken.accept(this, argu); n.nodeChoice1.accept(this, argu); n.nodeToken1.accept(this, argu); n.nodeToken2.accept(this, argu); n.nodeToken3.accept(this, argu); return _ret; } /** * <PRE> * annotationDeclaration -> AnnotationDeclaration() * nodeToken -> <CONSTANT_IDENTIFIER> * </PRE> */ public R visit(EnumerationLiteralDeclaration n, A argu) { R _ret=null; n.annotationDeclaration.accept(this, argu); n.nodeToken.accept(this, argu); return _ret; } /** * <PRE> * annotationDeclaration -> AnnotationDeclaration() * nodeToken -> <PRIVATE> * nodeToken1 -> <PARAMETER> * nodeToken2 -> <NAME_IDENTIFIER> * nodeToken3 -> <SEMICOLON_CHAR> * </PRE> */ public R visit(ExceptionParameterDeclaration n, A argu) { R _ret=null; n.annotationDeclaration.accept(this, argu); n.nodeToken.accept(this, argu); n.nodeToken1.accept(this, argu); n.nodeToken2.accept(this, argu); n.nodeToken3.accept(this, argu); return _ret; } /** * <PRE> * annotationDeclaration -> AnnotationDeclaration() * nodeChoice -> ( <PUBLIC> | <PROTECTED> | <PRIVATE> ) * nodeToken -> <COMPONENT> * nodeToken1 -> <UNQUALIFIED_TYPE_NAME> * nodeToken2 -> <NAME_IDENTIFIER> * nodeToken3 -> <SEMICOLON_CHAR> * </PRE> */ public R visit(ComponentDeclaration n, A argu) { R _ret=null; n.annotationDeclaration.accept(this, argu); n.nodeChoice.accept(this, argu); n.nodeToken.accept(this, argu); n.nodeToken1.accept(this, argu); n.nodeToken2.accept(this, argu); n.nodeToken3.accept(this, argu); return _ret; } /** * <PRE> * annotationDeclaration -> AnnotationDeclaration() * nodeChoice -> ( <PUBLIC> | <PROTECTED> | <PRIVATE> ) * nodeToken -> <SERVICE> * nodeToken1 -> <UNQUALIFIED_TYPE_NAME> * nodeToken2 -> <SEMICOLON_CHAR> * </PRE> */ public R visit(ServiceDeclaration n, A argu) { R _ret=null; n.annotationDeclaration.accept(this, argu); n.nodeChoice.accept(this, argu); n.nodeToken.accept(this, argu); n.nodeToken1.accept(this, argu); n.nodeToken2.accept(this, argu); return _ret; } /** * <PRE> * annotationDeclaration -> AnnotationDeclaration() * nodeToken -> <PUBLIC> * nodeChoice -> ( <VOID> | <UNQUALIFIED_TYPE_NAME> ) * nodeToken1 -> <NAME_IDENTIFIER> * nodeToken2 -> <LPAREN_CHAR> * parameterList -> ParameterList() * nodeToken3 -> <RPAREN_CHAR> * nodeOptional -> [ <THROWS> <UNQUALIFIED_TYPE_NAME> ] * nodeChoice1 -> ( <SEMICOLON_CHAR> | <LBRACE_CHAR> MethodBody() <RBRACE_CHAR> ) * </PRE> */ public R visit(MethodDeclaration n, A argu) { R _ret=null; n.annotationDeclaration.accept(this, argu); n.nodeToken.accept(this, argu); n.nodeChoice.accept(this, argu); n.nodeToken1.accept(this, argu); n.nodeToken2.accept(this, argu); n.parameterList.accept(this, argu); n.nodeToken3.accept(this, argu); n.nodeOptional.accept(this, argu); n.nodeChoice1.accept(this, argu); return _ret; } /** * <PRE> * nodeListOptional -> ( Parameter() )* * </PRE> */ public R visit(ParameterList n, A argu) { R _ret=null; n.nodeListOptional.accept(this, argu); return _ret; } /** * <PRE> * nodeOptional -> [ <COMMA_CHAR> ] * nodeToken -> <UNQUALIFIED_TYPE_NAME> * nodeToken1 -> <NAME_IDENTIFIER> * </PRE> */ public R visit(Parameter n, A argu) { R _ret=null; n.nodeOptional.accept(this, argu); n.nodeToken.accept(this, argu); n.nodeToken1.accept(this, argu); return _ret; } /** * <PRE> * block -> Block() * </PRE> */ public R visit(MethodBody n, A argu) { R _ret=null; n.block.accept(this, argu); return _ret; } /** * <PRE> * annotationDeclaration -> AnnotationDeclaration() * nodeToken -> <PRIVATE> * nodeChoice -> ( <EDITVIEW> | <LISTVIEW> | <SEARCHVIEW> ) * nodeToken1 -> <UNQUALIFIED_TYPE_NAME> * nodeToken2 -> <NAME_IDENTIFIER> * nodeToken3 -> <SEMICOLON_CHAR> * </PRE> */ public R visit(ViewDeclaration n, A argu) { R _ret=null; n.annotationDeclaration.accept(this, argu); n.nodeToken.accept(this, argu); n.nodeChoice.accept(this, argu); n.nodeToken1.accept(this, argu); n.nodeToken2.accept(this, argu); n.nodeToken3.accept(this, argu); return _ret; } /** * <PRE> * nodeChoice -> LabeledInputFieldDeclaration() * | InputFieldDeclaration() * | LabeledPickerDeclaration() * | PickerDeclaration() * | LabeledListPickerDeclaration() * | ListPickerDeclaration() * | LabeledComboBoxDeclaration() * | ComboBoxDeclaration() * </PRE> */ public R visit(WidgetDeclaration n, A argu) { R _ret=null; n.nodeChoice.accept(this, argu); return _ret; } /** * <PRE> * annotationDeclaration -> AnnotationDeclaration() * nodeToken -> <PRIVATE> * nodeToken1 -> <LABELED_INPUT_FIELD> * nodeToken2 -> <NAME_IDENTIFIER> * nodeToken3 -> <SEMICOLON_CHAR> * </PRE> */ public R visit(LabeledInputFieldDeclaration n, A argu) { R _ret=null; n.annotationDeclaration.accept(this, argu); n.nodeToken.accept(this, argu); n.nodeToken1.accept(this, argu); n.nodeToken2.accept(this, argu); n.nodeToken3.accept(this, argu); return _ret; } /** * <PRE> * annotationDeclaration -> AnnotationDeclaration() * nodeToken -> <PRIVATE> * nodeToken1 -> <INPUT_FIELD> * nodeToken2 -> <NAME_IDENTIFIER> * nodeToken3 -> <SEMICOLON_CHAR> * </PRE> */ public R visit(InputFieldDeclaration n, A argu) { R _ret=null; n.annotationDeclaration.accept(this, argu); n.nodeToken.accept(this, argu); n.nodeToken1.accept(this, argu); n.nodeToken2.accept(this, argu); n.nodeToken3.accept(this, argu); return _ret; } /** * <PRE> * annotationDeclaration -> AnnotationDeclaration() * nodeToken -> <PRIVATE> * nodeToken1 -> <LABELED_PICKER> * nodeToken2 -> <NAME_IDENTIFIER> * nodeToken3 -> <SEMICOLON_CHAR> * </PRE> */ public R visit(LabeledPickerDeclaration n, A argu) { R _ret=null; n.annotationDeclaration.accept(this, argu); n.nodeToken.accept(this, argu); n.nodeToken1.accept(this, argu); n.nodeToken2.accept(this, argu); n.nodeToken3.accept(this, argu); return _ret; } /** * <PRE> * annotationDeclaration -> AnnotationDeclaration() * nodeToken -> <PRIVATE> * nodeToken1 -> <PICKER> * nodeToken2 -> <NAME_IDENTIFIER> * nodeToken3 -> <SEMICOLON_CHAR> * </PRE> */ public R visit(PickerDeclaration n, A argu) { R _ret=null; n.annotationDeclaration.accept(this, argu); n.nodeToken.accept(this, argu); n.nodeToken1.accept(this, argu); n.nodeToken2.accept(this, argu); n.nodeToken3.accept(this, argu); return _ret; } /** * <PRE> * annotationDeclaration -> AnnotationDeclaration() * nodeToken -> <PRIVATE> * nodeToken1 -> <LABELED_LIST_PICKER> * nodeToken2 -> <NAME_IDENTIFIER> * nodeToken3 -> <SEMICOLON_CHAR> * </PRE> */ public R visit(LabeledListPickerDeclaration n, A argu) { R _ret=null; n.annotationDeclaration.accept(this, argu); n.nodeToken.accept(this, argu); n.nodeToken1.accept(this, argu); n.nodeToken2.accept(this, argu); n.nodeToken3.accept(this, argu); return _ret; } /** * <PRE> * annotationDeclaration -> AnnotationDeclaration() * nodeToken -> <PRIVATE> * nodeToken1 -> <LIST_PICKER> * nodeToken2 -> <NAME_IDENTIFIER> * nodeToken3 -> <SEMICOLON_CHAR> * </PRE> */ public R visit(ListPickerDeclaration n, A argu) { R _ret=null; n.annotationDeclaration.accept(this, argu); n.nodeToken.accept(this, argu); n.nodeToken1.accept(this, argu); n.nodeToken2.accept(this, argu); n.nodeToken3.accept(this, argu); return _ret; } /** * <PRE> * annotationDeclaration -> AnnotationDeclaration() * nodeToken -> <PRIVATE> * nodeToken1 -> <LABELED_COMBO_BOX> * nodeToken2 -> <NAME_IDENTIFIER> * nodeToken3 -> <SEMICOLON_CHAR> * </PRE> */ public R visit(LabeledComboBoxDeclaration n, A argu) { R _ret=null; n.annotationDeclaration.accept(this, argu); n.nodeToken.accept(this, argu); n.nodeToken1.accept(this, argu); n.nodeToken2.accept(this, argu); n.nodeToken3.accept(this, argu); return _ret; } /** * <PRE> * annotationDeclaration -> AnnotationDeclaration() * nodeToken -> <PRIVATE> * nodeToken1 -> <COMBO_BOX> * nodeToken2 -> <NAME_IDENTIFIER> * nodeToken3 -> <SEMICOLON_CHAR> * </PRE> */ public R visit(ComboBoxDeclaration n, A argu) { R _ret=null; n.annotationDeclaration.accept(this, argu); n.nodeToken.accept(this, argu); n.nodeToken1.accept(this, argu); n.nodeToken2.accept(this, argu); n.nodeToken3.accept(this, argu); return _ret; } /** * <PRE> * annotationDeclaration -> AnnotationDeclaration() * nodeToken -> <PRIVATE> * nodeToken1 -> <COLUMN> * nodeToken2 -> <NAME_IDENTIFIER> * nodeToken3 -> <SEMICOLON_CHAR> * </PRE> */ public R visit(ColumnDeclaration n, A argu) { R _ret=null; n.annotationDeclaration.accept(this, argu); n.nodeToken.accept(this, argu); n.nodeToken1.accept(this, argu); n.nodeToken2.accept(this, argu); n.nodeToken3.accept(this, argu); return _ret; } }