Modifier and Type | Method and Description |
---|---|
static AnalysisResult |
AnalysisResult.analysisResult(Dotted className,
IsImmutable isImmutable,
Collection<MutableReasonDetail> reasons) |
static AnalysisResult |
AnalysisResult.analysisResult(Dotted className,
IsImmutable isImmutable,
Collection<MutableReasonDetail> reasons,
Collection<AnalysisError> errors) |
static AnalysisResult |
AnalysisResult.analysisResult(Dotted className,
IsImmutable isImmutable,
MutableReasonDetail... reasons) |
static AnalysisResult |
AnalysisResult.analysisResult(String dottedClassName,
IsImmutable isImmutable) |
static AnalysisResult |
AnalysisResult.analysisResult(String dottedClassName,
IsImmutable isImmutable,
Collection<MutableReasonDetail> mutableReasonDetails) |
static AnalysisResult |
AnalysisResult.analysisResult(String className,
IsImmutable isImmutable,
MutableReasonDetail... reasons) |
static AnalysisResult |
AnalysisResult.analysisResult(String dottedClassName,
IsImmutable isImmutable,
MutableReasonDetail reason) |
static AnalysisResult |
AnalysisResult.definitelyImmutable(Dotted className) |
static AnalysisResult |
AnalysisResult.definitelyImmutable(String dottedClassName) |
AnalysisResult |
AnalysisSession.processTransitiveAnalysis(Dotted className,
AnalysisInProgress analysisInProgress) |
AnalysisResult |
DefaultCachingAnalysisSession.processTransitiveAnalysis(Dotted className,
AnalysisInProgress analysisInProgress) |
AnalysisResult |
AnalysisSession.resultFor(Dotted className) |
AnalysisResult |
DefaultCachingAnalysisSession.resultFor(Dotted className) |
Modifier and Type | Method and Description |
---|---|
protected Set<AnalysisResult> |
ConfigurationBuilder.getCurrentlyHardcodedResults()
Returns an immutable snapshot of the hardcoded results as at time of calling.
|
Iterable<AnalysisResult> |
AnalysisSession.getResults() |
Collection<AnalysisResult> |
DefaultCachingAnalysisSession.getResults() |
Map<Dotted,AnalysisResult> |
Configuration.hardcodedResults()
Add a predefined result used during analysis.
|
Map<Dotted,AnalysisResult> |
AnalysisSession.resultsByClass() |
Map<Dotted,AnalysisResult> |
DefaultCachingAnalysisSession.resultsByClass() |
Modifier and Type | Method and Description |
---|---|
protected void |
ConfigurationBuilder.hardcodeResult(AnalysisResult result)
Add a predefined result used during analysis.
|
protected void |
ConfigurationBuilder.hardcodeResults(AnalysisResult... result)
Adds all the given AnalysisResults, as if hardcodeResult was called for
each element in the var args parameter.
|
Modifier and Type | Method and Description |
---|---|
protected void |
ConfigurationBuilder.hardcodeResults(Iterable<AnalysisResult> result)
Adds all the given AnalysisResults, as if hardcodeResult was called for
each element in the iterable.
|
Modifier and Type | Method and Description |
---|---|
AnalysisResult |
AllChecksRunner.runCheckers(com.google.common.collect.ImmutableList<AnalysisResult> knownResultsSoFar,
AnalysisDatabase database,
MutableTypeInformation mutableTypeInformation,
AnalysisInProgress analysisInProgress) |
Modifier and Type | Method and Description |
---|---|
CheckerResult |
CheckerRunner.run(AsmMutabilityChecker checker,
Dotted className,
Iterable<AnalysisResult> resultsSoFar) |
AnalysisResult |
AllChecksRunner.runCheckers(com.google.common.collect.ImmutableList<AnalysisResult> knownResultsSoFar,
AnalysisDatabase database,
MutableTypeInformation mutableTypeInformation,
AnalysisInProgress analysisInProgress) |
com.google.common.base.Optional<AnalysisError> |
CheckerRunner.runVisitor(AsmClassVisitor visitor,
Dotted className,
Iterable<AnalysisResult> resultsSoFar) |
MutabilityAnalysisException |
UnhandledExceptionBuilder.unhandledException(Throwable cause,
Iterable<AnalysisResult> resultsSoFar,
org.objectweb.asm.ClassVisitor checker,
Dotted className) |
Modifier and Type | Field and Description |
---|---|
AnalysisResult |
MutableTypeInformation.MutabilityLookup.result |
Modifier and Type | Method and Description |
---|---|
static MutableTypeInformation.MutabilityLookup |
MutableTypeInformation.MutabilityLookup.complete(AnalysisResult result) |
Modifier and Type | Method and Description |
---|---|
StringBuilder |
SessionResultsFormatter.format(Iterable<AnalysisResult> results,
Iterable<AnalysisError> errors) |
Modifier and Type | Method and Description |
---|---|
static org.hamcrest.Matcher<AnalysisResult> |
MutabilityMatchers.areEffectivelyImmutable() |
static org.hamcrest.Matcher<AnalysisResult> |
MutabilityMatchers.areImmutable() |
static org.hamcrest.Matcher<AnalysisResult> |
MutabilityMatchers.areNotImmutable() |
Modifier and Type | Method and Description |
---|---|
static void |
MutabilityAssert.assertInstancesOf(Class<?> clazz,
org.hamcrest.Matcher<AnalysisResult> mutabilityMatcher)
Checks that the result of analysis satisfies the given
Matcher ,
or fails with an AssertionError . |
void |
MutabilityAsserter.assertInstancesOf(Class<?> clazz,
org.hamcrest.Matcher<AnalysisResult> mutabilityMatcher) |
static void |
MutabilityAssert.assertInstancesOf(Class<?> clazz,
org.hamcrest.Matcher<AnalysisResult> mutabilityMatcher,
Iterable<org.hamcrest.Matcher<MutableReasonDetail>> allowingAll)
Checks that the result of analysis satisfies the given
Matcher ,
while allowing mismatches in the form of allowed reasons, or fails with
an AssertionError . |
void |
MutabilityAsserter.assertInstancesOf(Class<?> clazz,
org.hamcrest.Matcher<AnalysisResult> mutabilityMatcher,
Iterable<org.hamcrest.Matcher<MutableReasonDetail>> allowingAll) |
static void |
MutabilityAssert.assertInstancesOf(Class<?> clazz,
org.hamcrest.Matcher<AnalysisResult> mutabilityMatcher,
org.hamcrest.Matcher<MutableReasonDetail> allowing)
Checks that the result of analysis satisfies the given
Matcher ,
while allowing mismatches in the form of an allowed reason, or fails with
an AssertionError . |
void |
MutabilityAsserter.assertInstancesOf(Class<?> clazz,
org.hamcrest.Matcher<AnalysisResult> mutabilityMatcher,
org.hamcrest.Matcher<MutableReasonDetail> allowing) |
static void |
MutabilityAssert.assertInstancesOf(Class<?> clazz,
org.hamcrest.Matcher<AnalysisResult> mutabilityMatcher,
org.hamcrest.Matcher<MutableReasonDetail> allowingFirst,
org.hamcrest.Matcher<MutableReasonDetail> allowingSecond)
Checks that the result of analysis satisfies the given
Matcher ,
while allowing mismatches in the form of allowed reasons, or fails with
an AssertionError . |
void |
MutabilityAsserter.assertInstancesOf(Class<?> clazz,
org.hamcrest.Matcher<AnalysisResult> mutabilityMatcher,
org.hamcrest.Matcher<MutableReasonDetail> allowingFirst,
org.hamcrest.Matcher<MutableReasonDetail> allowingSecond) |
static void |
MutabilityAssert.assertInstancesOf(Class<?> clazz,
org.hamcrest.Matcher<AnalysisResult> mutabilityMatcher,
org.hamcrest.Matcher<MutableReasonDetail> allowingFirst,
org.hamcrest.Matcher<MutableReasonDetail> allowingSecond,
org.hamcrest.Matcher<MutableReasonDetail> allowingThird)
Checks that the result of analysis satisfies the given
Matcher ,
while allowing mismatches in the form of allowed reasons, or fails with
an AssertionError . |
void |
MutabilityAsserter.assertInstancesOf(Class<?> clazz,
org.hamcrest.Matcher<AnalysisResult> mutabilityMatcher,
org.hamcrest.Matcher<MutableReasonDetail> allowingFirst,
org.hamcrest.Matcher<MutableReasonDetail> allowingSecond,
org.hamcrest.Matcher<MutableReasonDetail> allowingThird) |
static void |
MutabilityAssert.assertInstancesOf(Class<?> clazz,
org.hamcrest.Matcher<AnalysisResult> mutabilityMatcher,
org.hamcrest.Matcher<MutableReasonDetail> allowingFirst,
org.hamcrest.Matcher<MutableReasonDetail> allowingSecond,
org.hamcrest.Matcher<MutableReasonDetail> allowingThird,
org.hamcrest.Matcher<MutableReasonDetail>... allowingRest)
Checks that the result of analysis satisfies the given
Matcher ,
while allowing mismatches in the form of allowed reasons, or fails with
an AssertionError . |
void |
MutabilityAsserter.assertInstancesOf(Class<?> clazz,
org.hamcrest.Matcher<AnalysisResult> mutabilityMatcher,
org.hamcrest.Matcher<MutableReasonDetail> allowingFirst,
org.hamcrest.Matcher<MutableReasonDetail> allowingSecond,
org.hamcrest.Matcher<MutableReasonDetail> allowingThird,
org.hamcrest.Matcher<MutableReasonDetail>... allowingRest) |
Modifier and Type | Method and Description |
---|---|
void |
AssertionReporter.assertThat(AnalysisResult analysisResult,
WithAllowedReasonsMatcher resultMatcher) |
Modifier and Type | Method and Description |
---|---|
boolean |
IsImmutableMatcher.matchesSafely(AnalysisResult item,
org.hamcrest.Description mismatchDescription) |
Modifier and Type | Method and Description |
---|---|
static WithAllowedReasonsMatcher |
WithAllowedReasonsMatcher.withAllowedReasons(org.hamcrest.Matcher<AnalysisResult> areImmutable,
Iterable<org.hamcrest.Matcher<MutableReasonDetail>> allowing) |
static WithAllowedReasonsMatcher |
WithAllowedReasonsMatcher.withNoAllowedReasons(org.hamcrest.Matcher<AnalysisResult> areImmutable) |
Copyright © 2008–2020 Graham Allan. All rights reserved.