All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.unlaxer.EndExclusiveCursorImpl Maven / Gradle / Ivy

package org.unlaxer;

import org.unlaxer.Cursor.EndExclusiveCursor;

public class EndExclusiveCursorImpl extends AbstractCursorImpl implements EndExclusiveCursor{
  
  public EndExclusiveCursorImpl() {
    super(CursorKind.endExclusive);
  }
  
  public EndExclusiveCursorImpl(EndExclusiveCursor cursor) {
    super(cursor);
  }
  
  public EndExclusiveCursorImpl(StartInclusiveCursor cursor) {
    super(cursor);
  }
  
  
  @Override
  public EndExclusiveCursor resolveLineNumber(RootPositionResolver rootPositionResolver) {
    
    CodePointIndex _codePointIndex = position.isZero() ? 
        position : 
        position.newWithDecrements();
    
    setLineNumber(rootPositionResolver.lineNumberFrom(_codePointIndex));
    return thisObject();
  }

  @Override
  EndExclusiveCursor thisObject() {
    return this;
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy