org.matheclipse.core.interfaces
Interface IPattern
-
- All Superinterfaces:
- AbelianGroupElem<IExpr>, java.lang.Comparable<IExpr>, Element<IExpr>, IExpr, IPatternObject, MonoidElem<IExpr>, RingElem<IExpr>, java.io.Serializable
- All Known Implementing Classes:
- Pattern
public interface IPattern extends IPatternObject, IExpr
Interface for pattern objects. A pettern object cannot be shared between multiple rules
-
-
Field Summary
-
Fields inherited from interface org.matheclipse.core.interfaces.IExpr
ASTID, COMPLEXID, DOUBLECOMPLEXID, DOUBLEID, FRACTIONID, INTEGERID, METHODSYMBOLID, PATTERNID, STRINGID, SYMBOLID
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description IExprgetCondition()Get the additional patterns condition expressionbooleanisBlank()Returntrue, if the expression is a blank patternbooleanisConditionMatched(IExpr expr)Returntrue, if the expression fullfills the patterns additional conditionbooleanisDefault()Returntrue, if the expression is a pattern with an associated default value,-
Methods inherited from interface org.matheclipse.core.interfaces.IPatternObject
getIndex, getSymbol, setIndex
-
Methods inherited from interface org.matheclipse.core.interfaces.IExpr
accept, accept, accept, and, apply, apply, asType, compareTo, evaluate, fullFormString, getAt, head, hierarchy, internalFormString, inverse, isAnd, isArcCos, isArcCosh, isArcSin, isArcSinh, isArcTan, isArcTanh, isAST, isAST, isAST, isAST, isAST, isAST, isASTSizeGE, isAtom, isComplex, isComplexInfinity, isComplexNumeric, isCondition, isConstant, isCos, isCosh, isDirectedInfinity, isFalse, isFlatAST, isFraction, isFree, isFree, isFunction, isGEOrdered, isGTOrdered, isInfinity, isInteger, isLEOrdered, isList, isListOfLists, isLog, isLTOrdered, isMatrix, isMember, isMember, isMinusOne, isModule, isNegative, isNegativeInfinity, isNot, isNumber, isNumEqualInteger, isNumeric, isNumericFunction, isNumIntValue, isOne, isOr, isOrderlessAST, isPattern, isPatternExpr, isPatternSequence, isPlus, isPositive, isPower, isRational, isRealFunction, isRuleAST, isSame, isSame, isSequence, isSignedNumber, isSin, isSinh, isSlot, isSlotSequence, isSymbol, isTan, isTanh, isTimes, isTrue, isValue, isVector, isZero, leaves, minus, mod, multiply, negative, or, plus, power, power, replaceAll, replaceAll, replacePart, replaceRepeated, replaceRepeated, replaceSlots, signum, times, topHead, variables2Slots
-
Methods inherited from interface edu.jas.structure.AbelianGroupElem
abs, isZERO, negate, subtract, sum
-
Methods inherited from interface edu.jas.structure.MonoidElem
divide, isONE, isUnit, remainder
-
-
-
-
Method Detail
-
getCondition
IExpr getCondition()
Get the additional patterns condition expression- Returns:
- may return null;
-
isConditionMatched
boolean isConditionMatched(IExpr expr)
Returntrue, if the expression fullfills the patterns additional condition- Parameters:
expr-- Returns:
-
isBlank
boolean isBlank()
Returntrue, if the expression is a blank pattern- Returns:
-
isDefault
boolean isDefault()
Returntrue, if the expression is a pattern with an associated default value,- Returns:
-
-
DMelt 3.0 © DataMelt by jWork.ORG