Codebase list jd-gui / 411348d
Updates API emmanue1 8 years ago
3 changed file(s) with 12 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
2222 public int getFlags();
2323
2424 public String getName();
25
26 public String getShortName();
2725
2826 public String getSuperName();
2927
88 import jd.gui.api.model.Container;
99 import jd.gui.api.model.Type;
1010
11 import java.util.Collection;
1112 import java.util.regex.Pattern;
1213
1314 public interface TypeFactory {
1516
1617 public Pattern getPathPattern();
1718
19 /**
20 * @return all root types contains in 'entry'
21 */
22 public Collection<Type> make(API api, Container.Entry entry);
23
24 /**
25 * @param fragment @see jd.gui.api.feature.UriOpenable
26 * @return if 'fragment' is null, return the main type in 'entry',
27 * otherwise, return the type or sub-type matching with 'fragment'
28 */
1829 public Type make(API api, Container.Entry entry, String fragment);
1930 }
1717 * file://codebase/a/b/c/D$E.class => file://codebase/a/b/c/D.class#typeDeclaration=D$E
1818 */
1919 static URI createURI(API api, Collection<Indexes> collectionOfIndexes, Container.Entry entry, String query, String fragment) {
20 def type = TypeFactoryService.instance.get(entry)?.make(api, entry, null)
20 def type = TypeFactoryService.instance.get(entry)?.make(api, entry, fragment)
2121 def uri = entry.uri
2222 def path = type?.outerName ? getOuterPath(collectionOfIndexes, entry, type) : uri.path
2323 return new URI(uri.scheme, uri.host, path, query, fragment)