Package org.apache.bcel.classfile
Class DescendingVisitor
java.lang.Object
org.apache.bcel.classfile.DescendingVisitor
- All Implemented Interfaces:
Visitor
Traverses a JavaClass with another Visitor object 'piggy-backed' that is
applied to all components of a JavaClass object. I.e. this class supplies the
traversal strategy, other classes can make use of it.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncurrent()
predecessor
(int level) void
visit()
Start traversal.void
visitAnnotation
(Annotations annotation) void
void
visitAnnotationEntry
(AnnotationEntry annotationEntry) void
void
void
void
visitConstantClass
(ConstantClass constant) void
visitConstantDouble
(ConstantDouble constant) void
void
visitConstantFieldref
(ConstantFieldref constant) void
visitConstantFloat
(ConstantFloat constant) void
visitConstantInteger
(ConstantInteger constant) void
void
void
visitConstantLong
(ConstantLong constant) void
void
visitConstantMethodref
(ConstantMethodref constant) void
void
void
visitConstantNameAndType
(ConstantNameAndType constant) void
void
void
visitConstantString
(ConstantString constant) void
visitConstantUtf8
(ConstantUtf8 constant) void
void
visitDeprecated
(Deprecated attribute) void
void
void
visitField
(Field field) void
visitInnerClass
(InnerClass inner) void
void
visitJavaClass
(JavaClass _clazz) void
visitLineNumber
(LineNumber number) void
void
void
void
void
visitMethod
(Method method) void
void
void
visitModule
(Module obj) void
void
void
void
void
void
void
visitNestHost
(NestHost obj) void
void
void
void
visitSignature
(Signature attribute) void
visitSourceFile
(SourceFile attribute) void
visitStackMap
(StackMap table) void
void
visitSynthetic
(Synthetic attribute) void
visitUnknown
(Unknown attribute)
-
Constructor Details
-
DescendingVisitor
- Parameters:
clazz
- Class to traversevisitor
- visitor object to apply to all components
-
-
Method Details
-
predecessor
- Returns:
- container of current entitity, i.e., predecessor during traversal
-
predecessor
- Parameters:
level
- nesting level, i.e., 0 returns the direct predecessor- Returns:
- container of current entitity, i.e., predecessor during traversal
-
current
- Returns:
- current object
-
visit
public void visit()Start traversal. -
visitJavaClass
- Specified by:
visitJavaClass
in interfaceVisitor
-
visitAnnotation
- Specified by:
visitAnnotation
in interfaceVisitor
- Since:
- 6.0
-
visitAnnotationEntry
- Specified by:
visitAnnotationEntry
in interfaceVisitor
- Since:
- 6.0
-
visitField
- Specified by:
visitField
in interfaceVisitor
-
visitConstantValue
- Specified by:
visitConstantValue
in interfaceVisitor
-
visitMethod
- Specified by:
visitMethod
in interfaceVisitor
-
visitExceptionTable
- Specified by:
visitExceptionTable
in interfaceVisitor
-
visitCode
-
visitCodeException
- Specified by:
visitCodeException
in interfaceVisitor
-
visitLineNumberTable
- Specified by:
visitLineNumberTable
in interfaceVisitor
-
visitLineNumber
- Specified by:
visitLineNumber
in interfaceVisitor
-
visitLocalVariableTable
- Specified by:
visitLocalVariableTable
in interfaceVisitor
-
visitStackMap
- Specified by:
visitStackMap
in interfaceVisitor
-
visitStackMapEntry
- Specified by:
visitStackMapEntry
in interfaceVisitor
-
visitLocalVariable
- Specified by:
visitLocalVariable
in interfaceVisitor
-
visitConstantPool
- Specified by:
visitConstantPool
in interfaceVisitor
-
visitConstantClass
- Specified by:
visitConstantClass
in interfaceVisitor
-
visitConstantDouble
- Specified by:
visitConstantDouble
in interfaceVisitor
-
visitConstantFieldref
- Specified by:
visitConstantFieldref
in interfaceVisitor
-
visitConstantFloat
- Specified by:
visitConstantFloat
in interfaceVisitor
-
visitConstantInteger
- Specified by:
visitConstantInteger
in interfaceVisitor
-
visitConstantInterfaceMethodref
- Specified by:
visitConstantInterfaceMethodref
in interfaceVisitor
-
visitConstantInvokeDynamic
- Specified by:
visitConstantInvokeDynamic
in interfaceVisitor
- Since:
- 6.0
-
visitConstantLong
- Specified by:
visitConstantLong
in interfaceVisitor
-
visitConstantMethodref
- Specified by:
visitConstantMethodref
in interfaceVisitor
-
visitConstantNameAndType
- Specified by:
visitConstantNameAndType
in interfaceVisitor
-
visitConstantString
- Specified by:
visitConstantString
in interfaceVisitor
-
visitConstantUtf8
- Specified by:
visitConstantUtf8
in interfaceVisitor
-
visitInnerClasses
- Specified by:
visitInnerClasses
in interfaceVisitor
-
visitInnerClass
- Specified by:
visitInnerClass
in interfaceVisitor
-
visitBootstrapMethods
- Specified by:
visitBootstrapMethods
in interfaceVisitor
- Since:
- 6.0
-
visitDeprecated
- Specified by:
visitDeprecated
in interfaceVisitor
-
visitSignature
- Specified by:
visitSignature
in interfaceVisitor
-
visitSourceFile
- Specified by:
visitSourceFile
in interfaceVisitor
-
visitSynthetic
- Specified by:
visitSynthetic
in interfaceVisitor
-
visitUnknown
- Specified by:
visitUnknown
in interfaceVisitor
-
visitAnnotationDefault
- Specified by:
visitAnnotationDefault
in interfaceVisitor
- Since:
- 6.0
-
visitEnclosingMethod
- Specified by:
visitEnclosingMethod
in interfaceVisitor
- Since:
- 6.0
-
visitLocalVariableTypeTable
- Specified by:
visitLocalVariableTypeTable
in interfaceVisitor
- Since:
- 6.0
-
visitParameterAnnotation
- Specified by:
visitParameterAnnotation
in interfaceVisitor
- Since:
- 6.0
-
visitMethodParameters
- Specified by:
visitMethodParameters
in interfaceVisitor
- Since:
- 6.0
-
visitMethodParameter
- Specified by:
visitMethodParameter
in interfaceVisitor
- Since:
- 6.4.0
-
visitConstantMethodType
- Specified by:
visitConstantMethodType
in interfaceVisitor
- Since:
- 6.0
-
visitConstantMethodHandle
- Specified by:
visitConstantMethodHandle
in interfaceVisitor
- Since:
- 6.0
-
visitParameterAnnotationEntry
- Specified by:
visitParameterAnnotationEntry
in interfaceVisitor
- Since:
- 6.0
-
visitConstantPackage
- Specified by:
visitConstantPackage
in interfaceVisitor
- Since:
- 6.1
-
visitConstantModule
- Specified by:
visitConstantModule
in interfaceVisitor
- Since:
- 6.1
-
visitConstantDynamic
- Specified by:
visitConstantDynamic
in interfaceVisitor
- Since:
- 6.3
-
visitModule
- Specified by:
visitModule
in interfaceVisitor
- Since:
- 6.4.0
-
visitModuleRequires
- Specified by:
visitModuleRequires
in interfaceVisitor
- Since:
- 6.4.0
-
visitModuleExports
- Specified by:
visitModuleExports
in interfaceVisitor
- Since:
- 6.4.0
-
visitModuleOpens
- Specified by:
visitModuleOpens
in interfaceVisitor
- Since:
- 6.4.0
-
visitModuleProvides
- Specified by:
visitModuleProvides
in interfaceVisitor
- Since:
- 6.4.0
-
visitModulePackages
- Specified by:
visitModulePackages
in interfaceVisitor
- Since:
- 6.4.0
-
visitModuleMainClass
- Specified by:
visitModuleMainClass
in interfaceVisitor
- Since:
- 6.4.0
-
visitNestHost
- Specified by:
visitNestHost
in interfaceVisitor
- Since:
- 6.4.0
-
visitNestMembers
- Specified by:
visitNestMembers
in interfaceVisitor
- Since:
- 6.4.0
-