mirror of
https://github.com/DanilaFe/abacus
synced 2024-11-12 21:59:53 -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;
|
||
|
}
|
||
|
}
|