| Modifier and Type | Method and Description |
|---|---|
void |
accept(Visitor v)
Called by objects that are traversing the nodes of the tree implicitly defined by the contents of a Java class.
|
ModuleRequires |
copy() |
void |
dump(DataOutputStream file)
Dump table entry to file stream in binary format.
|
String |
getModuleName(ConstantPool constantPool)
Gets the module name from the constant pool.
|
int |
getRequiresFlags()
Gets the flags for this ModuleRequires.
|
String |
getVersion(ConstantPool constantPool)
Gets the required version from the constant pool.
|
String |
toString() |
String |
toString(ConstantPool constantPool) |
public void accept(Visitor v)
public ModuleRequires copy()
public void dump(DataOutputStream file) throws IOException
file - Output file streamIOException - if an I/O Exception occurs in writeShortpublic String getModuleName(ConstantPool constantPool)
constantPool - Array of constants usually obtained from the ClassFile objectpublic int getRequiresFlags()
public String getVersion(ConstantPool constantPool)
constantPool - Array of constants usually obtained from the ClassFile objectpublic String toString()
public String toString(ConstantPool constantPool)
Copyright © 2004–2025 The Apache Software Foundation. All rights reserved.