Class StringReplacer.Positions
- java.lang.Object
-
- net.ssehub.easy.instantiation.core.model.expressions.StringReplacer.Positions
-
- Enclosing class:
- StringReplacer<I extends VariableDeclaration,R extends Resolver<I>>
private static class StringReplacer.Positions extends java.lang.ObjectStores in-place command positions for replacing. Consists of the open-position (parsing positions where the in-place command started) and the optional latest mid-position (parsing positions if the in-place command consists of multiple mid parts, e.g., if-else).- Author:
- Holger Eichelberger
-
-
Field Summary
Fields Modifier and Type Field Description private intmidPosprivate intopenCurPosprivate intopenPos
-
Constructor Summary
Constructors Modifier Constructor Description privatePositions(int curPos, int pos)Creates a position object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private intgetLatestPos()The latest available start parsing position.private voidsetLatestPos(int pos)Changes the latest available start parsing position to avoid double creation of expressions.
-