org.jboss.seam.remoting.annotationparser.visitor
Class GJNoArguDepthFirst<R>

java.lang.Object
  extended by org.jboss.seam.remoting.annotationparser.visitor.GJNoArguDepthFirst<R>
All Implemented Interfaces:
GJNoArguVisitor<R>

public class GJNoArguDepthFirst<R>
extends Object
implements GJNoArguVisitor<R>

Provides default methods which visit each node in the tree in depth-first order. Your visitors may extend this class.


Constructor Summary
GJNoArguDepthFirst()
           
 
Method Summary
 R visit(Annotation n)
          f0 -> NormalAnnotation() | SingleMemberAnnotation() | MarkerAnnotation()
 R visit(AnnotationsUnit n)
          f0 -> [ Annotation() ( "," Annotation() )* ]
 R visit(BooleanLiteral n)
          f0 -> "true" | "false"
 R visit(ClassOrInterfaceType n)
          f0 -> f1 -> ( "." )* f2 -> [ "." "class" ]
 R visit(Literal n)
          f0 -> | | | | BooleanLiteral() | NullLiteral()
 R visit(MarkerAnnotation n)
          f0 -> "@" f1 -> Name()
 R visit(MemberValue n)
          f0 -> Annotation() | MemberValueArrayInitializer() | Literal() | ClassOrInterfaceType()
 R visit(MemberValueArrayInitializer n)
          f0 -> "{" f1 -> MemberValue() f2 -> ( "," MemberValue() )* f3 -> [ "," ] f4 -> "}"
 R visit(MemberValuePair n)
          f0 -> f1 -> "=" f2 -> MemberValue()
 R visit(MemberValuePairs n)
          f0 -> MemberValuePair() f1 -> ( "," MemberValuePair() )*
 R visit(Name n)
          f0 -> f1 -> ( "." )*
 R visit(NodeList n)
           
 R visit(NodeListOptional n)
           
 R visit(NodeOptional n)
           
 R visit(NodeSequence n)
           
 R visit(NodeToken n)
           
 R visit(NormalAnnotation n)
          f0 -> "@" f1 -> Name() f2 -> "(" f3 -> [ MemberValuePairs() ] f4 -> ")"
 R visit(NullLiteral n)
          f0 -> "null"
 R visit(PrimitiveType n)
          f0 -> "boolean" | "char" | "byte" | "short" | "int" | "long" | "float" | "double"
 R visit(SingleMemberAnnotation n)
          f0 -> "@" f1 -> Name() f2 -> "(" f3 -> MemberValue() f4 -> ")"
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GJNoArguDepthFirst

public GJNoArguDepthFirst()
Method Detail

visit

public R visit(NodeList n)
Specified by:
visit in interface GJNoArguVisitor<R>

visit

public R visit(NodeListOptional n)
Specified by:
visit in interface GJNoArguVisitor<R>

visit

public R visit(NodeOptional n)
Specified by:
visit in interface GJNoArguVisitor<R>

visit

public R visit(NodeSequence n)
Specified by:
visit in interface GJNoArguVisitor<R>

visit

public R visit(NodeToken n)
Specified by:
visit in interface GJNoArguVisitor<R>

visit

public R visit(AnnotationsUnit n)
f0 -> [ Annotation() ( "," Annotation() )* ]

Specified by:
visit in interface GJNoArguVisitor<R>

visit

public R visit(PrimitiveType n)
f0 -> "boolean" | "char" | "byte" | "short" | "int" | "long" | "float" | "double"

Specified by:
visit in interface GJNoArguVisitor<R>

visit

public R visit(Name n)
f0 -> f1 -> ( "." )*

Specified by:
visit in interface GJNoArguVisitor<R>

visit

public R visit(Literal n)
f0 -> | | | | BooleanLiteral() | NullLiteral()

Specified by:
visit in interface GJNoArguVisitor<R>

visit

public R visit(BooleanLiteral n)
f0 -> "true" | "false"

Specified by:
visit in interface GJNoArguVisitor<R>

visit

public R visit(NullLiteral n)
f0 -> "null"

Specified by:
visit in interface GJNoArguVisitor<R>

visit

public R visit(Annotation n)
f0 -> NormalAnnotation() | SingleMemberAnnotation() | MarkerAnnotation()

Specified by:
visit in interface GJNoArguVisitor<R>

visit

public R visit(NormalAnnotation n)
f0 -> "@" f1 -> Name() f2 -> "(" f3 -> [ MemberValuePairs() ] f4 -> ")"

Specified by:
visit in interface GJNoArguVisitor<R>

visit

public R visit(MarkerAnnotation n)
f0 -> "@" f1 -> Name()

Specified by:
visit in interface GJNoArguVisitor<R>

visit

public R visit(SingleMemberAnnotation n)
f0 -> "@" f1 -> Name() f2 -> "(" f3 -> MemberValue() f4 -> ")"

Specified by:
visit in interface GJNoArguVisitor<R>

visit

public R visit(MemberValuePairs n)
f0 -> MemberValuePair() f1 -> ( "," MemberValuePair() )*

Specified by:
visit in interface GJNoArguVisitor<R>

visit

public R visit(MemberValuePair n)
f0 -> f1 -> "=" f2 -> MemberValue()

Specified by:
visit in interface GJNoArguVisitor<R>

visit

public R visit(MemberValue n)
f0 -> Annotation() | MemberValueArrayInitializer() | Literal() | ClassOrInterfaceType()

Specified by:
visit in interface GJNoArguVisitor<R>

visit

public R visit(ClassOrInterfaceType n)
f0 -> f1 -> ( "." )* f2 -> [ "." "class" ]

Specified by:
visit in interface GJNoArguVisitor<R>

visit

public R visit(MemberValueArrayInitializer n)
f0 -> "{" f1 -> MemberValue() f2 -> ( "," MemberValue() )* f3 -> [ "," ] f4 -> "}"

Specified by:
visit in interface GJNoArguVisitor<R>


Copyright © 2011 Seam Framework. All Rights Reserved.