|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.springsource.bundlor.internal.transformer.PackageDeclarationMap
final class PackageDeclarationMap
Intermediate data structure that holds a loosely structured mapping of (PackageName +> Attributes x Directives).
Concurrent Semantics
Nested Class Summary | |
---|---|
private static class |
PackageDeclarationMap.ImmutablePackageDeclaration
Immutable implementation of PackageDeclarationMap.PackageDeclaration . |
static interface |
PackageDeclarationMap.PackageDeclaration
Defines (PackageName x Directives x Attributes). |
Field Summary | |
---|---|
private java.util.Set<PackageDeclarationMap.PackageDeclaration> |
declarations
|
Constructor Summary | |
---|---|
PackageDeclarationMap()
|
Method Summary | |
---|---|
void |
declare(java.lang.String packageName,
java.util.Map<java.lang.String,java.lang.String> attributes,
java.util.Map<java.lang.String,java.lang.String> directives)
Declares a package with the supplied name, attributes and directives. |
PackageDeclarationMap.PackageDeclaration |
getDeclaration(java.lang.String packageName)
Gets the {@link PackageDeclaration) for the supplied package name. |
java.util.Set<PackageDeclarationMap.PackageDeclaration> |
getDeclarations()
Gets all the package declarations. |
void |
override(PackageDeclarationMap with)
Override the declarations in this mapping with those of the supplied mapping. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private final java.util.Set<PackageDeclarationMap.PackageDeclaration> declarations
Constructor Detail |
---|
PackageDeclarationMap()
Method Detail |
---|
public void declare(java.lang.String packageName, java.util.Map<java.lang.String,java.lang.String> attributes, java.util.Map<java.lang.String,java.lang.String> directives)
packageName
- the name of the package.attributes
- the attributes.directives
- the directives.public PackageDeclarationMap.PackageDeclaration getDeclaration(java.lang.String packageName)
packageName
- the name of the package.
PackageDeclaration
or null
if no match is found.public java.util.Set<PackageDeclarationMap.PackageDeclaration> getDeclarations()
public void override(PackageDeclarationMap with)
with
- the declarations to override with.public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |