Package com.sun.mirror.util
Class SimpleDeclarationVisitor
java.lang.Object
com.sun.mirror.util.SimpleDeclarationVisitor
- All Implemented Interfaces:
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.
- Since:
- 1.5
- Version:
- 1.3 04/04/30
- Author:
- Joseph D. Darcy, Scott Seligman
-
Constructor Summary
-
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.
-
Constructor Details
-
SimpleDeclarationVisitor
public SimpleDeclarationVisitor()Creates a newSimpleDeclarationVisitor
.
-
-
Method Details
-
visitDeclaration
Visits a declaration. The implementation does nothing.- Specified by:
visitDeclaration
in interfaceDeclarationVisitor
- Parameters:
d
- the declaration to visit
-
visitPackageDeclaration
Visits a package declaration. The implementation simply invokesvisitDeclaration
.- Specified by:
visitPackageDeclaration
in interfaceDeclarationVisitor
- Parameters:
d
- the declaration to visit
-
visitMemberDeclaration
Visits a member or constructor declaration. The implementation simply invokesvisitDeclaration
.- Specified by:
visitMemberDeclaration
in interfaceDeclarationVisitor
- Parameters:
d
- the declaration to visit
-
visitTypeDeclaration
Visits a type declaration. The implementation simply invokesvisitMemberDeclaration
.- Specified by:
visitTypeDeclaration
in interfaceDeclarationVisitor
- Parameters:
d
- the declaration to visit
-
visitClassDeclaration
Visits a class declaration. The implementation simply invokesvisitTypeDeclaration
.- Specified by:
visitClassDeclaration
in interfaceDeclarationVisitor
- Parameters:
d
- the declaration to visit
-
visitEnumDeclaration
Visits an enum declaration. The implementation simply invokesvisitClassDeclaration
.- Specified by:
visitEnumDeclaration
in interfaceDeclarationVisitor
- Parameters:
d
- the declaration to visit
-
visitInterfaceDeclaration
Visits an interface declaration. The implementation simply invokesvisitTypeDeclaration
.- Specified by:
visitInterfaceDeclaration
in interfaceDeclarationVisitor
- Parameters:
d
- the declaration to visit
-
visitAnnotationTypeDeclaration
Visits an annotation type declaration. The implementation simply invokesvisitInterfaceDeclaration
.- Specified by:
visitAnnotationTypeDeclaration
in interfaceDeclarationVisitor
- Parameters:
d
- the declaration to visit
-
visitFieldDeclaration
Visits a field declaration. The implementation simply invokesvisitMemberDeclaration
.- Specified by:
visitFieldDeclaration
in interfaceDeclarationVisitor
- Parameters:
d
- the declaration to visit
-
visitEnumConstantDeclaration
Visits an enum constant declaration. The implementation simply invokesvisitFieldDeclaration
.- Specified by:
visitEnumConstantDeclaration
in interfaceDeclarationVisitor
- Parameters:
d
- the declaration to visit
-
visitExecutableDeclaration
Visits a method or constructor declaration. The implementation simply invokesvisitMemberDeclaration
.- Specified by:
visitExecutableDeclaration
in interfaceDeclarationVisitor
- Parameters:
d
- the declaration to visit
-
visitConstructorDeclaration
Visits a constructor declaration. The implementation simply invokesvisitExecutableDeclaration
.- Specified by:
visitConstructorDeclaration
in interfaceDeclarationVisitor
- Parameters:
d
- the declaration to visit
-
visitMethodDeclaration
Visits a method declaration. The implementation simply invokesvisitExecutableDeclaration
.- Specified by:
visitMethodDeclaration
in interfaceDeclarationVisitor
- Parameters:
d
- the declaration to visit
-
visitAnnotationTypeElementDeclaration
Visits an annotation type element declaration. The implementation simply invokesvisitMethodDeclaration
.- Specified by:
visitAnnotationTypeElementDeclaration
in interfaceDeclarationVisitor
- Parameters:
d
- the declaration to visit
-
visitParameterDeclaration
Visits a parameter declaration. The implementation simply invokesvisitDeclaration
.- Specified by:
visitParameterDeclaration
in interfaceDeclarationVisitor
- Parameters:
d
- the declaration to visit
-
visitTypeParameterDeclaration
Visits a type parameter declaration. The implementation simply invokesvisitDeclaration
.- Specified by:
visitTypeParameterDeclaration
in interfaceDeclarationVisitor
- Parameters:
d
- the declaration to visit
-