public interface Label extends TerminalProgramElement
| Modifier and Type | Method and Description |
|---|---|
Comment[] |
getComments()
Get comments.
|
Position |
getEndPosition()
Returns the end position of the primary token of this element.
|
SourceElement |
getFirstElement()
Finds the source element that occurs first in the source.
|
SourceElement |
getLastElement()
Finds the source element that occurs last in the source.
|
Position |
getRelativePosition()
Returns the relative position (number of blank heading lines and
columns) of the primary token of this element.
|
Position |
getStartPosition()
Returns the start position of the primary token of this element.
|
void |
prettyPrint(PrettyPrinter w)
Pretty print.
|
void |
visit(Visitor v)
calls the corresponding method of a visitor in order to
perform some action/transformation on this element
|
matchequalsModRenaming, getFirstElementIncludingBlocks, getPositionInfoComment[] getComments()
ProgramElementgetComments in interface ProgramElementSourceElement getFirstElement()
SourceElementgetFirstElement in interface SourceElementSourceElement.getStartPosition()SourceElement getLastElement()
SourceElementgetLastElement in interface SourceElementSourceElement.getEndPosition()void prettyPrint(PrettyPrinter w) throws java.io.IOException
SourceElementprettyPrint in interface SourceElementw - a pretty printer.java.io.IOException - occasionally thrown.void visit(Visitor v)
SourceElementvisit in interface SourceElementv - the VisitorPosition getStartPosition()
SourceElementgetFirstElement().getStartPosition in interface SourceElementPosition getEndPosition()
SourceElementgetLastElement().getEndPosition in interface SourceElementPosition getRelativePosition()
SourceElementgetFirstElement().getRelativePosition in interface SourceElement