ModuleVisitor that checks that its methods are properly used.
| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv int | classVersion
The class version number. |
| private final CheckModuleAdapter. | exportedPackages
The internal names of the packages exported by the visited module. |
| private final boolean | isOpen
Whether the visited module is open. |
| private final CheckModuleAdapter. | openedPackages
The internal names of the packages opened by the visited module. |
| private final CheckModuleAdapter. | providedServices
The internal names of the services provided by the visited module. |
| private final CheckModuleAdapter. | requiredModules
The fully qualified names of the dependencies of the visited module. |
| private final CheckModuleAdapter. | usedServices
The internal names of the services used by the visited module. |
| private boolean | visitEndCalled
Whether the |
| Access | Constructor and Description |
|---|---|
| public | CheckModuleAdapter(final ModuleVisitor
the module visitor to which this adapter must delegate calls. moduleVisitor, final boolean whether the visited module is open. Open modules have their isOpen)Opcodes#ACC_OPEN access flag set in org..Constructs a new |
| protected | CheckModuleAdapter(final int
the ASM API version implemented by this visitor. Must be one of the api, final ModuleVisitor ASMx values in Opcodes.the module visitor to which this adapter must delegate calls. moduleVisitor, final boolean whether the visited module is open. Open modules have their isOpen)Opcodes#ACC_OPEN access flag set in org..Constructs a new |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| public void | |
| public void | visitExport(final String
the internal name of the exported package (see packaze, final int Type#getInternalName()).the access flag of the exported package, valid values are among access, final String... ACC_SYNTHETIC and ACC_MANDATED.the fully qualified names (using dots) of the modules that can access the public
classes of the exported package, or null. modules)Overrides org. |
| public void | visitMainClass(final String
the internal name of the main class of the current module (see mainClass)
Visit the main class of the current module.
Type#getInternalName()). |
| public void | visitOpen(final String
the internal name of the opened package (see packaze, final int Type#getInternalName()).the access flag of the opened package, valid values are among access, final String... ACC_SYNTHETIC and ACC_MANDATED.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. |
| public void | visitPackage(final String
the internal name of a package (see packaze)Type#getInternalName()).Overrides org. |
| public void | visitProvide(final String
the internal name of the service (see service, final String... Type#getInternalName()).the internal names (see providers)Type#getInternalName()) of the implementations
of the service (there is at least one provider).Overrides org. |
| public void | visitRequire(final String
the fully qualified name (using dots) of the dependence. module, final int the access flag of the dependence among access, final String ACC_TRANSITIVE, ACC_STATIC_PHASE, ACC_SYNTHETIC and ACC_MANDATED.the module version at compile time, or null. version)Overrides org. |
| public void | visitUse(final String
the internal name of the service (see service)Type#getInternalName()).Overrides org. |
| classVersion | back to summary |
|---|---|
| pack-priv int classVersion The class version number. | |
| exportedPackages | back to summary |
|---|---|
| private final CheckModuleAdapter. The internal names of the packages exported by the visited module. | |
| isOpen | back to summary |
|---|---|
| private final boolean isOpen Whether the visited module is open. | |
| openedPackages | back to summary |
|---|---|
| private final CheckModuleAdapter. The internal names of the packages opened by the visited module. | |
| providedServices | back to summary |
|---|---|
| private final CheckModuleAdapter. The internal names of the services provided by the visited module. | |
| requiredModules | back to summary |
|---|---|
| private final CheckModuleAdapter. The fully qualified names of the dependencies of the visited module. | |
| usedServices | back to summary |
|---|---|
| private final CheckModuleAdapter. The internal names of the services used by the visited module. | |
| visitEndCalled | back to summary |
|---|---|
| private boolean visitEndCalled Whether the | |
| CheckModuleAdapter | back to summary |
|---|---|
| public CheckModuleAdapter(final ModuleVisitor moduleVisitor, final boolean isOpen) Constructs a new
| |
| CheckModuleAdapter | back to summary |
|---|---|
| protected CheckModuleAdapter(final int api, final ModuleVisitor moduleVisitor, final boolean isOpen) Constructs a new
| |
| checkVisitEndNotCalled | back to summary |
|---|---|
| private void checkVisitEndNotCalled() | |
| visitEnd | back to summary |
|---|---|
| public void visitEnd() Overrides org. Doc from org. 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.
| |
| visitExport | back to summary |
|---|---|
| public void visitExport(final String packaze, final int access, final String... modules) Overrides org. Doc from org. Visit an exported package of the current module.
| |
| visitMainClass | back to summary |
|---|---|
| public void visitMainClass(final String mainClass) Overrides org. Doc from org. Visit the main class of the current module.
| |
| visitOpen | back to summary |
|---|---|
| public void visitOpen(final String packaze, final int access, final String... modules) Overrides org. Doc from org. Visit an open package of the current module.
| |
| visitPackage | back to summary |
|---|---|
| public void visitPackage(final String packaze) Overrides org. Doc from org. Visit a package of the current module.
| |
| visitProvide | back to summary |
|---|---|
| public void visitProvide(final String service, final String... providers) Overrides org. Doc from org. Visit an implementation of a service.
| |
| visitRequire | back to summary |
|---|---|
| public void visitRequire(final String module, final int access, final String version) Overrides org. Doc from org. Visits a dependence of the current module. | |
| visitUse | back to summary |
|---|---|
| public void visitUse(final String service) Overrides org. Doc from org. Visit a service used by the current module. The name must be the internal name of an interface or a class.
| |
| Modifier and Type | Field and Description |
|---|---|
| private final HashSet | |
| private final String |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv void |
| names | back to summary |
|---|---|
| private final HashSet<String> names | |
| type | back to summary |
|---|---|
| private final String type | |
| NameSet | back to summary |
|---|---|
| pack-priv NameSet(final String type) | |
| checkNameNotAlreadyDeclared | back to summary |
|---|---|
| pack-priv void checkNameNotAlreadyDeclared(final String name) | |