org.matheclipse.core.expression
Class MethodSymbol
- java.lang.Object
-
- org.matheclipse.core.expression.ExprImpl
-
- org.matheclipse.core.expression.Symbol
-
- org.matheclipse.core.expression.MethodSymbol
-
- All Implemented Interfaces:
- AbelianGroupElem<IExpr>, Element<IExpr>, MonoidElem<IExpr>, RingElem<IExpr>, java.io.Serializable, java.lang.Comparable<IExpr>, IExpr, ISymbol
public class MethodSymbol extends Symbol
Implements Symbols for function, constant and variable names- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from interface org.matheclipse.core.interfaces.ISymbol
CONSOLE_OUTPUT, CONSTANT, DEFAULT_RULE_PRIORITY, FLAT, FLATORDERLESS, HOLDALL, HOLDFIRST, HOLDREST, LISTABLE, NHOLDALL, NHOLDFIRST, NHOLDREST, NOATTRIBUTE, NUMERICFUNCTION, ONEIDENTITY, ORDERLESS, PACKAGE_LOADED
-
Fields inherited from interface org.matheclipse.core.interfaces.IExpr
ASTID, COMPLEXID, DOUBLECOMPLEXID, DOUBLEID, FRACTIONID, INTEGERID, METHODSYMBOLID, PATTERNID, STRINGID, SYMBOLID
-
-
Constructor Summary
Constructors Constructor and Description MethodSymbol(java.lang.String symbolName, java.lang.String classname, java.lang.String methodname)MethodSymbol(java.lang.String symbolName, java.lang.String packagename, java.lang.String classname, java.lang.String methodname)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description intcompareTo(IExpr obj)Compares this expression with the specified expression for order.booleanequals(java.lang.Object obj)Test if this is equal to b.inthashCode()Hashcode of this Element.ISymbolhead()If this object is an instance ofIASTget the first element (offset 0) of theIASTlist (i.e.inthierarchy()A unique integer ID for the implementation of this expressionIExprinvoke(IAST args)Invoke the static method represented by this objectbooleanisFalse()Test if this expression equals the symbol "False"booleanisTrue()Test if this expression equals the symbol "True"java.lang.StringtoString()-
Methods inherited from class org.matheclipse.core.expression.Symbol
accept, accept, accept, apply, clear, clearAll, definition, definitionToString, evalDownRule, evaluate, evalUpRule, fullFormString, get, getAssignedValue, getAttributes, getDefaultValue, getDefaultValue, getEvaluator, getSymbol, hasLocalVariableStack, internalFormString, isAtom, isConstant, isNegative, isPositive, isString, isSymbolName, isValue, mapConstantDouble, negate, popLocalVariable, pushLocalVariable, pushLocalVariable, putDownRule, putDownRule, putDownRule, putUpRule, putUpRule, readSymbol, reassignSymbolValue, set, setAttributes, setDefaultValue, setDefaultValue, setEvaluator, variables2Slots, writeSymbol
-
Methods inherited from class org.matheclipse.core.expression.ExprImpl
abs, and, apply, asType, copy, divide, egcd, factory, gcd, getAt, inverse, isAnd, isArcCos, isArcCosh, isArcSin, isArcSinh, isArcTan, isArcTanh, isAST, isAST, isAST, isAST, isAST, isAST, isASTSizeGE, isComplex, isComplexInfinity, isComplexNumeric, isCondition, isCos, isCosh, isDirectedInfinity, isFlatAST, isFraction, isFree, isFree, isFunction, isGEOrdered, isGTOrdered, isInfinity, isInteger, isLEOrdered, isList, isListOfLists, isLog, isLTOrdered, isMatrix, isMember, isMember, isMinusOne, isModule, isNegativeInfinity, isNot, isNumber, isNumEqualInteger, isNumeric, isNumericFunction, isNumIntValue, isOne, isONE, isOr, isOrderlessAST, isPattern, isPatternExpr, isPatternSequence, isPlus, isPower, isRational, isRealFunction, isRuleAST, isSame, isSame, isSequence, isSignedNumber, isSin, isSinh, isSlot, isSlotSequence, isSymbol, isTan, isTanh, isTimes, isUnit, isVector, isZero, isZERO, leaves, minus, mod, multiply, negative, opposite, or, plus, power, power, remainder, replaceAll, replaceAll, replacePart, replaceRepeated, replaceRepeated, replaceRepeated, replaceSlots, signum, subtract, sum, times, topHead, toScript, toScriptFactory
-
Methods inherited from interface org.matheclipse.core.interfaces.IExpr
and, apply, asType, getAt, inverse, isAnd, isArcCos, isArcCosh, isArcSin, isArcSinh, isArcTan, isArcTanh, isAST, isAST, isAST, isAST, isAST, isAST, isASTSizeGE, isComplex, isComplexInfinity, isComplexNumeric, isCondition, isCos, isCosh, isDirectedInfinity, isFlatAST, isFraction, isFree, isFree, isFunction, isGEOrdered, isGTOrdered, isInfinity, isInteger, isLEOrdered, isList, isListOfLists, isLog, isLTOrdered, isMatrix, isMember, isMember, isMinusOne, isModule, isNegativeInfinity, isNot, isNumber, isNumEqualInteger, isNumeric, isNumericFunction, isNumIntValue, isOne, isOr, isOrderlessAST, isPattern, isPatternExpr, isPatternSequence, isPlus, isPower, isRational, isRealFunction, isRuleAST, isSame, isSame, isSequence, isSignedNumber, isSin, isSinh, isSlot, isSlotSequence, isSymbol, isTan, isTanh, isTimes, isVector, isZero, leaves, minus, mod, multiply, negative, or, plus, power, power, replaceAll, replaceAll, replacePart, replaceRepeated, replaceRepeated, replaceSlots, signum, times, topHead
-
Methods inherited from interface edu.jas.structure.AbelianGroupElem
abs, isZERO, subtract, sum
-
Methods inherited from interface edu.jas.structure.MonoidElem
divide, isONE, isUnit, remainder
-
Methods inherited from interface edu.jas.structure.Element
copy, factory, toScript, toScriptFactory
-
-
-
-
Constructor Detail
-
MethodSymbol
public MethodSymbol(java.lang.String symbolName, java.lang.String packagename, java.lang.String classname, java.lang.String methodname)
-
MethodSymbol
public MethodSymbol(java.lang.String symbolName, java.lang.String classname, java.lang.String methodname)
-
-
Method Detail
-
invoke
public IExpr invoke(IAST args)
Invoke the static method represented by this object- Parameters:
args-- Returns:
- Throws:
java.lang.Exception
-
equals
public boolean equals(java.lang.Object obj)
Test if this is equal to b.
-
hashCode
public int hashCode()
Hashcode of this Element.
-
hierarchy
public int hierarchy()
A unique integer ID for the implementation of this expression
-
compareTo
public int compareTo(IExpr obj)
Compares this expression with the specified expression for order. Returns a negative integer, zero, or a positive integer as this expression is canonical less than, equal to, or greater than the specified expression.
-
isTrue
public boolean isTrue()
Test if this expression equals the symbol "True"
-
isFalse
public boolean isFalse()
Test if this expression equals the symbol "False"
-
head
public ISymbol head()
If this object is an instance ofIASTget the first element (offset 0) of theIASTlist (i.e. get(0) ).
-
-
DMelt 3.0 © DataMelt by jWork.ORG