|
Qwylt | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.module.AttributeSource
java.lang.module.ScopedName
java.lang.module.ExportMatcher
java.lang.module.Import
public class Import
An ExportMatcher with an access qualifier that is tied to a specific
ModuleArchive.
| Nested Class Summary | |
|---|---|
static class |
Import.Access
Access qualifier. |
| Nested classes/interfaces inherited from class java.lang.module.ScopedName |
|---|
ScopedName.Scope |
| Field Summary | |
|---|---|
static Matcher<Version> |
ANY_VERSION
A version matcher that will match any version. |
| Fields inherited from class java.lang.module.ExportMatcher |
|---|
attributeMatcher, versionMatcher |
| Fields inherited from class java.lang.module.AttributeSource |
|---|
NO_ATTRIBUTES, SERVICE_IMPLEMENTATION_KEY |
| Constructor Summary | |
|---|---|
Import(Import.Access access,
ScopedName.Scope scope,
java.lang.String name,
Matcher<Version> versionMatcher,
AttributeMatcher attributeMatcher,
ModuleArchive importer)
Constructs an instance. |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object other)
Test if the specified object is equal to this instance, enforcing identity comparison. |
Import.Access |
getAccess()
Returns the access qualifier. |
ModuleArchive |
getImporter()
Returns the ModuleArchive that contains this import. |
int |
hashCode()
Returns the identity hash code
for this instance. |
boolean |
isLazy()
Returns whether or not this import is lazy. |
boolean |
isOptional()
Returns true if this Import is optional;
otherwise, returns false. |
boolean |
isReExported()
Returns true if this Import is re-exported;
otherwise, returns false. |
java.lang.String |
toString()
Returns a string representation of this instance. |
java.lang.String |
toString(boolean verbose)
Returns a string representation of this instance. |
protected void |
updateString(java.lang.StringBuilder builder,
boolean verbose)
Update the toString() result. |
| Methods inherited from class java.lang.module.ExportMatcher |
|---|
containsAttribute, getAttribute, getAttributeKeys, getAttributeMatcher, getAttributes, getVersionMatcher, matches |
| Methods inherited from class java.lang.module.ScopedName |
|---|
getName, getScope, scopedNameEquals, scopedNameEquals, scopedNameHashCode, scopedNameHashCode |
| Methods inherited from class java.lang.module.AttributeSource |
|---|
appendAttributes, asList, containsAttributes, getAttributeAsList, modifiableList, unmodifiableMap, unmodifiableMap |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final Matcher<Version> ANY_VERSION
| Constructor Detail |
|---|
public Import(Import.Access access,
ScopedName.Scope scope,
java.lang.String name,
Matcher<Version> versionMatcher,
AttributeMatcher attributeMatcher,
ModuleArchive importer)
access - The access qualifier.scope - The scope.name - The name.versionMatcher - The version matcher. May be null,
to match any version.attributeMatcher - The attribute matcher.importer - The ModuleArchive that contains this import.| Method Detail |
|---|
public Import.Access getAccess()
public boolean isOptional()
true if this Import is optional;
otherwise, returns false.
true if this Import is optional;
otherwise, returns false.public boolean isLazy()
true if lazy, false if not.public boolean isReExported()
true if this Import is re-exported;
otherwise, returns false.
true if this Import is re-exported;
otherwise, returns false.public ModuleArchive getImporter()
ModuleArchive that contains this import.
ModuleArchive.public final boolean equals(java.lang.Object other)
equals in class java.lang.Objectother - The object to compare to.
true if other is the same as this
instance; otherwise, returns false.public final int hashCode()
identity hash code
for this instance.
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class ExportMatcherpublic java.lang.String toString(boolean verbose)
verbose - true if result should be verbose.
protected void updateString(java.lang.StringBuilder builder,
boolean verbose)
verbose - true if result should be verbose.builder - The text to update
|
Qwylt | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||