Package de.jplag.java
Class FixedSourcePositions
java.lang.Object
de.jplag.java.FixedSourcePositions
- All Implemented Interfaces:
SourcePositions
Fixes the source positions, so that the end position is always at least the same as the start position.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlonggetEndPosition(CompilationUnitTree compilationUnitTree, Tree tree) longgetStartPosition(CompilationUnitTree compilationUnitTree, Tree tree)
-
Constructor Details
-
FixedSourcePositions
New instance- Parameters:
base- The source positions to use as the base
-
-
Method Details
-
getStartPosition
- Specified by:
getStartPositionin interfaceSourcePositions
-
getEndPosition
- Specified by:
getEndPositionin interfaceSourcePositions
-