Package de.obqo.decycle.slicer
Class IgnoredDependency
- java.lang.Object
-
- de.obqo.decycle.slicer.IgnoredDependency
-
public final class IgnoredDependency extends Object
Represents a dependency between two classes that should be ignored when checking the defined constraints.
-
-
Constructor Summary
Constructors Constructor Description IgnoredDependency(String fromPattern, String toPattern)Creates a newIgnoredDependencyinstance.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static IgnoredDependencycreate(String fromPattern, String toPattern)Creates a newIgnoredDependencyby adjusting the given patterns.booleanequals(Object o)StringgetFromPattern()The pattern for the source of the dependency - seePatternMatchingNodeFilterStringgetToPattern()The pattern for the target of the dependency - seePatternMatchingNodeFilterinthashCode()StringtoString()
-
-
-
Constructor Detail
-
IgnoredDependency
public IgnoredDependency(String fromPattern, String toPattern)
Creates a newIgnoredDependencyinstance.- Parameters:
fromPattern- The pattern for the source of the dependency - seePatternMatchingNodeFiltertoPattern- The pattern for the target of the dependency - seePatternMatchingNodeFilter
-
-
Method Detail
-
create
public static IgnoredDependency create(String fromPattern, String toPattern)
Creates a newIgnoredDependencyby adjusting the given patterns. Patterns will be trimmed and anullor blank pattern will be turned into the match all pattern"**".- Parameters:
fromPattern- the pattern for the source of the dependency (ornullfor any)toPattern- the pattern for the target of the dependency (ornullfor any)- Returns:
- a new
IgnoredDependency
-
getFromPattern
public String getFromPattern()
The pattern for the source of the dependency - seePatternMatchingNodeFilter- Returns:
- the pattern
-
getToPattern
public String getToPattern()
The pattern for the target of the dependency - seePatternMatchingNodeFilter- Returns:
- the pattern
-
-