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