Package classycle.dependency
Class CyclesResult
java.lang.Object
classycle.dependency.CyclesResult
- All Implemented Interfaces:
Result
Result of a cyclic check.
- Author:
- Franz-Josef Elmer
-
Constructor Summary
ConstructorsConstructorDescriptionCyclesResult
(String statement, boolean packageCycle) Creates an instance for the specified statement. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addCycle
(StrongComponent cycle) Adds the specified cycle.Returns all added cycles.Returns the statement.boolean
isOk()
Returnstrue
if no cycles have been added.boolean
Returnstrue/false
if this result is on package/class cycles.toString()
Returns the result in a human-readable form which is used by theDefaultResultRenderer
.
-
Constructor Details
-
CyclesResult
Creates an instance for the specified statement.- Parameters:
packageCycle
- Iftrue/false
the check is on package/class cycles
-
-
Method Details
-
addCycle
Adds the specified cycle. -
getCycles
Returns all added cycles. -
getStatement
Returns the statement. -
isPackageCycle
public boolean isPackageCycle()Returnstrue/false
if this result is on package/class cycles. -
isOk
public boolean isOk()Returnstrue
if no cycles have been added. -
toString
Returns the result in a human-readable form which is used by theDefaultResultRenderer
.
-