public interface EndPosTable
This is NOT part of any supported API. If you write code that depends on this, you do so at your own risk. This code and its internal interfaces are subject to change or deletion without notice.
Modifier and Type | Method and Description |
---|---|
int |
getEndPos(JCTree tree)
This method will return the end position of a given tree, otherwise a
Positions.NOPOS will be returned.
|
int |
replaceTree(JCTree oldtree,
JCTree newtree)
Give an old tree and a new tree, the old tree will be replaced with
the new tree, the position of the new tree will be that of the old
tree.
|
void |
storeEnd(JCTree tree,
int endpos)
Store ending position for a tree, the value of which is the greater of
last error position and the given ending position.
|
int getEndPos(JCTree tree)
tree
- JCTreevoid storeEnd(JCTree tree, int endpos)
tree
- The tree.endpos
- The ending position to associate with the tree.int replaceTree(JCTree oldtree, JCTree newtree)
oldtree
- a JCTree to be replacednewtree
- a JCTree to be replaced withCopyright © 2017 earcam. All rights reserved.