public abstract class LinkageProblem extends Object
sourceClass to symbol.| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object other) |
static String |
formatLinkageProblems(Set<LinkageProblem> linkageProblems,
ClassPathResult classPathResult)
Returns the formatted
linkageProblems by grouping them by the symbols. |
String |
formatSymbolProblem()
Returns the description of the problem on the
symbol. |
protected String |
formatSymbolProblemWithReferenceCount(int referenceCount) |
ClassFile |
getSourceClass()
Returns the class that contains a symbolic reference to a symbol that is not available.
|
Symbol |
getSymbol()
Returns the symbol that was not resolved.
|
ClassFile |
getTargetClass()
Returns the class that is expected to contain the symbol.
|
static com.google.common.collect.ImmutableMap<String,com.google.common.collect.ImmutableSet<String>> |
groupBySymbolProblem(Iterable<LinkageProblem> linkageProblems)
Returns mapping from symbol problem description to the names of the source classes.
|
int |
hashCode() |
String |
toString() |
public Symbol getSymbol()
public ClassFile getSourceClass()
@Nullable public ClassFile getTargetClass()
public String formatSymbolProblem()
symbol. This description does not include
the sourceClass. This value is useful when grouping LinkageProblems by their
symbols.protected String formatSymbolProblemWithReferenceCount(int referenceCount)
public static com.google.common.collect.ImmutableMap<String,com.google.common.collect.ImmutableSet<String>> groupBySymbolProblem(Iterable<LinkageProblem> linkageProblems)
public static String formatLinkageProblems(Set<LinkageProblem> linkageProblems, @Nullable ClassPathResult classPathResult)
linkageProblems by grouping them by the symbols. If
classPathResult is not null, it supplies dependency paths from the root to the
artifacts in the problems.Copyright © 2018–2021 Google LLC.. All rights reserved.