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

org.nlab.json.stream.context.token.LiteralToken Maven / Gradle / Ivy

package org.nlab.json.stream.context.token;

/**
 * Created by nlabrot on 19/04/16.
 */
public abstract class LiteralToken implements Token {

    @Override
    public boolean isLiteral() {
        return true;
    }

    @Override
    public boolean isPreInit() {
        return false;
    }

    @Override
    public void setChildren(Token elem) {
        throw new RuntimeException();
    }

    @Override
    public Token getChildren() {
        return null;
    }


    public abstract T getLiteral();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy