classycle.dependency
Class DependencyResult

java.lang.Object
  extended by classycle.dependency.DependencyResult
All Implemented Interfaces:
Result

public class DependencyResult
extends java.lang.Object
implements Result

Result of a dependency check.

Author:
Franz-Josef Elmer

Constructor Summary
DependencyResult(StringPattern startSet, StringPattern finalSet, java.lang.String statement, AtomicVertex[] paths)
           
 
Method Summary
 StringPattern getFinalSet()
          Returns the pattern describing the final set.
 AtomicVertex[] getPaths()
          Returns the vertices of the paths of unwanted dependencies.
 StringPattern getStartSet()
          Returns the pattern describing the start set.
 java.lang.String getStatement()
          Returns the statement causing this result.
 boolean isOk()
          Returns true if and only if getPaths() is empty.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DependencyResult

public DependencyResult(StringPattern startSet,
                        StringPattern finalSet,
                        java.lang.String statement,
                        AtomicVertex[] paths)
Method Detail

isOk

public boolean isOk()
Returns true if and only if getPaths() is empty.

Specified by:
isOk in interface Result

getStatement

public java.lang.String getStatement()
Returns the statement causing this result.


getFinalSet

public StringPattern getFinalSet()
Returns the pattern describing the final set.


getPaths

public AtomicVertex[] getPaths()
Returns the vertices of the paths of unwanted dependencies.

Returns:
an empty array if no unwanted dependencies have been found.

getStartSet

public StringPattern getStartSet()
Returns the pattern describing the start set.


toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object