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 TypeMethodDescriptionvoidaddCycle(StrongComponent cycle) Adds the specified cycle.Returns all added cycles.Returns the statement.booleanisOk()Returnstrueif no cycles have been added.booleanReturnstrue/falseif 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/falsethe 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/falseif this result is on package/class cycles. -
isOk
public boolean isOk()Returnstrueif no cycles have been added. -
toString
Returns the result in a human-readable form which is used by theDefaultResultRenderer.
-