// // Generated by JTB 1.3.2 // package org.jboss.seam.remoting.annotationparser.visitor; import org.jboss.seam.remoting.annotationparser.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 GJNoArguDepthFirst<R> implements GJNoArguVisitor<R> { // // Auto class visitors--probably don't need to be overridden. // public R visit(NodeList n) { R _ret=null; int _count=0; for ( Enumeration<Node> e = n.elements(); e.hasMoreElements(); ) { e.nextElement().accept(this); _count++; } return _ret; } public R visit(NodeListOptional n) { if ( n.present() ) { R _ret=null; int _count=0; for ( Enumeration<Node> e = n.elements(); e.hasMoreElements(); ) { e.nextElement().accept(this); _count++; } return _ret; } else return null; } public R visit(NodeOptional n) { if ( n.present() ) return n.node.accept(this); else return null; } public R visit(NodeSequence n) { R _ret=null; int _count=0; for ( Enumeration<Node> e = n.elements(); e.hasMoreElements(); ) { e.nextElement().accept(this); _count++; } return _ret; } public R visit(NodeToken n) { return null; } // // User-generated visitor methods below // /** * f0 -> [ Annotation() ( "," Annotation() )* ] */ public R visit(AnnotationsUnit n) { R _ret=null; n.f0.accept(this); return _ret; } /** * f0 -> "boolean" * | "char" * | "byte" * | "short" * | "int" * | "long" * | "float" * | "double" */ public R visit(PrimitiveType n) { R _ret=null; n.f0.accept(this); return _ret; } /** * f0 -> <IDENTIFIER> * f1 -> ( "." <IDENTIFIER> )* */ public R visit(Name n) { R _ret=null; n.f0.accept(this); n.f1.accept(this); return _ret; } /** * f0 -> <INTEGER_LITERAL> * | <FLOATING_POINT_LITERAL> * | <CHARACTER_LITERAL> * | <STRING_LITERAL> * | BooleanLiteral() * | NullLiteral() */ public R visit(Literal n) { R _ret=null; n.f0.accept(this); return _ret; } /** * f0 -> "true" * | "false" */ public R visit(BooleanLiteral n) { R _ret=null; n.f0.accept(this); return _ret; } /** * f0 -> "null" */ public R visit(NullLiteral n) { R _ret=null; n.f0.accept(this); return _ret; } /** * f0 -> NormalAnnotation() * | SingleMemberAnnotation() * | MarkerAnnotation() */ public R visit(Annotation n) { R _ret=null; n.f0.accept(this); return _ret; } /** * f0 -> "@" * f1 -> Name() * f2 -> "(" * f3 -> [ MemberValuePairs() ] * f4 -> ")" */ public R visit(NormalAnnotation n) { R _ret=null; n.f0.accept(this); n.f1.accept(this); n.f2.accept(this); n.f3.accept(this); n.f4.accept(this); return _ret; } /** * f0 -> "@" * f1 -> Name() */ public R visit(MarkerAnnotation n) { R _ret=null; n.f0.accept(this); n.f1.accept(this); return _ret; } /** * f0 -> "@" * f1 -> Name() * f2 -> "(" * f3 -> MemberValue() * f4 -> ")" */ public R visit(SingleMemberAnnotation n) { R _ret=null; n.f0.accept(this); n.f1.accept(this); n.f2.accept(this); n.f3.accept(this); n.f4.accept(this); return _ret; } /** * f0 -> MemberValuePair() * f1 -> ( "," MemberValuePair() )* */ public R visit(MemberValuePairs n) { R _ret=null; n.f0.accept(this); n.f1.accept(this); return _ret; } /** * f0 -> <IDENTIFIER> * f1 -> "=" * f2 -> MemberValue() */ public R visit(MemberValuePair n) { R _ret=null; n.f0.accept(this); n.f1.accept(this); n.f2.accept(this); return _ret; } /** * f0 -> Annotation() * | MemberValueArrayInitializer() * | Literal() * | ClassOrInterfaceType() */ public R visit(MemberValue n) { R _ret=null; n.f0.accept(this); return _ret; } /** * f0 -> <IDENTIFIER> * f1 -> ( "." <IDENTIFIER> )* * f2 -> [ "." "class" ] */ public R visit(ClassOrInterfaceType n) { R _ret=null; n.f0.accept(this); n.f1.accept(this); n.f2.accept(this); return _ret; } /** * f0 -> "{" * f1 -> MemberValue() * f2 -> ( "," MemberValue() )* * f3 -> [ "," ] * f4 -> "}" */ public R visit(MemberValueArrayInitializer n) { R _ret=null; n.f0.accept(this); n.f1.accept(this); n.f2.accept(this); n.f3.accept(this); n.f4.accept(this); return _ret; } }