com.github.leeonky.interpreter.NodeBase Maven / Gradle / Ivy
package com.github.leeonky.interpreter;
public abstract class NodeBase> implements Node {
protected int positionBegin, indent;
@Override
public int getPositionBegin() {
return positionBegin;
}
@Override
@SuppressWarnings("unchecked")
public N setPositionBegin(int positionBegin) {
this.positionBegin = positionBegin;
return (N) this;
}
@Override
public int getOperandPosition() {
return positionBegin;
}
@Override
public N setIndent(int indent) {
this.indent = indent;
return (N) this;
}
@Override
public int getIndent() {
return indent;
}
}