public static class DCTree.DCErroneous extends DCTree implements ErroneousTree, JCDiagnostic.DiagnosticPosition
DCTree.DCAttribute, DCTree.DCAuthor, DCTree.DCBlockTag, DCTree.DCComment, DCTree.DCDeprecated, DCTree.DCDocComment, DCTree.DCDocRoot, DCTree.DCEndElement, DCTree.DCEndPosTree<T extends DCTree.DCEndPosTree<T>>, DCTree.DCEntity, DCTree.DCErroneous, DCTree.DCIdentifier, DCTree.DCInheritDoc, DCTree.DCInlineTag, DCTree.DCLink, DCTree.DCLiteral, DCTree.DCParam, DCTree.DCReference, DCTree.DCReturn, DCTree.DCSee, DCTree.DCSerial, DCTree.DCSerialData, DCTree.DCSerialField, DCTree.DCSince, DCTree.DCStartElement, DCTree.DCText, DCTree.DCThrows, DCTree.DCUnknownBlockTag, DCTree.DCUnknownInlineTag, DCTree.DCValue, DCTree.DCVersion
DocTree.Kind
Modifier and Type | Field and Description |
---|---|
String |
body |
JCDiagnostic |
diag |
Modifier and Type | Method and Description |
---|---|
<R,D> R |
accept(DocTreeVisitor<R,D> v,
D d)
Accept method used to implement the visitor pattern.
|
String |
getBody() |
Diagnostic<JavaFileObject> |
getDiagnostic()
Gets a diagnostic object giving details about
the reason the body text is in error.
|
int |
getEndPosition(EndPosTable endPosTable)
If there is a tree node, and if endPositions are available, get
the end position of the tree node.
|
DocTree.Kind |
getKind()
Gets the kind of this tree.
|
int |
getPreferredPosition()
Get the position within the file that most accurately defines the
location for the diagnostic.
|
int |
getStartPosition()
If there is a tree node, get the start position of the tree node.
|
JCTree |
getTree()
Gets the tree node, if any, to which the diagnostic applies.
|
getSourcePosition, pos, toString
public final String body
public final JCDiagnostic diag
public DocTree.Kind getKind()
DocTree
public <R,D> R accept(DocTreeVisitor<R,D> v, D d)
DocTree
public Diagnostic<JavaFileObject> getDiagnostic()
ErroneousTree
getDiagnostic
in interface ErroneousTree
public JCTree getTree()
JCDiagnostic.DiagnosticPosition
getTree
in interface JCDiagnostic.DiagnosticPosition
public int getStartPosition()
JCDiagnostic.DiagnosticPosition
getStartPosition
in interface JCDiagnostic.DiagnosticPosition
public int getPreferredPosition()
JCDiagnostic.DiagnosticPosition
getPreferredPosition
in interface JCDiagnostic.DiagnosticPosition
public int getEndPosition(EndPosTable endPosTable)
JCDiagnostic.DiagnosticPosition
getEndPosition
in interface JCDiagnostic.DiagnosticPosition
Copyright © 2015. All rights reserved.