MethodSymbol
org.matheclipse.core.expression

Class MethodSymbol

    • Constructor Detail

      • MethodSymbol

        public MethodSymbol(String symbolName,            String classname,            String methodname)
    • Method Detail

      • invoke

        public IExpr invoke(IAST args)
        Invoke the static method represented by this object
        Parameters:
        args -
        Returns:
        Throws:
        Exception
      • equals

        public boolean equals(Object obj)
        Test if this is equal to b.
        Specified by:
        equals in interface Element<IExpr>
        Overrides:
        equals in class Symbol
        Returns:
        true if this is equal to b, else false.
      • hierarchy

        public int hierarchy()
        A unique integer ID for the implementation of this expression
        Specified by:
        hierarchy in interface IExpr
        Overrides:
        hierarchy in class Symbol
        Returns:
        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.
        Specified by:
        compareTo in interface Element<IExpr>
        Specified by:
        compareTo in interface Comparable<IExpr>
        Specified by:
        compareTo in interface IExpr
        Overrides:
        compareTo in class Symbol
        Returns:
        0 if this is equal to b, -1 if this is less then b, else +1.
      • isTrue

        public boolean isTrue()
        Test if this expression equals the symbol "True"
        Specified by:
        isTrue in interface IExpr
        Overrides:
        isTrue in class Symbol
      • isFalse

        public boolean isFalse()
        Test if this expression equals the symbol "False"
        Specified by:
        isFalse in interface IExpr
        Overrides:
        isFalse in class Symbol
      • head

        public ISymbol head()
        If this object is an instance of IAST get the first element (offset 0) of the IAST list (i.e. get(0) ).
        Specified by:
        head in interface IExpr
        Overrides:
        head in class Symbol
        Returns:
        the head of the expression, which must not be null.

SCaVis 2.0 © jWork.ORG