FileDocCategorySizeDatePackage
DeclarationVisitor.javaAPI DocJava SE 5 API3456Fri Aug 26 14:55:14 BST 2005com.sun.mirror.util

DeclarationVisitor

public interface DeclarationVisitor
A visitor for declarations, in the style of the standard visitor design pattern. Classes implementing this interface are used to operate on a declaration when the kind of declaration is unknown at compile time. When a visitor is passed to a declaration's {@link Declaration#accept accept} method, the most specific visitXxx method applicable to that declaration is invoked.
author
Joseph D. Darcy
author
Scott Seligman
version
1.3 04/04/20
since
1.5

Fields Summary
Constructors Summary
Methods Summary
public voidvisitAnnotationTypeDeclaration(com.sun.mirror.declaration.AnnotationTypeDeclaration d)
Visits an annotation type declaration.

param
d the declaration to visit

public voidvisitAnnotationTypeElementDeclaration(com.sun.mirror.declaration.AnnotationTypeElementDeclaration d)
Visits an annotation type element declaration.

param
d the declaration to visit

public voidvisitClassDeclaration(com.sun.mirror.declaration.ClassDeclaration d)
Visits a class declaration.

param
d the declaration to visit

public voidvisitConstructorDeclaration(com.sun.mirror.declaration.ConstructorDeclaration d)
Visits a constructor declaration.

param
d the declaration to visit

public voidvisitDeclaration(com.sun.mirror.declaration.Declaration d)
Visits a declaration.

param
d the declaration to visit

public voidvisitEnumConstantDeclaration(com.sun.mirror.declaration.EnumConstantDeclaration d)
Visits an enum constant declaration.

param
d the declaration to visit

public voidvisitEnumDeclaration(com.sun.mirror.declaration.EnumDeclaration d)
Visits an enum declaration.

param
d the declaration to visit

public voidvisitExecutableDeclaration(com.sun.mirror.declaration.ExecutableDeclaration d)
Visits a method or constructor declaration.

param
d the declaration to visit

public voidvisitFieldDeclaration(com.sun.mirror.declaration.FieldDeclaration d)
Visits a field declaration.

param
d the declaration to visit

public voidvisitInterfaceDeclaration(com.sun.mirror.declaration.InterfaceDeclaration d)
Visits an interface declaration.

param
d the declaration to visit

public voidvisitMemberDeclaration(com.sun.mirror.declaration.MemberDeclaration d)
Visits a member or constructor declaration.

param
d the declaration to visit

public voidvisitMethodDeclaration(com.sun.mirror.declaration.MethodDeclaration d)
Visits a method declaration.

param
d the declaration to visit

public voidvisitPackageDeclaration(com.sun.mirror.declaration.PackageDeclaration d)
Visits a package declaration.

param
d the declaration to visit

public voidvisitParameterDeclaration(com.sun.mirror.declaration.ParameterDeclaration d)
Visits a parameter declaration.

param
d the declaration to visit

public voidvisitTypeDeclaration(com.sun.mirror.declaration.TypeDeclaration d)
Visits a type declaration.

param
d the declaration to visit

public voidvisitTypeParameterDeclaration(com.sun.mirror.declaration.TypeParameterDeclaration d)
Visits a type parameter declaration.

param
d the declaration to visit