Package de.thetaphi.forbiddenapis
Class ClassPatternRule
java.lang.Object
de.thetaphi.forbiddenapis.ClassPatternRule
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionClassPatternRule(String glob, String message) Create new rule for class glob and given printout -
Method Summary
Modifier and TypeMethodDescriptionbooleangetPrintout(String className) returns the printout using the message and the given class nameinthashCode()booleanreturns true, if the given class (binary name, dotted) matches this rule.toString()
-
Field Details
-
pattern
-
glob
-
message
-
-
Constructor Details
-
ClassPatternRule
Create new rule for class glob and given printout
-
-
Method Details
-
matches
returns true, if the given class (binary name, dotted) matches this rule. -
getPrintout
returns the printout using the message and the given class name -
hashCode
public int hashCode() -
equals
-
toString
-