Package net.sourceforge.pmd.reporting
Interface Reportable
- All Known Subinterfaces:
AntlrNode<N>,CommentNode,GenericNode<N>,GenericToken<T>,JjtreeNode<N>,Node,RootNode,ScopedNode,TextAvailableNode,TextNode
- All Known Implementing Classes:
AbstractJjtreeNode,AbstractNode,AntlrToken,BaseAntlrErrorNode,BaseAntlrInnerNode,BaseAntlrNode,BaseAntlrTerminalNode,JavaccToken,PlainTextLanguage.PlainTextFile
public interface Reportable
Interface implemented by those objects that can be the target of
a
RuleViolation. Nodes and tokens
implement this interface.-
Method Summary
Modifier and TypeMethodDescriptionReturns the location at which this element should be reported.
-
Method Details
-
getReportLocation
FileLocation getReportLocation()Returns the location at which this element should be reported.Use this instead of
Node.getBeginColumn()/Node.getBeginLine(), etc.
-