public abstract class DCTree extends Object implements DocTree
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.
DocTree.Kind
Modifier and Type | Field and Description |
---|---|
int |
pos
The position in the comment string.
|
Constructor and Description |
---|
DCTree() |
Modifier and Type | Method and Description |
---|---|
long |
getSourcePosition(DCTree.DCDocComment dc) |
JCDiagnostic.DiagnosticPosition |
pos(DCTree.DCDocComment dc) |
String |
toString()
Convert a tree to a pretty-printed string.
|
public int pos
getSourcePosition
to convert
it to a position in the source file.
TODO: why not simply translate all these values into
source file positions? Is it useful to have string-offset
positions as well?public long getSourcePosition(DCTree.DCDocComment dc)
public JCDiagnostic.DiagnosticPosition pos(DCTree.DCDocComment dc)
Copyright © 2017 earcam. All rights reserved.