public class Dependencies extends Object
This is NOT part of any supported API. If you write code that depends on this, you do so at your own risk. This code and its internal interfaces are subject to change or deletion without notice.
Modifier and Type | Field and Description |
---|---|
protected static Context.Key<Dependencies> |
dependenciesKey |
protected Map<Name,Set<Name>> |
deps |
protected Set<Name> |
explicitPackages |
protected Log |
log |
protected Map<Name,StringBuffer> |
publicApiPerClass |
Modifier and Type | Method and Description |
---|---|
void |
collect(Name currPkg,
Name depPkg)
Collect a dependency.
|
Map<String,Set<String>> |
getDependencies()
Fetch the set of dependencies that are relevant to the compile
that has just been performed.
|
Map<String,String> |
getPubapis()
Convert the map from class names to their pubapi to a map
from package names to their pubapi (which is the sorted concatenation
of all the class pubapis)
|
static Dependencies |
instance(Context context) |
void |
reset() |
void |
visitPubapi(Element e)
Visit the api of a class and construct a pubapi string and
store it into the pubapi_perclass map.
|
protected static final Context.Key<Dependencies> dependenciesKey
protected Log log
protected Map<Name,StringBuffer> publicApiPerClass
public static Dependencies instance(Context context)
public void reset()
public Map<String,Set<String>> getDependencies()
public Map<String,String> getPubapis()
public void visitPubapi(Element e)
Copyright © 2017 earcam. All rights reserved.