public class CompoundModule extends java.lang.Object implements ModuleEntry, Module, SourceModule
| Modifier and Type | Class and Description |
|---|---|
class |
CompoundModule.Reader |
| Constructor and Description |
|---|
CompoundModule(java.net.URL name,
SourceModule[] constituents) |
| Modifier and Type | Method and Description |
|---|---|
Module |
asModule()
Precondition: isModuleFile().
|
java.lang.String |
getClassName() |
SourceModule[] |
getConstituents() |
Module |
getContainer()
the containing module
|
java.util.Iterator<ModuleEntry> |
getEntries() |
CompoundModule.Reader |
getInputReader() |
java.io.InputStream |
getInputStream() |
java.lang.String |
getName() |
java.net.URL |
getURL() |
boolean |
isClassFile() |
boolean |
isModuleFile() |
boolean |
isSourceFile() |
public CompoundModule(java.net.URL name,
SourceModule[] constituents)
public SourceModule[] getConstituents()
public java.util.Iterator<ModuleEntry> getEntries()
getEntries in interface Modulepublic boolean isModuleFile()
isModuleFile in interface ModuleEntrypublic Module asModule()
ModuleEntryasModule in interface ModuleEntrypublic java.lang.String getClassName()
getClassName in interface ModuleEntrypublic java.lang.String getName()
getName in interface ModuleEntrypublic java.net.URL getURL()
getURL in interface SourceModulepublic boolean isClassFile()
isClassFile in interface ModuleEntrypublic boolean isSourceFile()
isSourceFile in interface ModuleEntrypublic java.io.InputStream getInputStream()
getInputStream in interface ModuleEntrypublic CompoundModule.Reader getInputReader()
getInputReader in interface SourceModulepublic Module getContainer()
ModuleEntrygetContainer in interface ModuleEntry