Class MatchPattern
java.lang.Object
com.ezylang.evalex.functions.AbstractFunction
me.hsgamer.hscore.expression.ezylang.StringComparator
me.hsgamer.hscore.expression.ezylang.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-?")
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class me.hsgamer.hscore.expression.ezylang.StringComparator
evaluateMethods inherited from class com.ezylang.evalex.functions.AbstractFunction
getFunctionParameterDefinitions, hasVarArgs, validatePreEvaluationMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.ezylang.evalex.functions.FunctionIfc
isParameterLazy
-
Constructor Details
-
MatchPattern
public MatchPattern()
-
-
Method Details
-
compare
Description copied from class:StringComparatorCompare the two strings- Specified by:
comparein classStringComparator- Parameters:
s1- the 1st strings2- the 2nd string- Returns:
- the result
-