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

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;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy