Top Description Fields Constructors Methods
org.objectweb.asm.util

public final Class TraceModuleVisitor

extends ModuleVisitor
Class Inheritance
Imports
org.objectweb.asm.ModuleVisitor, .Opcodes

A ModuleVisitor that prints the fields it visits with a Printer.
Author
Remi Forax

Field Summary

Modifier and TypeField and Description
public final Printer
p

The printer to convert the visited module into text.

Inherited from org.objectweb.asm.ModuleVisitor:
apimv

Constructor Summary

AccessConstructor and Description
public
TraceModuleVisitor(final Printer
the printer to convert the visited module into text.
printer
)

Constructs a new TraceModuleVisitor.

public
TraceModuleVisitor(final ModuleVisitor
the module visitor to which to delegate calls. May be null.
moduleVisitor
,
final Printer
the printer to convert the visited module into text.
printer
)

Constructs a new TraceModuleVisitor.

Method Summary

Modifier and TypeMethod and Description
public void
visitEnd()

Overrides org.objectweb.asm.ModuleVisitor.visitEnd.

Visits the end of the module.
public void
visitExport(final String
the internal name of the exported package (see Type#getInternalName()).
packaze
,
final int
the access flag of the exported package, valid values are among ACC_SYNTHETIC and ACC_MANDATED.
access
,
final String...
the fully qualified names (using dots) of the modules that can access the public classes of the exported package, or null.
modules
)

Overrides org.objectweb.asm.ModuleVisitor.visitExport.

Visit an exported package of the current module.
public void
visitMainClass(final String
the internal name of the main class of the current module (see Type#getInternalName()).
mainClass
)

Overrides org.objectweb.asm.ModuleVisitor.visitMainClass.

Visit the main class of the current module.
public void
visitOpen(final String
the internal name of the opened package (see Type#getInternalName()).
packaze
,
final int
the access flag of the opened package, valid values are among ACC_SYNTHETIC and ACC_MANDATED.
access
,
final String...
the fully qualified names (using dots) of the modules that can use deep reflection to the classes of the open package, or null.
modules
)

Overrides org.objectweb.asm.ModuleVisitor.visitOpen.

Visit an open package of the current module.
public void
visitPackage(final String
the internal name of a package (see Type#getInternalName()).
packaze
)

Overrides org.objectweb.asm.ModuleVisitor.visitPackage.

Visit a package of the current module.
public void
visitProvide(final String
the internal name of the service (see Type#getInternalName()).
service
,
final String...
the internal names (see Type#getInternalName()) of the implementations of the service (there is at least one provider).
providers
)

Overrides org.objectweb.asm.ModuleVisitor.visitProvide.

Visit an implementation of a service.
public void
visitRequire(final String
the fully qualified name (using dots) of the dependence.
module
,
final int
the access flag of the dependence among ACC_TRANSITIVE, ACC_STATIC_PHASE, ACC_SYNTHETIC and ACC_MANDATED.
access
,
final String
the module version at compile time, or null.
version
)

Overrides org.objectweb.asm.ModuleVisitor.visitRequire.

Visits a dependence of the current module.
public void
visitUse(final String
the internal name of the service (see Type#getInternalName()).
use
)

Overrides org.objectweb.asm.ModuleVisitor.visitUse.

Visit a service used by the current module.
Inherited from org.objectweb.asm.ModuleVisitor:
getDelegate

Field Detail

pback to summary
public final Printer p

The printer to convert the visited module into text.

Constructor Detail

TraceModuleVisitorback to summary
public TraceModuleVisitor(final Printer printer)

Constructs a new TraceModuleVisitor.

Parameters
printer:Printer

the printer to convert the visited module into text.

TraceModuleVisitorback to summary
public TraceModuleVisitor(final ModuleVisitor moduleVisitor, final Printer printer)

Constructs a new TraceModuleVisitor.

Parameters
moduleVisitor:ModuleVisitor

the module visitor to which to delegate calls. May be null.

printer:Printer

the printer to convert the visited module into text.

Method Detail

visitEndback to summary
public void visitEnd()

Overrides org.objectweb.asm.ModuleVisitor.visitEnd.

Doc from org.objectweb.asm.ModuleVisitor.visitEnd.

Visits the end of the module. This method, which is the last one to be called, is used to inform the visitor that everything have been visited.

Annotations
@Override
visitExportback to summary
public void visitExport(final String packaze, final int access, final String... modules)

Overrides org.objectweb.asm.ModuleVisitor.visitExport.

Doc from org.objectweb.asm.ModuleVisitor.visitExport.

Visit an exported package of the current module.

Parameters
packaze:String

the internal name of the exported package (see Type#getInternalName()).

access:int

the access flag of the exported package, valid values are among ACC_SYNTHETIC and ACC_MANDATED.

modules:String[]

the fully qualified names (using dots) of the modules that can access the public classes of the exported package, or null.

Annotations
@Override
visitMainClassback to summary
public void visitMainClass(final String mainClass)

Overrides org.objectweb.asm.ModuleVisitor.visitMainClass.

Doc from org.objectweb.asm.ModuleVisitor.visitMainClass.

Visit the main class of the current module.

Parameters
mainClass:String

the internal name of the main class of the current module (see Type#getInternalName()).

Annotations
@Override
visitOpenback to summary
public void visitOpen(final String packaze, final int access, final String... modules)

Overrides org.objectweb.asm.ModuleVisitor.visitOpen.

Doc from org.objectweb.asm.ModuleVisitor.visitOpen.

Visit an open package of the current module.

Parameters
packaze:String

the internal name of the opened package (see Type#getInternalName()).

access:int

the access flag of the opened package, valid values are among ACC_SYNTHETIC and ACC_MANDATED.

modules:String[]

the fully qualified names (using dots) of the modules that can use deep reflection to the classes of the open package, or null.

Annotations
@Override
visitPackageback to summary
public void visitPackage(final String packaze)

Overrides org.objectweb.asm.ModuleVisitor.visitPackage.

Doc from org.objectweb.asm.ModuleVisitor.visitPackage.

Visit a package of the current module.

Parameters
packaze:String

the internal name of a package (see Type#getInternalName()).

Annotations
@Override
visitProvideback to summary
public void visitProvide(final String service, final String... providers)

Overrides org.objectweb.asm.ModuleVisitor.visitProvide.

Doc from org.objectweb.asm.ModuleVisitor.visitProvide.

Visit an implementation of a service.

Parameters
service:String

the internal name of the service (see Type#getInternalName()).

providers:String[]

the internal names (see Type#getInternalName()) of the implementations of the service (there is at least one provider).

Annotations
@Override
visitRequireback to summary
public void visitRequire(final String module, final int access, final String version)

Overrides org.objectweb.asm.ModuleVisitor.visitRequire.

Doc from org.objectweb.asm.ModuleVisitor.visitRequire.

Visits a dependence of the current module.

Parameters
module:String

the fully qualified name (using dots) of the dependence.

access:int

the access flag of the dependence among ACC_TRANSITIVE, ACC_STATIC_PHASE, ACC_SYNTHETIC and ACC_MANDATED.

version:String

the module version at compile time, or null.

Annotations
@Override
visitUseback to summary
public void visitUse(final String use)

Overrides org.objectweb.asm.ModuleVisitor.visitUse.

Doc from org.objectweb.asm.ModuleVisitor.visitUse.

Visit a service used by the current module. The name must be the internal name of an interface or a class.

Parameters
use:String

the internal name of the service (see Type#getInternalName()).

Annotations
@Override