98
99 public boolean isAutomatic() {
100 return descriptor != null && descriptor.isAutomatic();
101 }
102
103 public Module getModule() {
104 return this;
105 }
106
107 public ModuleDescriptor descriptor() {
108 return descriptor;
109 }
110
111 public URI location() {
112 return location;
113 }
114
115 public boolean isJDK() {
116 String mn = name();
117 return isSystem &&
118 (mn.startsWith("java.") || mn.startsWith("jdk.") || mn.startsWith("javafx."));
119 }
120
121 public boolean isSystem() {
122 return isSystem;
123 }
124
125 public Map<String, Set<String>> exports() {
126 return exports;
127 }
128
129 public Set<String> packages() {
130 return descriptor.packages();
131 }
132
133 public boolean isJDKUnsupported() {
134 return JDK_UNSUPPORTED.equals(this.name());
135 }
136
137 /**
138 * Converts this module to a normal module with the given dependences
|
98
99 public boolean isAutomatic() {
100 return descriptor != null && descriptor.isAutomatic();
101 }
102
103 public Module getModule() {
104 return this;
105 }
106
107 public ModuleDescriptor descriptor() {
108 return descriptor;
109 }
110
111 public URI location() {
112 return location;
113 }
114
115 public boolean isJDK() {
116 String mn = name();
117 return isSystem &&
118 (mn.startsWith("java.") || mn.startsWith("jdk."));
119 }
120
121 public boolean isSystem() {
122 return isSystem;
123 }
124
125 public Map<String, Set<String>> exports() {
126 return exports;
127 }
128
129 public Set<String> packages() {
130 return descriptor.packages();
131 }
132
133 public boolean isJDKUnsupported() {
134 return JDK_UNSUPPORTED.equals(this.name());
135 }
136
137 /**
138 * Converts this module to a normal module with the given dependences
|