Documentation of 'org.matheclipse.parser.client.ast.FunctionNode' Java class
FunctionNode
org.matheclipse.parser.client.ast

Class FunctionNode

  • All Implemented Interfaces:
    java.lang.Iterable<ASTNode>, java.util.Collection<ASTNode>, java.util.List<ASTNode>


    public class FunctionNode
    extends ASTNode
    implements java.util.List<ASTNode>
    A list of ASTNode's which represents a parsed function.
    The head of the function (i.e. Sin, Cos, Times,...) is stored in the 0-th index of the list.
    The arguments of the function are stored in the 1...n-th index of the list.
    • Method Detail

      • add

        public void add(int index,
                        ASTNode element)
        Specified by:
        add in interface java.util.List<ASTNode>
      • add

        public boolean add(ASTNode e)
        Specified by:
        add in interface java.util.Collection<ASTNode>
        Specified by:
        add in interface java.util.List<ASTNode>
      • addAll

        public boolean addAll(java.util.Collection<? extends ASTNode> c)
        Specified by:
        addAll in interface java.util.Collection<ASTNode>
        Specified by:
        addAll in interface java.util.List<ASTNode>
      • addAll

        public boolean addAll(int index,
                              java.util.Collection<? extends ASTNode> c)
        Specified by:
        addAll in interface java.util.List<ASTNode>
      • clear

        public void clear()
        Specified by:
        clear in interface java.util.Collection<ASTNode>
        Specified by:
        clear in interface java.util.List<ASTNode>
      • contains

        public boolean contains(java.lang.Object o)
        Specified by:
        contains in interface java.util.Collection<ASTNode>
        Specified by:
        contains in interface java.util.List<ASTNode>
      • containsAll

        public boolean containsAll(java.util.Collection<?> c)
        Specified by:
        containsAll in interface java.util.Collection<ASTNode>
        Specified by:
        containsAll in interface java.util.List<ASTNode>
      • ensureCapacity

        public void ensureCapacity(int minCapacity)
      • equals

        public boolean equals(java.lang.Object obj)
        Specified by:
        equals in interface java.util.Collection<ASTNode>
        Specified by:
        equals in interface java.util.List<ASTNode>
        Overrides:
        equals in class ASTNode
      • get

        public ASTNode get(int index)
        Specified by:
        get in interface java.util.List<ASTNode>
      • getNode

        public ASTNode getNode(int index)
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface java.util.Collection<ASTNode>
        Specified by:
        hashCode in interface java.util.List<ASTNode>
        Overrides:
        hashCode in class ASTNode
      • indexOf

        public int indexOf(java.lang.Object o)
        Specified by:
        indexOf in interface java.util.List<ASTNode>
      • isEmpty

        public boolean isEmpty()
        Specified by:
        isEmpty in interface java.util.Collection<ASTNode>
        Specified by:
        isEmpty in interface java.util.List<ASTNode>
      • iterator

        public java.util.Iterator<ASTNode> iterator()
        Specified by:
        iterator in interface java.lang.Iterable<ASTNode>
        Specified by:
        iterator in interface java.util.Collection<ASTNode>
        Specified by:
        iterator in interface java.util.List<ASTNode>
      • lastIndexOf

        public int lastIndexOf(java.lang.Object o)
        Specified by:
        lastIndexOf in interface java.util.List<ASTNode>
      • listIterator

        public java.util.ListIterator<ASTNode> listIterator()
        Specified by:
        listIterator in interface java.util.List<ASTNode>
      • listIterator

        public java.util.ListIterator<ASTNode> listIterator(int index)
        Specified by:
        listIterator in interface java.util.List<ASTNode>
      • remove

        public ASTNode remove(int index)
        Specified by:
        remove in interface java.util.List<ASTNode>
      • remove

        public boolean remove(java.lang.Object o)
        Specified by:
        remove in interface java.util.Collection<ASTNode>
        Specified by:
        remove in interface java.util.List<ASTNode>
      • removeAll

        public boolean removeAll(java.util.Collection<?> c)
        Specified by:
        removeAll in interface java.util.Collection<ASTNode>
        Specified by:
        removeAll in interface java.util.List<ASTNode>
      • retainAll

        public boolean retainAll(java.util.Collection<?> c)
        Specified by:
        retainAll in interface java.util.Collection<ASTNode>
        Specified by:
        retainAll in interface java.util.List<ASTNode>
      • set

        public ASTNode set(int index,
                           ASTNode element)
        Specified by:
        set in interface java.util.List<ASTNode>
      • size

        public int size()
        Specified by:
        size in interface java.util.Collection<ASTNode>
        Specified by:
        size in interface java.util.List<ASTNode>
      • subList

        public java.util.List<ASTNode> subList(int fromIndex,
                                               int toIndex)
                                        throws java.lang.UnsupportedOperationException
        Because GWT doesn't support the subList() method, we also throw an UnsupportedOperationException
        Specified by:
        subList in interface java.util.List<ASTNode>
        Throws:
        java.lang.UnsupportedOperationException
      • toArray

        public java.lang.Object[] toArray()
        Specified by:
        toArray in interface java.util.Collection<ASTNode>
        Specified by:
        toArray in interface java.util.List<ASTNode>
      • toArray

        public java.lang.Object[] toArray(java.lang.Object[] a)
        Specified by:
        toArray in interface java.util.Collection<ASTNode>
        Specified by:
        toArray in interface java.util.List<ASTNode>
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class ASTNode
      • trimToSize

        public void trimToSize()
      • dependsOn

        public boolean dependsOn(java.lang.String variableName)
        Overrides:
        dependsOn in class ASTNode

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.