Package net.sourceforge.pmd.reporting
Interface Reportable
-
- All Known Subinterfaces:
AntlrNode<N>,GenericNode<N>,GenericToken<T>,JjtreeNode<N>,Node,RootNode,ScopedNode,TextAvailableNode
- All Known Implementing Classes:
AbstractJjtreeNode,AbstractNode,AntlrToken,BaseAntlrErrorNode,BaseAntlrInnerNode,BaseAntlrNode,BaseAntlrTerminalNode,JavaccToken,PlainTextLanguage.PlainTextFile
public interface ReportableInterface implemented by those objects that can be the target of aRuleViolation.Nodes andtokensimplement this interface. TODO use this in RuleViolationFactory
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description default intgetBeginColumn()Deprecated.default intgetBeginLine()Deprecated.default intgetEndColumn()Deprecated.default intgetEndLine()Deprecated.FileLocationgetReportLocation()Returns the location at which this element should be reported.
-
-
-
Method Detail
-
getReportLocation
FileLocation getReportLocation()
Returns the location at which this element should be reported.Use this instead of
getBeginColumn()/getBeginLine(), etc.
-
getBeginLine
@Deprecated default int getBeginLine()
Deprecated.Gets the line where the token's region begins
-
getEndLine
@Deprecated default int getEndLine()
Deprecated.Gets the line where the token's region ends
-
getBeginColumn
@Deprecated default int getBeginColumn()
Deprecated.Gets the column offset from the start of the begin line where the token's region begins
-
getEndColumn
@Deprecated default int getEndColumn()
Deprecated.Gets the column offset from the start of the end line where the token's region ends
-
-