public class ModuleRequireNode extends Object
Modifier and Type | Field and Description |
---|---|
int |
access
The access flags (see
Opcodes ). |
String |
module
The name of the required module.
|
String |
version
Version at compile time of the required module or null.
|
Constructor and Description |
---|
ModuleRequireNode(String module,
int access,
String version)
Constructs a new
ModuleRequireNode . |
Modifier and Type | Method and Description |
---|---|
void |
accept(ModuleVisitor mv)
Makes the given module visitor visit this require directive.
|
public String module
public int access
Opcodes
).
Valid values are ACC_TRANSITIVE, ACC_STATIC_PHASE,
ACC_SYNTHETIC and ACC_MANDATED.public String version
public ModuleRequireNode(String module, int access, String version)
ModuleRequireNode
.module
- the name of the required module.access
- The access flags. Valid values are
ACC_TRANSITIVE, ACC_STATIC_PHASE,
ACC_SYNTHETIC and ACC_MANDATED
(see Opcodes
).version
- Version of the required module at compile time,
null if not defined.public void accept(ModuleVisitor mv)
mv
- a module visitor.