Class MatchPattern
java.lang.Object
com.ezylang.evalex.functions.AbstractFunction
me.hsgamer.hscore.expression.StringComparator
me.hsgamer.hscore.expression.string.MatchPattern
- All Implemented Interfaces:
com.ezylang.evalex.functions.FunctionIfc
@FunctionParameter(name="string") @FunctionParameter(name="pattern")
public class MatchPattern
extends StringComparator
Check if the 1st string matches the RegEx pattern from the 2nd string
Ex: STRMP("String", "String-?")
Ex: STRMP("String", "String-?")
-
Field Summary
Fields inherited from class com.ezylang.evalex.functions.AbstractFunction
MINUS_ONE
-
Constructor Summary
-
Method Summary
Methods inherited from class me.hsgamer.hscore.expression.StringComparator
evaluate
Methods inherited from class com.ezylang.evalex.functions.AbstractFunction
getFunctionParameterDefinitions, hasVarArgs, validatePreEvaluation
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.ezylang.evalex.functions.FunctionIfc
getCountOfNonVarArgParameters, isParameterLazy
-
Constructor Details
-
MatchPattern
public MatchPattern()
-
-
Method Details
-
compare
Description copied from class:StringComparator
Compare the two strings- Specified by:
compare
in classStringComparator
- Parameters:
s1
- the 1st strings2
- the 2nd string- Returns:
- the result
-