FileDocCategorySizeDatePackage
SimpleDeclarationVisitor.javaAPI DocJava SE 5 API5537Fri Aug 26 14:55:16 BST 2005com.sun.mirror.util

SimpleDeclarationVisitor

public class SimpleDeclarationVisitor extends Object implements DeclarationVisitor
A simple visitor for declarations.

The implementations of the methods of this class do nothing but delegate up the declaration hierarchy. A subclass should override the methods that correspond to the kinds of declarations on which it will operate.

author
Joseph D. Darcy
author
Scott Seligman
version
1.3 04/04/30
since
1.5

Fields Summary
Constructors Summary
public SimpleDeclarationVisitor()
Creates a new SimpleDeclarationVisitor.

Methods Summary
public voidvisitAnnotationTypeDeclaration(com.sun.mirror.declaration.AnnotationTypeDeclaration d)
Visits an annotation type declaration. The implementation simply invokes {@link #visitInterfaceDeclaration visitInterfaceDeclaration}.

param
d the declaration to visit

	visitInterfaceDeclaration(d);
    
public voidvisitAnnotationTypeElementDeclaration(com.sun.mirror.declaration.AnnotationTypeElementDeclaration d)
Visits an annotation type element declaration. The implementation simply invokes {@link #visitMethodDeclaration visitMethodDeclaration}.

param
d the declaration to visit

	visitMethodDeclaration(d);
    
public voidvisitClassDeclaration(com.sun.mirror.declaration.ClassDeclaration d)
Visits a class declaration. The implementation simply invokes {@link #visitTypeDeclaration visitTypeDeclaration}.

param
d the declaration to visit

	visitTypeDeclaration(d);
    
public voidvisitConstructorDeclaration(com.sun.mirror.declaration.ConstructorDeclaration d)
Visits a constructor declaration. The implementation simply invokes {@link #visitExecutableDeclaration visitExecutableDeclaration}.

param
d the declaration to visit

	visitExecutableDeclaration(d);
    
public voidvisitDeclaration(com.sun.mirror.declaration.Declaration d)
Visits a declaration. The implementation does nothing.

param
d the declaration to visit

    
public voidvisitEnumConstantDeclaration(com.sun.mirror.declaration.EnumConstantDeclaration d)
Visits an enum constant declaration. The implementation simply invokes {@link #visitFieldDeclaration visitFieldDeclaration}.

param
d the declaration to visit

	visitFieldDeclaration(d);
    
public voidvisitEnumDeclaration(com.sun.mirror.declaration.EnumDeclaration d)
Visits an enum declaration. The implementation simply invokes {@link #visitClassDeclaration visitClassDeclaration}.

param
d the declaration to visit

	visitClassDeclaration(d);
    
public voidvisitExecutableDeclaration(com.sun.mirror.declaration.ExecutableDeclaration d)
Visits a method or constructor declaration. The implementation simply invokes {@link #visitMemberDeclaration visitMemberDeclaration}.

param
d the declaration to visit

	visitMemberDeclaration(d);
    
public voidvisitFieldDeclaration(com.sun.mirror.declaration.FieldDeclaration d)
Visits a field declaration. The implementation simply invokes {@link #visitMemberDeclaration visitMemberDeclaration}.

param
d the declaration to visit

	visitMemberDeclaration(d);
    
public voidvisitInterfaceDeclaration(com.sun.mirror.declaration.InterfaceDeclaration d)
Visits an interface declaration. The implementation simply invokes {@link #visitTypeDeclaration visitTypeDeclaration}.

param
d the declaration to visit

	visitTypeDeclaration(d);
    
public voidvisitMemberDeclaration(com.sun.mirror.declaration.MemberDeclaration d)
Visits a member or constructor declaration. The implementation simply invokes {@link #visitDeclaration visitDeclaration}.

param
d the declaration to visit

	visitDeclaration(d);
    
public voidvisitMethodDeclaration(com.sun.mirror.declaration.MethodDeclaration d)
Visits a method declaration. The implementation simply invokes {@link #visitExecutableDeclaration visitExecutableDeclaration}.

param
d the declaration to visit

	visitExecutableDeclaration(d);
    
public voidvisitPackageDeclaration(com.sun.mirror.declaration.PackageDeclaration d)
Visits a package declaration. The implementation simply invokes {@link #visitDeclaration visitDeclaration}.

param
d the declaration to visit

	visitDeclaration(d);
    
public voidvisitParameterDeclaration(com.sun.mirror.declaration.ParameterDeclaration d)
Visits a parameter declaration. The implementation simply invokes {@link #visitDeclaration visitDeclaration}.

param
d the declaration to visit

	visitDeclaration(d);
    
public voidvisitTypeDeclaration(com.sun.mirror.declaration.TypeDeclaration d)
Visits a type declaration. The implementation simply invokes {@link #visitMemberDeclaration visitMemberDeclaration}.

param
d the declaration to visit

	visitMemberDeclaration(d);
    
public voidvisitTypeParameterDeclaration(com.sun.mirror.declaration.TypeParameterDeclaration d)
Visits a type parameter declaration. The implementation simply invokes {@link #visitDeclaration visitDeclaration}.

param
d the declaration to visit

	visitDeclaration(d);