mirror of
https://github.com/DanilaFe/abacus
synced 2024-11-10 04:39:52 -08:00
27 lines
415 B
Java
27 lines
415 B
Java
package org.nwapw.abacus.lexing.pattern;
|
|
|
|
public class Match<T> {
|
|
|
|
private int from;
|
|
private int to;
|
|
private T type;
|
|
|
|
public Match(int from, int to, T type){
|
|
this.from = from;
|
|
this.to = to;
|
|
this.type = type;
|
|
}
|
|
|
|
public int getFrom() {
|
|
return from;
|
|
}
|
|
|
|
public int getTo() {
|
|
return to;
|
|
}
|
|
|
|
public T getType() {
|
|
return type;
|
|
}
|
|
}
|