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

com.bigdata.rdf.sail.sparql.ast.ASTQueryContainer Maven / Gradle / Ivy

/* Generated By:JJTree: Do not edit this line. ASTQueryContainer.java */

package com.bigdata.rdf.sail.sparql.ast;

import com.bigdata.rdf.sail.sparql.ast.ASTOperationContainer;
import com.bigdata.rdf.sail.sparql.ast.ASTQuery;
import com.bigdata.rdf.sail.sparql.ast.SyntaxTreeBuilder;

public class ASTQueryContainer extends ASTOperationContainer {

    private String sourceString;
    
    public ASTQueryContainer(int id) {
        super(id);
    }

    public ASTQueryContainer(SyntaxTreeBuilder p, int id) {
        super(p, id);
    }

    @Override
    public Object jjtAccept(SyntaxTreeBuilderVisitor visitor, Object data)
        throws VisitorException
    {
        return visitor.visit(this, data);
    }
    
    public boolean containsQuery() {
        return (getQuery() != null);
    }

    public ASTQuery getQuery() {
        return super.jjtGetChild(ASTQuery.class);
    }

    @Override
    public void setSourceString(String source) {
        sourceString = source;
        
    }

    @Override
    public String getSourceString() {
        return sourceString;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy