@Exported
public interface Tree
WARNING: This interface and its sub-interfaces are subject to change as the ECMAScript programming language evolves.
Modifier and Type | Interface and Description |
---|---|
static class |
Tree.Kind
Enumerates all kinds of trees.
|
Modifier and Type | Method and Description |
---|---|
<R,D> R |
accept(TreeVisitor<R,D> visitor,
D data)
Accept method used to implement the visitor pattern.
|
long |
getEndPosition()
End character offset of this Tree within the source.
|
Tree.Kind |
getKind()
Gets the kind of this tree.
|
long |
getStartPosition()
Start character offset of this Tree within the source.
|
long getStartPosition()
long getEndPosition()
Tree.Kind getKind()
<R,D> R accept(TreeVisitor<R,D> visitor, D data)
R
- result type of this operation.D
- type of additional data.visitor
- tree visitordata
- additional data passed to visitor methods
Copyright © 2014, 2015, Oracle and/or its affiliates. All rights reserved.
DRAFT internal-b88