|
Mirror API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.sun.mirror.util.SimpleDeclarationVisitor
public class SimpleDeclarationVisitor
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.
Constructor Summary | |
---|---|
SimpleDeclarationVisitor()
Creates a new SimpleDeclarationVisitor. |
Method Summary | |
---|---|
void |
visitAnnotationTypeDeclaration(AnnotationTypeDeclaration d)
Visits an annotation type declaration. |
void |
visitAnnotationTypeElementDeclaration(AnnotationTypeElementDeclaration d)
Visits an annotation type element declaration. |
void |
visitClassDeclaration(ClassDeclaration d)
Visits a class declaration. |
void |
visitConstructorDeclaration(ConstructorDeclaration d)
Visits a constructor declaration. |
void |
visitDeclaration(Declaration d)
Visits a declaration. |
void |
visitEnumConstantDeclaration(EnumConstantDeclaration d)
Visits an enum constant declaration. |
void |
visitEnumDeclaration(EnumDeclaration d)
Visits an enum declaration. |
void |
visitExecutableDeclaration(ExecutableDeclaration d)
Visits a method or constructor declaration. |
void |
visitFieldDeclaration(FieldDeclaration d)
Visits a field declaration. |
void |
visitInterfaceDeclaration(InterfaceDeclaration d)
Visits an interface declaration. |
void |
visitMemberDeclaration(MemberDeclaration d)
Visits a member or constructor declaration. |
void |
visitMethodDeclaration(MethodDeclaration d)
Visits a method declaration. |
void |
visitPackageDeclaration(PackageDeclaration d)
Visits a package declaration. |
void |
visitParameterDeclaration(ParameterDeclaration d)
Visits a parameter declaration. |
void |
visitTypeDeclaration(TypeDeclaration d)
Visits a type declaration. |
void |
visitTypeParameterDeclaration(TypeParameterDeclaration d)
Visits a type parameter declaration. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SimpleDeclarationVisitor()
Method Detail |
---|
public void visitDeclaration(Declaration d)
visitDeclaration
in interface DeclarationVisitor
d
- the declaration to visitpublic void visitPackageDeclaration(PackageDeclaration d)
visitDeclaration
.
visitPackageDeclaration
in interface DeclarationVisitor
d
- the declaration to visitpublic void visitMemberDeclaration(MemberDeclaration d)
visitDeclaration
.
visitMemberDeclaration
in interface DeclarationVisitor
d
- the declaration to visitpublic void visitTypeDeclaration(TypeDeclaration d)
visitMemberDeclaration
.
visitTypeDeclaration
in interface DeclarationVisitor
d
- the declaration to visitpublic void visitClassDeclaration(ClassDeclaration d)
visitTypeDeclaration
.
visitClassDeclaration
in interface DeclarationVisitor
d
- the declaration to visitpublic void visitEnumDeclaration(EnumDeclaration d)
visitClassDeclaration
.
visitEnumDeclaration
in interface DeclarationVisitor
d
- the declaration to visitpublic void visitInterfaceDeclaration(InterfaceDeclaration d)
visitTypeDeclaration
.
visitInterfaceDeclaration
in interface DeclarationVisitor
d
- the declaration to visitpublic void visitAnnotationTypeDeclaration(AnnotationTypeDeclaration d)
visitInterfaceDeclaration
.
visitAnnotationTypeDeclaration
in interface DeclarationVisitor
d
- the declaration to visitpublic void visitFieldDeclaration(FieldDeclaration d)
visitMemberDeclaration
.
visitFieldDeclaration
in interface DeclarationVisitor
d
- the declaration to visitpublic void visitEnumConstantDeclaration(EnumConstantDeclaration d)
visitFieldDeclaration
.
visitEnumConstantDeclaration
in interface DeclarationVisitor
d
- the declaration to visitpublic void visitExecutableDeclaration(ExecutableDeclaration d)
visitMemberDeclaration
.
visitExecutableDeclaration
in interface DeclarationVisitor
d
- the declaration to visitpublic void visitConstructorDeclaration(ConstructorDeclaration d)
visitExecutableDeclaration
.
visitConstructorDeclaration
in interface DeclarationVisitor
d
- the declaration to visitpublic void visitMethodDeclaration(MethodDeclaration d)
visitExecutableDeclaration
.
visitMethodDeclaration
in interface DeclarationVisitor
d
- the declaration to visitpublic void visitAnnotationTypeElementDeclaration(AnnotationTypeElementDeclaration d)
visitMethodDeclaration
.
visitAnnotationTypeElementDeclaration
in interface DeclarationVisitor
d
- the declaration to visitpublic void visitParameterDeclaration(ParameterDeclaration d)
visitDeclaration
.
visitParameterDeclaration
in interface DeclarationVisitor
d
- the declaration to visitpublic void visitTypeParameterDeclaration(TypeParameterDeclaration d)
visitDeclaration
.
visitTypeParameterDeclaration
in interface DeclarationVisitor
d
- the declaration to visit
|
Mirror API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |