org.jboss.seam.remoting.annotationparser.visitor
Class DepthFirstVisitor

java.lang.Object
  extended by org.jboss.seam.remoting.annotationparser.visitor.DepthFirstVisitor
All Implemented Interfaces:
Visitor
Direct Known Subclasses:
AnnotationsParser

public class DepthFirstVisitor
extends Object
implements Visitor

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


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

DepthFirstVisitor

public DepthFirstVisitor()
Method Detail

visit

public void visit(NodeList n)
Specified by:
visit in interface Visitor

visit

public void visit(NodeListOptional n)
Specified by:
visit in interface Visitor

visit

public void visit(NodeOptional n)
Specified by:
visit in interface Visitor

visit

public void visit(NodeSequence n)
Specified by:
visit in interface Visitor

visit

public void visit(NodeToken n)
Specified by:
visit in interface Visitor

visit

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

Specified by:
visit in interface Visitor

visit

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

Specified by:
visit in interface Visitor

visit

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

Specified by:
visit in interface Visitor

visit

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

Specified by:
visit in interface Visitor

visit

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

Specified by:
visit in interface Visitor

visit

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

Specified by:
visit in interface Visitor

visit

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

Specified by:
visit in interface Visitor

visit

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

Specified by:
visit in interface Visitor

visit

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

Specified by:
visit in interface Visitor

visit

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

Specified by:
visit in interface Visitor

visit

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

Specified by:
visit in interface Visitor

visit

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

Specified by:
visit in interface Visitor

visit

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

Specified by:
visit in interface Visitor

visit

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

Specified by:
visit in interface Visitor

visit

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

Specified by:
visit in interface Visitor


Copyright © 2011 Seam Framework. All Rights Reserved.