Class JavaPattern
java.lang.Object
dev.archunitjava.pattern.JavaPattern
An immutable pattern compiled once for repeated matching.
Matching is always against the complete candidate. In glob syntax, * matches zero or
more characters except the domain separator, ? matches one non-separator character, and
** may cross separators. A backslash quotes the following glob character.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic JavaPatternexact(PatternDomain domain, String expression) static JavaPatternglob(PatternDomain domain, String expression) inthashCode()booleanstatic JavaPatternregex(PatternDomain domain, String expression) toString()static JavaPatterntrustedRegex(PatternDomain domain, String expression) Compiles an unrestricted JDK regular expression for trusted in-process policy only.
-
Method Details
-
exact
-
glob
-
regex
-
trustedRegex
Compiles an unrestricted JDK regular expression for trusted in-process policy only.Unlike
regex(PatternDomain, String), this method permits constructs with unbounded backtracking. Never pass tenant-, repository-, or network-controlled text here. -
matches
-
description
-
equals
-
hashCode
-
toString
-