Class PatternExpression
java.lang.Object
org.opendaylight.yangtools.yang.model.api.stmt.PatternExpression
- All Implemented Interfaces:
Immutable
An intermediate capture of the argument to
pattern
statement. It exposes both XSD regular expression, as well
as a Pattern
pattern.-
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns a JavaPattern
-compatible regular expression (pattern).Returns a raw regular expression as it was declared in a source.int
hashCode()
intern()
Returns an interned instance of this expression.static PatternExpression
toString()
-
Method Details
-
of
-
getJavaPatternString
Returns a JavaPattern
-compatible regular expression (pattern). Returned string performs equivalent matching in terms of enforcement, but it may have a structure completely different from the one in YANG model.- Returns:
- string Java Pattern regular expression
-
getRegularExpressionString
Returns a raw regular expression as it was declared in a source. This string conforms to XSD regular expression syntax, which is notably different from Java's Pattern string.- Returns:
- argument of pattern statement as it was declared in YANG model.
-
intern
Returns an interned instance of this expression.- Returns:
- A shared interned instance.
-
hashCode
public int hashCode() -
equals
-
toString
-