| Modifier and Type | Method and Description |
|---|---|
| public default long | Returns: the end position of treeCompilationUnit in which to find tree file, Tree tree for which a position is sought tree)
Deprecated
for removal since 27. use
getEndPosition(Tree) instead
Returns the ending position of tree within file. |
| public long | Returns: the ending position of the givenTree. If the ending position is not available,
returns javax.tree for which a position is sought tree)Returns the ending position of the given |
| public default long | Returns: the start position of treeCompilationUnit in which to find tree file, Tree tree for which a position is sought tree)
Deprecated
for removal since 27. use
getStartPosition(Tree) instead
Returns the starting position of tree within file. |
| public long | Returns: the starting position of the givenTree, or if the starting position is not available, returns
javax.tree for which a position is sought tree)Returns the starting position of the given |
| getEndPosition | back to summary |
|---|---|
| public default long getEndPosition(CompilationUnitTree file, Tree tree)
Returns the ending position of tree within file. If tree is not found within
file, or if the ending position is not available,
returns
| |
| getEndPosition | back to summary |
|---|---|
| public long getEndPosition(Tree tree) Returns the ending position of the given The returned position must be at the end of the yield of this tree, that is for any sub-tree of this tree, the following must hold:
| |
| getStartPosition | back to summary |
|---|---|
| public default long getStartPosition(CompilationUnitTree file, Tree tree)
Returns the starting position of tree within file. If tree is not found within
file, or if the starting position is not available,
returns
| |
| getStartPosition | back to summary |
|---|---|
| public long getStartPosition(Tree tree) Returns the starting position of the given The returned position must be at the start of the yield of this tree, that is for any sub-tree of this tree, the following must hold:
| |