org.jboss.seam.remoting.annotationparser.visitor
Class GJDepthFirst<R,A>

java.lang.Object
  extended by org.jboss.seam.remoting.annotationparser.visitor.GJDepthFirst<R,A>
All Implemented Interfaces:
GJVisitor<R,A>

public class GJDepthFirst<R,A>
extends Object
implements GJVisitor<R,A>

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


Constructor Summary
GJDepthFirst()
           
 
Method Summary
 R visit(Annotation n, A argu)
          f0 -> NormalAnnotation() | SingleMemberAnnotation() | MarkerAnnotation()
 R visit(AnnotationsUnit n, A argu)
          f0 -> [ Annotation() ( "," Annotation() )* ]
 R visit(BooleanLiteral n, A argu)
          f0 -> "true" | "false"
 R visit(ClassOrInterfaceType n, A argu)
          f0 -> f1 -> ( "." )* f2 -> [ "." "class" ]
 R visit(Literal n, A argu)
          f0 -> | | | | BooleanLiteral() | NullLiteral()
 R visit(MarkerAnnotation n, A argu)
          f0 -> "@" f1 -> Name()
 R visit(MemberValue n, A argu)
          f0 -> Annotation() | MemberValueArrayInitializer() | Literal() | ClassOrInterfaceType()
 R visit(MemberValueArrayInitializer n, A argu)
          f0 -> "{" f1 -> MemberValue() f2 -> ( "," MemberValue() )* f3 -> [ "," ] f4 -> "}"
 R visit(MemberValuePair n, A argu)
          f0 -> f1 -> "=" f2 -> MemberValue()
 R visit(MemberValuePairs n, A argu)
          f0 -> MemberValuePair() f1 -> ( "," MemberValuePair() )*
 R visit(Name n, A argu)
          f0 -> f1 -> ( "." )*
 R visit(NodeList n, A argu)
           
 R visit(NodeListOptional n, A argu)
           
 R visit(NodeOptional n, A argu)
           
 R visit(NodeSequence n, A argu)
           
 R visit(NodeToken n, A argu)
           
 R visit(NormalAnnotation n, A argu)
          f0 -> "@" f1 -> Name() f2 -> "(" f3 -> [ MemberValuePairs() ] f4 -> ")"
 R visit(NullLiteral n, A argu)
          f0 -> "null"
 R visit(PrimitiveType n, A argu)
          f0 -> "boolean" | "char" | "byte" | "short" | "int" | "long" | "float" | "double"
 R visit(SingleMemberAnnotation n, A argu)
          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

GJDepthFirst

public GJDepthFirst()
Method Detail

visit

public R visit(NodeList n,
               A argu)
Specified by:
visit in interface GJVisitor<R,A>

visit

public R visit(NodeListOptional n,
               A argu)
Specified by:
visit in interface GJVisitor<R,A>

visit

public R visit(NodeOptional n,
               A argu)
Specified by:
visit in interface GJVisitor<R,A>

visit

public R visit(NodeSequence n,
               A argu)
Specified by:
visit in interface GJVisitor<R,A>

visit

public R visit(NodeToken n,
               A argu)
Specified by:
visit in interface GJVisitor<R,A>

visit

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

Specified by:
visit in interface GJVisitor<R,A>

visit

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

Specified by:
visit in interface GJVisitor<R,A>

visit

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

Specified by:
visit in interface GJVisitor<R,A>

visit

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

Specified by:
visit in interface GJVisitor<R,A>

visit

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

Specified by:
visit in interface GJVisitor<R,A>

visit

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

Specified by:
visit in interface GJVisitor<R,A>

visit

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

Specified by:
visit in interface GJVisitor<R,A>

visit

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

Specified by:
visit in interface GJVisitor<R,A>

visit

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

Specified by:
visit in interface GJVisitor<R,A>

visit

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

Specified by:
visit in interface GJVisitor<R,A>

visit

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

Specified by:
visit in interface GJVisitor<R,A>

visit

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

Specified by:
visit in interface GJVisitor<R,A>

visit

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

Specified by:
visit in interface GJVisitor<R,A>

visit

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

Specified by:
visit in interface GJVisitor<R,A>

visit

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

Specified by:
visit in interface GJVisitor<R,A>


Copyright © 2011 Seam Framework. All Rights Reserved.