Package com.sun.mirror.util
Interface DeclarationVisitor
- All Known Implementing Classes:
SimpleDeclarationVisitor
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
accept
method, the most specific
visitXxx
method applicable to that declaration is
invoked.- Since:
- 1.5
- Version:
- 1.3 04/04/20
- Author:
- Joseph D. Darcy, Scott Seligman
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Visits an annotation type declaration.void
Visits an annotation type element declaration.void
Visits a class declaration.void
Visits a constructor declaration.void
Visits a declaration.void
Visits an enum constant declaration.void
Visits an enum declaration.void
Visits a method or constructor declaration.void
Visits a field declaration.void
Visits an interface declaration.void
Visits a member or constructor declaration.void
Visits a method declaration.void
Visits a package declaration.void
Visits a parameter declaration.void
Visits a type declaration.void
Visits a type parameter declaration.
-
Method Details
-
visitDeclaration
Visits a declaration.- Parameters:
d
- the declaration to visit
-
visitPackageDeclaration
Visits a package declaration.- Parameters:
d
- the declaration to visit
-
visitMemberDeclaration
Visits a member or constructor declaration.- Parameters:
d
- the declaration to visit
-
visitTypeDeclaration
Visits a type declaration.- Parameters:
d
- the declaration to visit
-
visitClassDeclaration
Visits a class declaration.- Parameters:
d
- the declaration to visit
-
visitEnumDeclaration
Visits an enum declaration.- Parameters:
d
- the declaration to visit
-
visitInterfaceDeclaration
Visits an interface declaration.- Parameters:
d
- the declaration to visit
-
visitAnnotationTypeDeclaration
Visits an annotation type declaration.- Parameters:
d
- the declaration to visit
-
visitFieldDeclaration
Visits a field declaration.- Parameters:
d
- the declaration to visit
-
visitEnumConstantDeclaration
Visits an enum constant declaration.- Parameters:
d
- the declaration to visit
-
visitExecutableDeclaration
Visits a method or constructor declaration.- Parameters:
d
- the declaration to visit
-
visitConstructorDeclaration
Visits a constructor declaration.- Parameters:
d
- the declaration to visit
-
visitMethodDeclaration
Visits a method declaration.- Parameters:
d
- the declaration to visit
-
visitAnnotationTypeElementDeclaration
Visits an annotation type element declaration.- Parameters:
d
- the declaration to visit
-
visitParameterDeclaration
Visits a parameter declaration.- Parameters:
d
- the declaration to visit
-
visitTypeParameterDeclaration
Visits a type parameter declaration.- Parameters:
d
- the declaration to visit
-