Package org.objectweb.asm.util
Class TraceModuleVisitor
java.lang.Object
org.objectweb.asm.ModuleVisitor
org.objectweb.asm.util.TraceModuleVisitor
public final class TraceModuleVisitor
extends org.objectweb.asm.ModuleVisitor
A
ModuleVisitor
that prints the fields it visits with a Printer
.- Author:
- Remi Forax
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal Printer
The printer to convert the visited module into text.Fields inherited from class org.objectweb.asm.ModuleVisitor
api, mv
-
Constructor Summary
ConstructorsConstructorDescriptionTraceModuleVisitor
(org.objectweb.asm.ModuleVisitor moduleVisitor, Printer printer) Constructs a newTraceModuleVisitor
.TraceModuleVisitor
(Printer printer) Constructs a newTraceModuleVisitor
. -
Method Summary
Modifier and TypeMethodDescriptionvoid
visitEnd()
void
visitExport
(String packaze, int access, String... modules) void
visitMainClass
(String mainClass) void
void
visitPackage
(String packaze) void
visitProvide
(String service, String... providers) void
visitRequire
(String module, int access, String version) void
Methods inherited from class org.objectweb.asm.ModuleVisitor
getDelegate
-
Field Details
-
p
The printer to convert the visited module into text.
-
-
Constructor Details
-
TraceModuleVisitor
Constructs a newTraceModuleVisitor
.- Parameters:
printer
- the printer to convert the visited module into text.
-
TraceModuleVisitor
Constructs a newTraceModuleVisitor
.- Parameters:
moduleVisitor
- the module visitor to which to delegate calls. May be null.printer
- the printer to convert the visited module into text.
-
-
Method Details
-
visitMainClass
- Overrides:
visitMainClass
in classorg.objectweb.asm.ModuleVisitor
-
visitPackage
- Overrides:
visitPackage
in classorg.objectweb.asm.ModuleVisitor
-
visitRequire
- Overrides:
visitRequire
in classorg.objectweb.asm.ModuleVisitor
-
visitExport
- Overrides:
visitExport
in classorg.objectweb.asm.ModuleVisitor
-
visitOpen
- Overrides:
visitOpen
in classorg.objectweb.asm.ModuleVisitor
-
visitUse
- Overrides:
visitUse
in classorg.objectweb.asm.ModuleVisitor
-
visitProvide
- Overrides:
visitProvide
in classorg.objectweb.asm.ModuleVisitor
-
visitEnd
public void visitEnd()- Overrides:
visitEnd
in classorg.objectweb.asm.ModuleVisitor
-