/** * Create a pattern for pattern-matching and term rewriting * * @param symbol * @return IPattern */ public static IPattern pattern(final ISymbol symbol) { return org.matheclipse.core.expression.Pattern.valueOf(symbol); }
/** * Create a pattern for pattern-matching and term rewriting * * @param symbol * @param check * additional condition which should be checked in pattern-matching * @return IPattern */ public static IPattern $p(final ISymbol symbol, final IExpr check) { return org.matheclipse.core.expression.Pattern.valueOf(symbol, check); }
/** * Create a pattern for pattern-matching and term rewriting * * @param symbol * @param check * additional condition which should be checked in pattern-matching * @param def * if <code>true</code>, the pattern can match to a default value associated with the AST's head the * pattern is used in. * @return IPattern */ public static IPattern pattern(final ISymbol symbol, final IExpr check, final boolean def) { return org.matheclipse.core.expression.Pattern.valueOf(symbol, check, def); }
/** * Create a pattern for pattern-matching and term rewriting * * @param symbol * @param check * additional condition which should be checked in pattern-matching * @return IPattern */ public static IPattern $p(final ISymbol symbol, final IExpr check) { if (symbol == null) { return Pattern.valueOf(null, check); } return Pattern.valueOf((Symbol) symbol, check); }
/** * Create a pattern for pattern-matching and term rewriting * * @param symbol * @param check * additional condition which should be checked in pattern-matching * @param def * if <code>true</code>, the pattern can match to a default value associated with the AST's head the * pattern is used in. * @return IPattern */ public static IPattern $p(final ISymbol symbol, final IExpr check, final boolean def) { return org.matheclipse.core.expression.Pattern.valueOf(symbol, check, def); }
/** * Create a pattern for pattern-matching and term rewriting * * @param symbol * @param check * additional condition which should be checked in pattern-matching * @param def * if <code>true</code>, the pattern can match to a default value * associated with the AST's head the pattern is used in. * @return IPattern */ public static IPattern $p(final ISymbol symbol, final IExpr check, final boolean def) { if (symbol == null) { return Pattern.valueOf(null, check, def); } return Pattern.valueOf((Symbol) symbol, check, def); }
/** * Create a <code>Pattern[]</code> pattern for pattern-matching and term rewriting * * @param symbol * @return IPattern */ public static IPattern $p(@Nonnull final ISymbol symbol) { return org.matheclipse.core.expression.Pattern.valueOf(symbol); }
/** * Create a pattern for pattern-matching and term rewriting * * @param symbolName * @param check * additional condition which should be checked in pattern-matching * @return IPattern */ public static IPattern $p(final String symbolName, final IExpr check) { if (symbolName == null) { return Pattern.valueOf(null, check); } return Pattern.valueOf((Symbol) $s(symbolName), check); }
/** * Create a pattern for pattern-matching and term rewriting * * @param symbolName * @param check * additional condition which should be checked in pattern-matching * @param def * use a default value for this pattern if necessary * @return IPattern */ public static IPattern $p(final String symbolName, final IExpr check, boolean def) { if (symbolName == null) { return Pattern.valueOf(null, check, def); } return Pattern.valueOf((Symbol) $s(symbolName), check, def); }
/** * Create a pattern for pattern-matching and term rewriting * * @param symbolName * @return IPattern */ public static IPattern $p(@Nonnull final String symbolName) { // if (symbolName == null) { // return org.matheclipse.core.expression.Pattern.valueOf(null); // } return org.matheclipse.core.expression.Pattern.valueOf($s(symbolName)); }
/** * Create a pattern for pattern-matching and term rewriting * * @param symbolName * @param check * additional condition which should be checked in pattern-matching * @param def * use a default value for this pattern if necessary * @return IPattern */ public static IPattern $p(@Nonnull final String symbolName, final IExpr check, boolean def) { return org.matheclipse.core.expression.Pattern.valueOf($s(symbolName), check, def); }
/** * Create a pattern for pattern-matching and term rewriting * * @param symbolName * @param check * additional condition which should be checked in pattern-matching * @return IPattern */ public static IPattern $p(@Nonnull final String symbolName, final IExpr check) { // if (symbolName == null) { // return org.matheclipse.core.expression.Pattern.valueOf(null, check); // } return org.matheclipse.core.expression.Pattern.valueOf($s(symbolName), check); }