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
visitRecord
(Record record) Visits aRecord
object.void
visitRecordComponent
(RecordComponentInfo recordComponentInfo) Visits aRecordComponentInfo
object.void
visitSignature
(Signature attribute) void
visitSourceFile
(SourceFile attribute) void
visitStackMap
(StackMap table) void
void
Visits aStackMapType
object.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
-
current
- Returns:
- current object
-
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
-
visit
Start traversal. -
visitAnnotation
- Specified by:
visitAnnotation
in interfaceVisitor
- Since:
- 6.0
-
visitAnnotationDefault
- Specified by:
visitAnnotationDefault
in interfaceVisitor
- Since:
- 6.0
-
visitAnnotationEntry
- Specified by:
visitAnnotationEntry
in interfaceVisitor
- Since:
- 6.0
-
visitBootstrapMethods
- Specified by:
visitBootstrapMethods
in interfaceVisitor
- Since:
- 6.0
-
visitCode
-
visitCodeException
- Specified by:
visitCodeException
in interfaceVisitor
-
visitConstantClass
- Specified by:
visitConstantClass
in interfaceVisitor
-
visitConstantDouble
- Specified by:
visitConstantDouble
in interfaceVisitor
-
visitConstantDynamic
- Specified by:
visitConstantDynamic
in interfaceVisitor
- Since:
- 6.3
-
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
-
visitConstantMethodHandle
- Specified by:
visitConstantMethodHandle
in interfaceVisitor
- Since:
- 6.0
-
visitConstantMethodref
- Specified by:
visitConstantMethodref
in interfaceVisitor
-
visitConstantMethodType
- Specified by:
visitConstantMethodType
in interfaceVisitor
- Since:
- 6.0
-
visitConstantModule
- Specified by:
visitConstantModule
in interfaceVisitor
- Since:
- 6.1
-
visitConstantNameAndType
- Specified by:
visitConstantNameAndType
in interfaceVisitor
-
visitConstantPackage
- Specified by:
visitConstantPackage
in interfaceVisitor
- Since:
- 6.1
-
visitConstantPool
- Specified by:
visitConstantPool
in interfaceVisitor
-
visitConstantString
- Specified by:
visitConstantString
in interfaceVisitor
-
visitConstantUtf8
- Specified by:
visitConstantUtf8
in interfaceVisitor
-
visitConstantValue
- Specified by:
visitConstantValue
in interfaceVisitor
-
visitDeprecated
- Specified by:
visitDeprecated
in interfaceVisitor
-
visitEnclosingMethod
- Specified by:
visitEnclosingMethod
in interfaceVisitor
- Since:
- 6.0
-
visitExceptionTable
- Specified by:
visitExceptionTable
in interfaceVisitor
-
visitField
- Specified by:
visitField
in interfaceVisitor
-
visitInnerClass
- Specified by:
visitInnerClass
in interfaceVisitor
-
visitInnerClasses
- Specified by:
visitInnerClasses
in interfaceVisitor
-
visitJavaClass
- Specified by:
visitJavaClass
in interfaceVisitor
-
visitLineNumber
- Specified by:
visitLineNumber
in interfaceVisitor
-
visitLineNumberTable
- Specified by:
visitLineNumberTable
in interfaceVisitor
-
visitLocalVariable
- Specified by:
visitLocalVariable
in interfaceVisitor
-
visitLocalVariableTable
- Specified by:
visitLocalVariableTable
in interfaceVisitor
-
visitLocalVariableTypeTable
- Specified by:
visitLocalVariableTypeTable
in interfaceVisitor
- Since:
- 6.0
-
visitMethod
- Specified by:
visitMethod
in interfaceVisitor
-
visitMethodParameter
- Specified by:
visitMethodParameter
in interfaceVisitor
- Since:
- 6.4.0
-
visitMethodParameters
- Specified by:
visitMethodParameters
in interfaceVisitor
- Since:
- 6.0
-
visitModule
- Specified by:
visitModule
in interfaceVisitor
- Since:
- 6.4.0
-
visitModuleExports
- Specified by:
visitModuleExports
in interfaceVisitor
- Since:
- 6.4.0
-
visitModuleMainClass
- Specified by:
visitModuleMainClass
in interfaceVisitor
- Since:
- 6.4.0
-
visitModuleOpens
- Specified by:
visitModuleOpens
in interfaceVisitor
- Since:
- 6.4.0
-
visitModulePackages
- Specified by:
visitModulePackages
in interfaceVisitor
- Since:
- 6.4.0
-
visitModuleProvides
- Specified by:
visitModuleProvides
in interfaceVisitor
- Since:
- 6.4.0
-
visitModuleRequires
- Specified by:
visitModuleRequires
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
-
visitParameterAnnotation
- Specified by:
visitParameterAnnotation
in interfaceVisitor
- Since:
- 6.0
-
visitParameterAnnotationEntry
- Specified by:
visitParameterAnnotationEntry
in interfaceVisitor
- Since:
- 6.0
-
visitRecord
Description copied from interface:Visitor
Visits aRecord
object.- Specified by:
visitRecord
in interfaceVisitor
- Parameters:
record
- Record to visit
-
visitRecordComponent
Description copied from interface:Visitor
Visits aRecordComponentInfo
object.- Specified by:
visitRecordComponent
in interfaceVisitor
- Parameters:
recordComponentInfo
- component to visit
-
visitSignature
- Specified by:
visitSignature
in interfaceVisitor
-
visitSourceFile
- Specified by:
visitSourceFile
in interfaceVisitor
-
visitStackMap
- Specified by:
visitStackMap
in interfaceVisitor
-
visitStackMapEntry
- Specified by:
visitStackMapEntry
in interfaceVisitor
-
visitStackMapType
Visits aStackMapType
object.- Specified by:
visitStackMapType
in interfaceVisitor
- Parameters:
var
- object to visit- Since:
- 6.8.0
-
visitSynthetic
- Specified by:
visitSynthetic
in interfaceVisitor
-
visitUnknown
- Specified by:
visitUnknown
in interfaceVisitor
-