org.matheclipse.parser.client.ast
Class FunctionNode
- java.lang.Object
-
- org.matheclipse.parser.client.ast.ASTNode
-
- org.matheclipse.parser.client.ast.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 ofASTNode'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.
-
-
Constructor Summary
Constructors Constructor and Description FunctionNode(ASTNode head)FunctionNode(SymbolNode head, ASTNode arg0)FunctionNode(SymbolNode head, ASTNode arg0, ASTNode arg1)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description booleanadd(ASTNode e)voidadd(int index, ASTNode element)booleanaddAll(java.util.Collection<? extends ASTNode> c)booleanaddAll(int index, java.util.Collection<? extends ASTNode> c)voidclear()booleancontains(java.lang.Object o)booleancontainsAll(java.util.Collection<?> c)booleandependsOn(java.lang.String variableName)voidensureCapacity(int minCapacity)booleanequals(java.lang.Object obj)ASTNodeget(int index)ASTNodegetNode(int index)inthashCode()intindexOf(java.lang.Object o)booleanisEmpty()booleanisFree(ASTNode n)java.util.Iterator<ASTNode>iterator()intlastIndexOf(java.lang.Object o)java.util.ListIterator<ASTNode>listIterator()java.util.ListIterator<ASTNode>listIterator(int index)ASTNoderemove(int index)booleanremove(java.lang.Object o)booleanremoveAll(java.util.Collection<?> c)booleanretainAll(java.util.Collection<?> c)ASTNodeset(int index, ASTNode element)intsize()java.util.List<ASTNode>subList(int fromIndex, int toIndex)Because GWT doesn't support the subList() method, we also throw an UnsupportedOperationExceptionjava.lang.Object[]toArray()java.lang.Object[]toArray(java.lang.Object[] a)java.lang.StringtoString()voidtrimToSize()
-
-
-
Constructor Detail
-
FunctionNode
public FunctionNode(ASTNode head)
-
FunctionNode
public FunctionNode(SymbolNode head, ASTNode arg0)
-
FunctionNode
public FunctionNode(SymbolNode head, ASTNode arg0, ASTNode arg1)
-
-
Method Detail
-
add
public void add(int index, ASTNode element)- Specified by:
addin interfacejava.util.List<ASTNode>
-
add
public boolean add(ASTNode e)
-
addAll
public boolean addAll(java.util.Collection<? extends ASTNode> c)
-
addAll
public boolean addAll(int index, java.util.Collection<? extends ASTNode> c)- Specified by:
addAllin interfacejava.util.List<ASTNode>
-
clear
public void clear()
-
contains
public boolean contains(java.lang.Object o)
-
containsAll
public boolean containsAll(java.util.Collection<?> c)
-
ensureCapacity
public void ensureCapacity(int minCapacity)
-
equals
public boolean equals(java.lang.Object obj)
-
getNode
public ASTNode getNode(int index)
-
hashCode
public int hashCode()
-
indexOf
public int indexOf(java.lang.Object o)
- Specified by:
indexOfin interfacejava.util.List<ASTNode>
-
isEmpty
public boolean isEmpty()
-
iterator
public java.util.Iterator<ASTNode> iterator()
-
lastIndexOf
public int lastIndexOf(java.lang.Object o)
- Specified by:
lastIndexOfin interfacejava.util.List<ASTNode>
-
listIterator
public java.util.ListIterator<ASTNode> listIterator()
- Specified by:
listIteratorin interfacejava.util.List<ASTNode>
-
listIterator
public java.util.ListIterator<ASTNode> listIterator(int index)
- Specified by:
listIteratorin interfacejava.util.List<ASTNode>
-
remove
public boolean remove(java.lang.Object o)
-
removeAll
public boolean removeAll(java.util.Collection<?> c)
-
retainAll
public boolean retainAll(java.util.Collection<?> c)
-
set
public ASTNode set(int index, ASTNode element)
- Specified by:
setin interfacejava.util.List<ASTNode>
-
size
public int size()
-
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:
subListin interfacejava.util.List<ASTNode>- Throws:
java.lang.UnsupportedOperationException
-
toArray
public java.lang.Object[] toArray()
-
toArray
public java.lang.Object[] toArray(java.lang.Object[] a)
-
trimToSize
public void trimToSize()
-
-
DMelt 3.0 © DataMelt by jWork.ORG