public class ModuleNode extends ModuleVisitor
| Modifier and Type | Field and Description |
|---|---|
List<ModuleExportNode> |
exports
A list of packages that are exported by the current module.
|
List<ModuleProvideNode> |
provides
A list of services along with their implementations provided
by the current module.
|
List<ModuleRequireNode> |
requires
A list of modules can are required by the current module.
|
List<String> |
uses
A list of classes in their internal forms that are used
as a service by the current module.
|
api, mv| Constructor and Description |
|---|
ModuleNode() |
ModuleNode(int api,
List<ModuleRequireNode> requires,
List<ModuleExportNode> exports,
List<String> uses,
List<ModuleProvideNode> provides) |
| Modifier and Type | Method and Description |
|---|---|
void |
accept(ClassVisitor cv) |
void |
visitEnd() |
void |
visitExport(String packaze,
String... modules)
Visit an exported package of the current module.
|
void |
visitProvide(String service,
String impl)
Visit an implementation of a service.
|
void |
visitRequire(String module,
int access)
Visits a dependence of the current module.
|
void |
visitUse(String service)
Visit a service used by the current module.
|
public List<ModuleRequireNode> requires
public List<ModuleExportNode> exports
public List<String> uses
public List<ModuleProvideNode> provides
public ModuleNode()
public ModuleNode(int api,
List<ModuleRequireNode> requires,
List<ModuleExportNode> exports,
List<String> uses,
List<ModuleProvideNode> provides)
public void visitRequire(String module, int access)
ModuleVisitorvisitRequire in class ModuleVisitormodule - the module name of the dependenceaccess - the access flag of the dependence among
ACC_PUBLIC, ACC_SYNTHETIC and ACC_MANDATED.public void visitExport(String packaze, String... modules)
ModuleVisitorvisitExport in class ModuleVisitorpackaze - the name of the exported package.modules - names of the modules that can access to
the public classes of the exported package or
null.public void visitUse(String service)
ModuleVisitorvisitUse in class ModuleVisitorservice - the internal name of the service.public void visitProvide(String service, String impl)
ModuleVisitorvisitProvide in class ModuleVisitorservice - the internal name of the serviceimpl - the internal name of the implementation
of the servicepublic void visitEnd()
visitEnd in class ModuleVisitorpublic void accept(ClassVisitor cv)
Copyright © 2009-2016 Oracle Corporation. All Rights Reserved.