kz.greetgo.logging.structure.parser.model.InstructionPart Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of greetgo-logging-structure Show documentation
Show all versions of greetgo-logging-structure Show documentation
Logging mechanism using in greetgo!
package kz.greetgo.logging.structure.parser.model;
public class InstructionPart {
public final InstructionPartOwner owner;
public final Range range;
private final String content;
public InstructionPart(InstructionPartOwner owner, Range range, char[] chars) {
this.owner = owner;
this.range = range;
this.content = new String(chars, range.start, range.count());
}
public InstructionPart(InstructionPartOwner owner, Range range, String content) {
this.owner = owner;
this.range = range;
this.content = content;
}
public int lineNo() {
return owner.lineNo();
}
public String str() {
return content;
}
}