public abstract class TreeNode<A extends TreeNode<A>> extends Object implements scala.Product
Constructor and Description |
---|
TreeNode() |
Modifier and Type | Method and Description |
---|---|
abstract scala.collection.Seq<A> |
children()
List of child nodes that should be considered when doing transformations.
|
boolean |
fastEquals(TreeNode<?> other)
Tests for equality by first testing for reference equality.
|
A |
makeCopy(Object[] newArgs)
Creates a new copy of this expression with new children.
|
A |
postOrderTransform(scala.PartialFunction<A,A> rule)
Do tree transformation in post order.
|
void |
preOrderVisit(scala.Function1<A,scala.runtime.BoxedUnit> f)
Runs the given function first on the node and then recursively on all its children.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public abstract scala.collection.Seq<A> children()
public boolean fastEquals(TreeNode<?> other)
other
- (undocumented)public A postOrderTransform(scala.PartialFunction<A,A> rule)
rule
- (undocumented)public void preOrderVisit(scala.Function1<A,scala.runtime.BoxedUnit> f)
f
- (undocumented)Copyright © 2014–2018 The Apache Software Foundation. All rights reserved.