/* * 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.*; /** * All GJ visitors with no argument must implement this interface. */ public interface GJNoArguVisitor<R> { // // GJ Auto class visitors with no argument // public R visit(NodeList n); public R visit(NodeListOptional n); public R visit(NodeOptional n); public R visit(NodeSequence n); public R visit(NodeToken n); // // User-generated visitor methods below // /** * <PRE> * packageDeclaration -> PackageDeclaration() * nodeListOptional -> ( ImportDeclaration() )* * nabuccoStatement -> NabuccoStatement() * nodeToken -> <EOF> * </PRE> */ public R visit(NabuccoUnit n); /** * <PRE> * nodeToken -> <PACKAGE> * nodeToken1 -> <PACKAGE_IDENTIFIER> * nodeToken2 -> <SEMICOLON_CHAR> * </PRE> */ public R visit(PackageDeclaration n); /** * <PRE> * nodeToken -> <IMPORT> * nodeToken1 -> <QUALIFIED_TYPE_NAME> * nodeToken2 -> <SEMICOLON_CHAR> * </PRE> */ public R visit(ImportDeclaration n); /** * <PRE> * nodeListOptional -> ( <ANNOTATION> )* * </PRE> */ public R visit(AnnotationDeclaration n); /** * <PRE> * nodeToken -> <EXTENDS> * nodeChoice -> ( <UNQUALIFIED_TYPE_NAME> | <QUALIFIED_TYPE_NAME> ) * </PRE> */ public R visit(ExtensionDeclaration n); /** * <PRE> * nodeChoice -> ( ApplicationStatement() | ComponentStatement() | AdapterStatement() | DatatypeStatement() | BasetypeStatement() | EnumerationStatement() | ExceptionStatement() | ServiceStatement() | MessageStatement() | EditViewStatement() | ListViewStatement() | SearchViewStatement() | CommandStatement() ) * </PRE> */ public R visit(NabuccoStatement n); /** * <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); /** * <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); /** * <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); /** * <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); /** * <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); /** * <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); /** * <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); /** * <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); /** * <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); /** * <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); /** * <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); /** * <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); /** * <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); /** * <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); /** * <PRE> * nodeChoice -> ( ComponentDeclaration() | ConnectorStatement() ) * </PRE> */ public R visit(ApplicationPropertyDeclaration n); /** * <PRE> * nodeChoice -> ( ComponentDatatypeDeclaration() | EnumerationDeclaration() | ServiceDeclaration() | ComponentDeclaration() ) * </PRE> */ public R visit(ComponentPropertyDeclaration n); /** * <PRE> * nodeChoice -> ( CustomDeclaration() | ServiceDeclaration() | MethodDeclaration() ) * </PRE> */ public R visit(ServicePropertyDeclaration n); /** * <PRE> * nodeChoice -> ( DatatypeDeclaration() | ServiceLinkDeclaration() ) * </PRE> */ public R visit(ConnectorPropertyDeclaration n); /** * <PRE> * nodeChoice -> ( BasetypeDeclaration() | DatatypeDeclaration() | EnumerationDeclaration() ) * </PRE> */ public R visit(PropertyDeclaration n); /** * <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); /** * <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); /** * <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); /** * <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); /** * <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); /** * <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); /** * <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); /** * <PRE> * annotationDeclaration -> AnnotationDeclaration() * nodeToken -> <CONSTANT_IDENTIFIER> * </PRE> */ public R visit(EnumerationLiteralDeclaration n); /** * <PRE> * annotationDeclaration -> AnnotationDeclaration() * nodeToken -> <PRIVATE> * nodeToken1 -> <PARAMETER> * nodeToken2 -> <NAME_IDENTIFIER> * nodeToken3 -> <SEMICOLON_CHAR> * </PRE> */ public R visit(ExceptionParameterDeclaration n); /** * <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); /** * <PRE> * annotationDeclaration -> AnnotationDeclaration() * nodeChoice -> ( <PUBLIC> | <PROTECTED> | <PRIVATE> ) * nodeToken -> <SERVICE> * nodeToken1 -> <UNQUALIFIED_TYPE_NAME> * nodeToken2 -> <SEMICOLON_CHAR> * </PRE> */ public R visit(ServiceDeclaration n); /** * <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); /** * <PRE> * nodeListOptional -> ( Parameter() )* * </PRE> */ public R visit(ParameterList n); /** * <PRE> * nodeOptional -> [ <COMMA_CHAR> ] * nodeToken -> <UNQUALIFIED_TYPE_NAME> * nodeToken1 -> <NAME_IDENTIFIER> * </PRE> */ public R visit(Parameter n); /** * <PRE> * block -> Block() * </PRE> */ public R visit(MethodBody n); /** * <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); /** * <PRE> * nodeChoice -> LabeledInputFieldDeclaration() * | InputFieldDeclaration() * | LabeledPickerDeclaration() * | PickerDeclaration() * | LabeledListPickerDeclaration() * | ListPickerDeclaration() * | LabeledComboBoxDeclaration() * | ComboBoxDeclaration() * </PRE> */ public R visit(WidgetDeclaration n); /** * <PRE> * annotationDeclaration -> AnnotationDeclaration() * nodeToken -> <PRIVATE> * nodeToken1 -> <LABELED_INPUT_FIELD> * nodeToken2 -> <NAME_IDENTIFIER> * nodeToken3 -> <SEMICOLON_CHAR> * </PRE> */ public R visit(LabeledInputFieldDeclaration n); /** * <PRE> * annotationDeclaration -> AnnotationDeclaration() * nodeToken -> <PRIVATE> * nodeToken1 -> <INPUT_FIELD> * nodeToken2 -> <NAME_IDENTIFIER> * nodeToken3 -> <SEMICOLON_CHAR> * </PRE> */ public R visit(InputFieldDeclaration n); /** * <PRE> * annotationDeclaration -> AnnotationDeclaration() * nodeToken -> <PRIVATE> * nodeToken1 -> <LABELED_PICKER> * nodeToken2 -> <NAME_IDENTIFIER> * nodeToken3 -> <SEMICOLON_CHAR> * </PRE> */ public R visit(LabeledPickerDeclaration n); /** * <PRE> * annotationDeclaration -> AnnotationDeclaration() * nodeToken -> <PRIVATE> * nodeToken1 -> <PICKER> * nodeToken2 -> <NAME_IDENTIFIER> * nodeToken3 -> <SEMICOLON_CHAR> * </PRE> */ public R visit(PickerDeclaration n); /** * <PRE> * annotationDeclaration -> AnnotationDeclaration() * nodeToken -> <PRIVATE> * nodeToken1 -> <LABELED_LIST_PICKER> * nodeToken2 -> <NAME_IDENTIFIER> * nodeToken3 -> <SEMICOLON_CHAR> * </PRE> */ public R visit(LabeledListPickerDeclaration n); /** * <PRE> * annotationDeclaration -> AnnotationDeclaration() * nodeToken -> <PRIVATE> * nodeToken1 -> <LIST_PICKER> * nodeToken2 -> <NAME_IDENTIFIER> * nodeToken3 -> <SEMICOLON_CHAR> * </PRE> */ public R visit(ListPickerDeclaration n); /** * <PRE> * annotationDeclaration -> AnnotationDeclaration() * nodeToken -> <PRIVATE> * nodeToken1 -> <LABELED_COMBO_BOX> * nodeToken2 -> <NAME_IDENTIFIER> * nodeToken3 -> <SEMICOLON_CHAR> * </PRE> */ public R visit(LabeledComboBoxDeclaration n); /** * <PRE> * annotationDeclaration -> AnnotationDeclaration() * nodeToken -> <PRIVATE> * nodeToken1 -> <COMBO_BOX> * nodeToken2 -> <NAME_IDENTIFIER> * nodeToken3 -> <SEMICOLON_CHAR> * </PRE> */ public R visit(ComboBoxDeclaration n); /** * <PRE> * annotationDeclaration -> AnnotationDeclaration() * nodeToken -> <PRIVATE> * nodeToken1 -> <COLUMN> * nodeToken2 -> <NAME_IDENTIFIER> * nodeToken3 -> <SEMICOLON_CHAR> * </PRE> */ public R visit(ColumnDeclaration n); }