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

org.unlaxer.CodePointIndex Maven / Gradle / Ivy

package org.unlaxer;

import org.unlaxer.base.IntegerValue;

public class CodePointIndex extends IntegerValue{

//  SourceKind sourceKind;
//  
//  public CodePointIndex(int value , SourceKind sourceKind) {
//    super(value);
//    this.sourceKind = sourceKind;
//  }
//  
//  public CodePointIndex(IntegerValue value , SourceKind sourceKind) {
//    super(value);
//    this.sourceKind = sourceKind;
//  }

  public CodePointIndex(int value) {
    super(value);
  }
  
  public CodePointIndex(IntegerValue value) {
    super(value);
  }
  
//  @Override
//  public CodePointIndex create(int i) {
//    return new CodePointIndex(i ,sourceKind);
//  }
//
//  @Override
//  public CodePointIndex create(IntegerValue i) {
//    return new CodePointIndex(i ,sourceKind);
//  }
  
  public CodePointIndex create(int i) {
    return new CodePointIndex(i);
  }

  @Override
  public CodePointIndex create(IntegerValue i) {
    return new CodePointIndex(i);
  }

  public CodePointOffset toCodePointOffset() {
    return new CodePointOffset(value());
  }
  
  public CodePointIndexInLine toCodePointIndexInLine() {
    return new CodePointIndexInLine(value());
  }

  
//  public SourceKind sourceKind() {
//    return sourceKind;
//  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy