Expression
public class RegularExpression extends Object implements Expression
Constructor | Description |
---|---|
RegularExpression(Pattern expressionRegexp,
ParameterTypeRegistry parameterTypeRegistry) |
Creates a new instance.
|
Modifier and Type | Method | Description |
---|---|---|
Pattern |
getRegexp() |
|
String |
getSource() |
|
List<Argument<?>> |
match(String text) |
public RegularExpression(Pattern expressionRegexp, ParameterTypeRegistry parameterTypeRegistry)
expressionRegexp
- the regular expression to useparameterTypeRegistry
- used to look up parameter typespublic List<Argument<?>> match(String text)
match
in interface Expression
public Pattern getRegexp()
getRegexp
in interface Expression
public String getSource()
getSource
in interface Expression
Copyright © 2018. All rights reserved.